|
@@ -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);
|
|
|
}
|
|
|
|