diff --git a/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java b/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java index 0c3707ab..b7968877 100644 --- a/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java +++ b/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java @@ -1022,9 +1022,64 @@ public class XgfUserServiceImpl implements XgfUserService { } flowEntity.put("FLOWS_STEP", info.getBACK_STEP()); 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", ""); } }