|
@@ -267,17 +267,24 @@ public class StDingProcServiceImpl extends ServiceImpl<ShantaiMapper, Shantai> i
|
|
|
//新增评论
|
|
|
comment(dentries,state,userId,procInstId);
|
|
|
|
|
|
- //更新表中同步状态
|
|
|
- if (dentries.isEmpty()){
|
|
|
- shantai.setState("2");
|
|
|
- }else {
|
|
|
- shantai.setState("1");
|
|
|
- }
|
|
|
if (Objects.isNull(shantai)){
|
|
|
+ //更新表中同步状态
|
|
|
+ shantai = new Shantai();
|
|
|
+ if (dentries.isEmpty()){
|
|
|
+ shantai.setState("2");
|
|
|
+ }else {
|
|
|
+ shantai.setState("1");
|
|
|
+ }
|
|
|
shantai.setFlowId(flowId);
|
|
|
shantai.setProcInstId(procInstId);
|
|
|
shantaiMapper.insert(shantai);
|
|
|
}else {
|
|
|
+ //更新表中同步状态
|
|
|
+ if (dentries.isEmpty()){
|
|
|
+ shantai.setState("2");
|
|
|
+ }else {
|
|
|
+ shantai.setState("1");
|
|
|
+ }
|
|
|
//更新评论状态
|
|
|
shantaiMapper.updateById(shantai);
|
|
|
}
|