From 4d5bc197fd504850866dc1e26933e5b0e6bc3930 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Thu, 9 Feb 2023 16:22:39 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=9E=E8=AE=AD=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=9C=BA=E6=99=AF=E7=B1=BB=E5=9E=8B=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E5=9C=B0=E5=9B=BE=E5=AE=9A=E4=BD=8D=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rtss/services/training2/Training2DraftService.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java b/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java index 5b0e74e2b..d42a49dec 100644 --- a/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java +++ b/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java @@ -12,6 +12,7 @@ import club.joylink.rtss.simulation.cbtc.data.storage.StorageSimulation; import club.joylink.rtss.simulation.cbtc.exception.SimulationException; import club.joylink.rtss.simulation.cbtc.exception.SimulationExceptionType; import club.joylink.rtss.simulation.cbtc.member.SimulationMemberPO; +import club.joylink.rtss.simulation.cbtc.training2.Training2; import club.joylink.rtss.util.JsonUtils; import club.joylink.rtss.vo.AccountVO; import club.joylink.rtss.vo.client.PageVO; @@ -28,10 +29,7 @@ import org.springframework.util.CollectionUtils; import org.springframework.util.StringUtils; import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.concurrent.atomic.AtomicLong; import java.util.function.Function; import java.util.stream.Collectors; @@ -244,6 +242,9 @@ public class Training2DraftService { b.setClient(req.getClient()); // b.setUpdateTime(LocalDateTime.now()); + if (Objects.equals(req.getType(), Training2.Type.SCENE.name())) { + b.setMapLocationJson(""); + } // this.trainingDao.updateByExampleSelective(b, example); }