企业端、监管端功能同步

liujun0703-新项目开发^2^2
liujun 2024-06-12 15:00:08 +08:00
parent b8201850a4
commit f10cae67a1
1 changed files with 57 additions and 2 deletions

View File

@ -1022,9 +1022,64 @@ public class XgfUserServiceImpl implements XgfUserService {
} }
flowEntity.put("FLOWS_STEP", info.getBACK_STEP()); flowEntity.put("FLOWS_STEP", info.getBACK_STEP());
xgfFlowsMapper.edit(flowEntity); xgfFlowsMapper.edit(flowEntity);
// 2、保存审批记录 // 清理数据
this.saveLog(info, "0", "0"); clearsInfo(flowEntity,info.getBACK_STEP());
xgfFlowsMapper.edit(flowEntity);
condition.clear();
condition.put("XGF_USER_ID", flows.getString("FLOWS_ID"));
PageData entity = xgfUserMapper.findById(condition);
entity.put("CHECK_STEP",info.getBACK_STEP());
xgfUserMapper.edit(entity);
}
}
private void clearsInfo(PageData entity,String step) throws Exception {
if ("0".equals(step)){
entity.put("APPOINT_ONE_USER_ID", "");
entity.put("APPOINT_TWO_USER_ID", "");
entity.put("APPOINT_THREE_USER_ID", "");
entity.put("APPOINT_FOUR_USER_ID", "");
entity.put("APPOINT_FIVE_USER_ID", "");
entity.put("APPOINT_SIX_USER_ID", "");
entity.put("APPOINT_SEVEN_USER_ID", "");
}
if ("1".equals(step)){
entity.put("APPOINT_TWO_USER_ID", "");
entity.put("APPOINT_THREE_USER_ID", "");
entity.put("APPOINT_FOUR_USER_ID", "");
entity.put("APPOINT_FIVE_USER_ID", "");
entity.put("APPOINT_SIX_USER_ID", "");
entity.put("APPOINT_SEVEN_USER_ID", "");
}
if ("2".equals(step)){
entity.put("APPOINT_THREE_USER_ID", "");
entity.put("APPOINT_FOUR_USER_ID", "");
entity.put("APPOINT_FIVE_USER_ID", "");
entity.put("APPOINT_SIX_USER_ID", "");
entity.put("APPOINT_SEVEN_USER_ID", "");
}
if ("3".equals(step)){
entity.put("APPOINT_FOUR_USER_ID", "");
entity.put("APPOINT_FIVE_USER_ID", "");
entity.put("APPOINT_SIX_USER_ID", "");
entity.put("APPOINT_SEVEN_USER_ID", "");
}
if ("4".equals(step)){
entity.put("APPOINT_FIVE_USER_ID", "");
entity.put("APPOINT_SIX_USER_ID", "");
entity.put("APPOINT_SEVEN_USER_ID", "");
}
if ("5".equals(step)){
entity.put("APPOINT_SIX_USER_ID", "");
entity.put("APPOINT_SEVEN_USER_ID", "");
}
if ("6".equals(step)){
entity.put("APPOINT_SEVEN_USER_ID", "");
} }
} }