提交 5cb463ca authored 作者: wangkr's avatar wangkr

update

上级 f4da5acd
...@@ -403,14 +403,15 @@ public class JzMessageServiceImpl extends CyBaseService implements JzMessageServ ...@@ -403,14 +403,15 @@ public class JzMessageServiceImpl extends CyBaseService implements JzMessageServ
processMid.setTemplateid(jzMessage.getTemplateId()); processMid.setTemplateid(jzMessage.getTemplateId());
} }
//设置version 版本为空设置为1,反之加1 //设置version 版本为空设置为1,反之加1
List<String> version = processMidRepository.processMidByprocessMid(processMid); String version = processMidRepository.processMidByprocessMid(processMid);
if (StringUtils.isEmpty(version.get(0))) { if (StringUtils.isEmpty(version)) {
processMid.setVersion("1"); processMid.setVersion("1");
} else { } else {
processMid.setVersion(String.valueOf(Integer.valueOf(version.get(0)) + 1)); processMid.setVersion(String.valueOf(Integer.valueOf(version) + 1));
} }
CyPersistModel save = processMidServiceImpl.save(processMid); CyPersistModel save = processMidServiceImpl.save(processMid);
if (save.getInfluence()<1){ if (save.getInfluence()<1){
return save; return save;
} }
return new CyPersistModel(1); return new CyPersistModel(1);
...@@ -1215,9 +1216,6 @@ public class JzMessageServiceImpl extends CyBaseService implements JzMessageServ ...@@ -1215,9 +1216,6 @@ public class JzMessageServiceImpl extends CyBaseService implements JzMessageServ
int i = jzMessageRepository.updateByprojecetCode(projectCode,BaseStationStatus.IT_WAIT_LOCATION.getStatus()); int i = jzMessageRepository.updateByprojecetCode(projectCode,BaseStationStatus.IT_WAIT_LOCATION.getStatus());
return new CyPersistModel(i); return new CyPersistModel(i);
} }
return new CyPersistModel(0); return new CyPersistModel(0);
} }
} }
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论