傅行帆 6 anos atrás
pai
commit
b3af9cc779

+ 12
- 5
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MessageServiceImpl.java Ver arquivo

@@ -56,11 +56,18 @@ public class MessageServiceImpl implements MessageServiceI {
56 56
 		List<TpMessage> messageList = tpMessageMapper.getMessages(userId,communityId, modelType);
57 57
 		messageList.stream().forEach(tpMessage -> {
58 58
 			//缴费相关信息
59
-			if (tpMessage.getMessageType().equals(Constant.MESSAGE_TYPE_BILL)){
60
-				TpBill tpBill = tpBillMapper.selectById(tpMessage.getBillId());
61
-				if (null != tpBill){
62
-					tpMessage.setContent(tpBill.getBillExplain());
63
-				}
59
+			//if (tpMessage.getMessageType().equals(Constant.MESSAGE_TYPE_BILL)){
60
+			//	TpBill tpBill = tpBillMapper.selectById(tpMessage.getBillId());
61
+			//	if (null != tpBill){
62
+			//		tpMessage.setContent(tpBill.getBillExplain());
63
+			//	}
64
+			//}
65
+			
66
+			if(tpMessage.getMessageType().equals(Constant.MESSAGE_TYPE_VISITOR) || tpMessage.getMessageType().equals(Constant.MESSAGE_TYPE_ANNOUNCEMENT)
67
+					|| tpMessage.getMessageType().equals(Constant.MESSAGE_TYPE_SYS) || tpMessage.getMessageType().equals(Constant.MESSAGE_TYPE_BILL)
68
+					|| tpMessage.getMessageType().equals(Constant.MESSAGE_TYPE_ACTIVITY)){
69
+				tpMessage.setContent(tpMessage.getMessageContent());
70
+				tpMessage.setMessageContent("");
64 71
 			}
65 72
 			if (!StringUtils.isEmpty(tpMessage.getMessageDetailUrl())){
66 73
 				Integer id = getMessageIdByType(tpMessage);