|
|
@@ -135,7 +135,7 @@ public class CaseFlowServiceImpl implements CaseFlowService {
|
|
135
|
135
|
int i = msCaseFlowMapper.updateByPrimaryKey(msCaseFlow);
|
|
136
|
136
|
if (i > 0) {
|
|
137
|
137
|
//更新流程节点和角色之间的关系
|
|
138
|
|
- updateFlowRoleByFlowId(caseFlowVO.getId(), caseFlowVO.getRoleIds());
|
|
|
138
|
+ updateFlowRoleByFlowId(msCaseFlow.getId(), caseFlowVO.getRoleIds());
|
|
139
|
139
|
return true;
|
|
140
|
140
|
}
|
|
141
|
141
|
} else {
|
|
|
@@ -154,7 +154,7 @@ public class CaseFlowServiceImpl implements CaseFlowService {
|
|
154
|
154
|
int insert = msCaseFlowMapper.insert(msCaseFlow);
|
|
155
|
155
|
if (insert > 0) {
|
|
156
|
156
|
//更新流程节点和角色之间的关系
|
|
157
|
|
- updateFlowRoleByFlowId(caseFlowVO.getId(), caseFlowVO.getRoleIds());
|
|
|
157
|
+ updateFlowRoleByFlowId(msCaseFlow.getId(), caseFlowVO.getRoleIds());
|
|
158
|
158
|
return true;
|
|
159
|
159
|
}
|
|
160
|
160
|
}
|
|
|
@@ -187,7 +187,10 @@ public class CaseFlowServiceImpl implements CaseFlowService {
|
|
187
|
187
|
*/
|
|
188
|
188
|
private void deleteFlowRoleByFlowId(Integer id) {
|
|
189
|
189
|
if (id != null) {
|
|
190
|
|
- msCaseFlowRoleRelatedMapper.deleteByExample(new Example(MsCaseFlowRoleRelated.class).createCriteria().andEqualTo("flowId", id));
|
|
|
190
|
+ Example example = new Example(MsCaseFlowRoleRelated.class);
|
|
|
191
|
+ Example.Criteria criteria = example.createCriteria();
|
|
|
192
|
+ criteria.andEqualTo("flowId", id);
|
|
|
193
|
+ msCaseFlowRoleRelatedMapper.deleteByExample(example);
|
|
191
|
194
|
}
|
|
192
|
195
|
}
|
|
193
|
196
|
|