打回功能

liujun0703-新项目开发^2^2
liujun 2024-06-13 18:42:47 +08:00
parent f10cae67a1
commit 30287687a3
1 changed files with 18 additions and 0 deletions

View File

@ -1030,8 +1030,26 @@ public class XgfUserServiceImpl implements XgfUserService {
PageData entity = xgfUserMapper.findById(condition); PageData entity = xgfUserMapper.findById(condition);
entity.put("CHECK_STEP",info.getBACK_STEP()); entity.put("CHECK_STEP",info.getBACK_STEP());
xgfUserMapper.edit(entity); xgfUserMapper.edit(entity);
// 判断要不要清理委托书
if (clearWeiTuo(flowEntity, info.getBACK_STEP())) {
condition.clear();
condition.put("XGF_USER_DETAILS_ID", flows.getString("FLOWS_ID"));
PageData infoEntity = xgfUserDetailsMapper.findById(condition);
infoEntity.put("ATTORNEY", null);
xgfUserDetailsMapper.edit(infoEntity);
} }
} }
}
private boolean clearWeiTuo(PageData flowEntity,String backStep) throws Exception{
if ("1".equals(flowEntity.getString("FLOWS_TYPE"))){
return 1 <= Integer.parseInt(backStep);
}
if ("2".equals(flowEntity.getString("FLOWS_TYPE"))){
return 0 <= Integer.parseInt(backStep);
}
return false;
}
private void clearsInfo(PageData entity,String step) throws Exception { private void clearsInfo(PageData entity,String step) throws Exception {
if ("0".equals(step)){ if ("0".equals(step)){
entity.put("APPOINT_ONE_USER_ID", ""); entity.put("APPOINT_ONE_USER_ID", "");