|
@@ -51,18 +51,19 @@ public class InformationServiceImpl extends ServiceImpl<InformationMapper, Infor
|
|
for (Information info : information) {
|
|
for (Information info : information) {
|
|
if (info.getMsg() == null){
|
|
if (info.getMsg() == null){
|
|
continue;
|
|
continue;
|
|
- }
|
|
|
|
- String name = info.getMsg().substring(0, info.getMsg().indexOf("更新任务进展为"));
|
|
|
|
- String userWxId = "";
|
|
|
|
- for (User item : users) {
|
|
|
|
- if (name.equals(item.getName())){
|
|
|
|
- userWxId = item.getCorpwxRealUserid();
|
|
|
|
- break;
|
|
|
|
|
|
+ } else if (info.getMsg().contains("更新任务进展为")){
|
|
|
|
+ String name = info.getMsg().substring(0, info.getMsg().indexOf("更新任务进展为"));
|
|
|
|
+ String userWxId = "";
|
|
|
|
+ for (User item : users) {
|
|
|
|
+ if (name.equals(item.getName())){
|
|
|
|
+ userWxId = item.getCorpwxRealUserid();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ String msg = info.getMsg();
|
|
|
|
+ String newMsg = msg.replace(name, "$userName=" + userWxId + "$");
|
|
|
|
+ info.setMsg(newMsg);
|
|
}
|
|
}
|
|
- String msg = info.getMsg();
|
|
|
|
- String newMsg = msg.replace(name, "$userName=" + userWxId + "$");
|
|
|
|
- info.setMsg(newMsg);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
httpRespMsg.data = information;
|
|
httpRespMsg.data = information;
|