From add025a274496965ffe55ad52896f7a235a303f1 Mon Sep 17 00:00:00 2001 From: liujun Date: Wed, 20 Dec 2023 15:01:47 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/xgf/impl/TrainUsersServiceImpl.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/com/zcloud/service/xgf/impl/TrainUsersServiceImpl.java b/src/main/java/com/zcloud/service/xgf/impl/TrainUsersServiceImpl.java index 79aefcec..5f5cb66d 100644 --- a/src/main/java/com/zcloud/service/xgf/impl/TrainUsersServiceImpl.java +++ b/src/main/java/com/zcloud/service/xgf/impl/TrainUsersServiceImpl.java @@ -189,6 +189,17 @@ public class TrainUsersServiceImpl implements TrainUsersService { condition.put("TRAINING_BATCH_ID",pd.getString("TRAINING_BATCH_ID")); PageData entity = trainingBatchMapper.findById(condition); 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); trainingBatchMapper.edit(entity); }