傅行帆 6 years ago
parent
commit
b3af9cc779

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

56
 		List<TpMessage> messageList = tpMessageMapper.getMessages(userId,communityId, modelType);
56
 		List<TpMessage> messageList = tpMessageMapper.getMessages(userId,communityId, modelType);
57
 		messageList.stream().forEach(tpMessage -> {
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
 			if (!StringUtils.isEmpty(tpMessage.getMessageDetailUrl())){
72
 			if (!StringUtils.isEmpty(tpMessage.getMessageDetailUrl())){
66
 				Integer id = getMessageIdByType(tpMessage);
73
 				Integer id = getMessageIdByType(tpMessage);