调度命令-地图添加调度台;实训添加发布轨迹追踪;

This commit is contained in:
xzb 2022-09-15 14:59:47 +08:00
parent e236c51863
commit f0bbb332c0
2 changed files with 7 additions and 3 deletions

View File

@ -50,6 +50,8 @@ public class Training2DraftPublishService {
if (null != ptFinds && !ptFinds.isEmpty()) {//已发布实训存在时则直接删除
this.publishedDao.deleteByExample(ptExample);
}
// 该字段废弃数据库对应字段后续删除
pub.setFinalScenesJson(null);
//发布
this.publishedDao.insertSelective(pub);
//记录发布轨迹

View File

@ -16,6 +16,7 @@ import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* 草稿-发布 轨迹追踪业务实现
@ -53,9 +54,10 @@ public class Training2TraceService {
@Transactional(rollbackFor = Exception.class)
public void deleteTrace(List<String> traceIdList){
if(null != traceIdList){
traceIdList.forEach(tId -> {
this.traceTraining2DAO.deleteByPrimaryKey(Long.valueOf(tId));
});
List<Long> idList = traceIdList.stream().map(tId ->{return Long.valueOf(tId);}).collect(Collectors.toList());
TraceTraining2Example example = new TraceTraining2Example();
example.createCriteria().andIdIn(idList);
this.traceTraining2DAO.deleteByExample(example);
}
}
/**