调度命令-地图添加调度台;实训添加发布轨迹追踪;
This commit is contained in:
parent
e236c51863
commit
f0bbb332c0
@ -50,6 +50,8 @@ public class Training2DraftPublishService {
|
||||
if (null != ptFinds && !ptFinds.isEmpty()) {//已发布实训存在时则直接删除
|
||||
this.publishedDao.deleteByExample(ptExample);
|
||||
}
|
||||
// 该字段废弃,数据库对应字段后续删除
|
||||
pub.setFinalScenesJson(null);
|
||||
//发布
|
||||
this.publishedDao.insertSelective(pub);
|
||||
//记录发布轨迹
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user