zouxuan 1 gadu atpakaļ
vecāks
revīzija
918b3beb42

+ 4 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/SysMessageServiceImpl.java

@@ -105,7 +105,7 @@ public class SysMessageServiceImpl extends BaseServiceImpl<Long, SysMessage> imp
 		query.setAppKey(EAppKey.GYM);
 		query.setAppKey(EAppKey.GYM);
 		query.setSendMode(getMessageSendMode(queryInfo.getType()));
 		query.setSendMode(getMessageSendMode(queryInfo.getType()));
 		query.setTitle(queryInfo.getTitle());
 		query.setTitle(queryInfo.getTitle());
-		query.setClientId(getClientType(queryInfo.getJpushType()));
+		query.setClientType(getClientType(queryInfo.getJpushType()));
 		query.setReadStatus(queryInfo.getReadStatus() == null?null:queryInfo.getReadStatus()==1);
 		query.setReadStatus(queryInfo.getReadStatus() == null?null:queryInfo.getReadStatus()==1);
 		return messageFeignClientService.sysMessagePage(query);
 		return messageFeignClientService.sysMessagePage(query);
 	}
 	}
@@ -154,6 +154,7 @@ public class SysMessageServiceImpl extends BaseServiceImpl<Long, SysMessage> imp
 			messageParam.setUserId(user.getUserId().longValue());
 			messageParam.setUserId(user.getUserId().longValue());
 			messageParam.setAppKey(EAppKey.GYM);
 			messageParam.setAppKey(EAppKey.GYM);
 			messageParam.setClientType(EClientType.BACKEND);
 			messageParam.setClientType(EClientType.BACKEND);
+			messageParam.setClientId(messageParam.getClientType());
 			messageParam.setType(messageType.getCode());
 			messageParam.setType(messageType.getCode());
 			Map<Long, String> params = new HashMap<>(1);
 			Map<Long, String> params = new HashMap<>(1);
 			params.put(user.getUserId().longValue(), user.getPhone());
 			params.put(user.getUserId().longValue(), user.getPhone());
@@ -452,6 +453,7 @@ public class SysMessageServiceImpl extends BaseServiceImpl<Long, SysMessage> imp
 			messageParam.setUserId(user.getUserId().longValue());
 			messageParam.setUserId(user.getUserId().longValue());
 			messageParam.setAppKey(EAppKey.GYM);
 			messageParam.setAppKey(EAppKey.GYM);
 			messageParam.setClientType(getClientType(jpushType));
 			messageParam.setClientType(getClientType(jpushType));
+			messageParam.setClientId(messageParam.getClientType());
 			messageParam.setType(type.getCode());
 			messageParam.setType(type.getCode());
 			messageParam.setUrl(url);
 			messageParam.setUrl(url);
 			Map<Long, String> params = new HashMap<>();
 			Map<Long, String> params = new HashMap<>();
@@ -523,6 +525,7 @@ public class SysMessageServiceImpl extends BaseServiceImpl<Long, SysMessage> imp
 			messageParam.setUserId(user.getUserId().longValue());
 			messageParam.setUserId(user.getUserId().longValue());
 			messageParam.setAppKey(EAppKey.GYM);
 			messageParam.setAppKey(EAppKey.GYM);
 			messageParam.setClientType(EClientType.STUDENT);
 			messageParam.setClientType(EClientType.STUDENT);
+			messageParam.setClientId(messageParam.getClientType());
 			messageParam.setType(type.getCode());
 			messageParam.setType(type.getCode());
 			messageParam.setUrl(url);
 			messageParam.setUrl(url);
 			Map<Long, String> params = new HashMap<>();
 			Map<Long, String> params = new HashMap<>();