【实训修改为场景类型时,清空地图定位】
This commit is contained in:
parent
e9c3b3fd57
commit
4d5bc197fd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user