bug修复

pull/5/head
liujun 2023-12-20 15:01:47 +08:00
parent d8f38ffdcd
commit add025a274
1 changed files with 11 additions and 0 deletions

View File

@ -189,6 +189,17 @@ public class TrainUsersServiceImpl implements TrainUsersService {
condition.put("TRAINING_BATCH_ID",pd.getString("TRAINING_BATCH_ID")); condition.put("TRAINING_BATCH_ID",pd.getString("TRAINING_BATCH_ID"));
PageData entity = trainingBatchMapper.findById(condition); PageData entity = trainingBatchMapper.findById(condition);
int stepNumber = Integer.parseInt(entity.getString("STEP_STATUS")); int stepNumber = Integer.parseInt(entity.getString("STEP_STATUS"));
switch (stepNumber){
case 0:
entity.put("TERRITORIALITY_TIME",DateUtil.getTime());
break;
case 1:
entity.put("MANAGER_TIME",DateUtil.getTime());
break;
case 2:
entity.put("SUPERVISION_TIME",DateUtil.getTime());
break;
}
entity.put("STEP_STATUS",++stepNumber); entity.put("STEP_STATUS",++stepNumber);
trainingBatchMapper.edit(entity); trainingBatchMapper.edit(entity);
} }