Compare commits
2 Commits
742295fd29
...
064b6bdc33
Author | SHA1 | Date |
---|---|---|
liujun | 064b6bdc33 | |
liujun | 6d9a283acc |
|
@ -992,8 +992,6 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void repulse(PageData flows, XgfFlowDto info) throws Exception {
|
public void repulse(PageData flows, XgfFlowDto info) throws Exception {
|
||||||
// add by liu jun 相关方可指定打回至指定节点 -1 为默认打回至相关方端
|
|
||||||
if ("-1".equals(info.getBACK_STEP())){
|
|
||||||
PageData condition = new PageData();
|
PageData condition = new PageData();
|
||||||
condition.put("XGF_USER_ID", flows.getString("FLOWS_ID"));
|
condition.put("XGF_USER_ID", flows.getString("FLOWS_ID"));
|
||||||
PageData entity = xgfUserMapper.findById(condition);
|
PageData entity = xgfUserMapper.findById(condition);
|
||||||
|
@ -1012,17 +1010,6 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
xgfUserMapper.edit(entity);
|
xgfUserMapper.edit(entity);
|
||||||
this.clearInfo(flows);
|
this.clearInfo(flows);
|
||||||
xgfFlowsMapper.edit(flows);
|
xgfFlowsMapper.edit(flows);
|
||||||
} else {
|
|
||||||
// 1、判断不能自己打回到自己
|
|
||||||
PageData condition = new PageData();
|
|
||||||
condition.put("FLOWS_ID",flows.getString("FLOWS_ID"));
|
|
||||||
PageData flowEntity = xgfFlowsMapper.findById(condition);
|
|
||||||
if (flowEntity != null && flowEntity.size() > 0 && flowEntity.getString("FLOWS_STEP").equals(info.getBACK_STEP())){
|
|
||||||
throw new RuntimeException("不能自己打回到自己");
|
|
||||||
}
|
|
||||||
flowEntity.put("FLOWS_STEP", info.getBACK_STEP());
|
|
||||||
xgfFlowsMapper.edit(flowEntity);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue