dcs 11 months ago
parent
commit
be9461a71d

+ 1 - 1
virgo.manager/src/main/java/com/bosshand/virgo/message/model/NotificationMessage.java

@@ -142,6 +142,6 @@ public class NotificationMessage implements Serializable {
     }
 
     public void setIsCC(Boolean isCC) {
-        isCC = isCC;
+        this.isCC = isCC;
     }
 }

+ 12 - 0
virgo.manager/src/main/java/com/bosshand/virgo/message/service/MessageService.java

@@ -43,6 +43,18 @@ public class MessageService {
 	private MgrUserDao mgrUserDao;
 
 	public int insert(NotificationMessage notificationMessage) {
+		if (notificationMessage.getSystemMessage() == null) {
+			notificationMessage.setSystemMessage(false);
+		}
+		if (notificationMessage.getPushed() == null) {
+			notificationMessage.setPushed(false);
+		}
+		if (notificationMessage.getViewed() == null) {
+			notificationMessage.setViewed(false);
+		}
+		if (notificationMessage.getIsCC() == null) {
+			notificationMessage.setIsCC(false);
+		}
 		return notificationMessageDao.insert(notificationMessage);
 	}