1、任务新增异常状态字段
This commit is contained in:
2
1-sql/2026-01-09/project/simulation_task.sql
Normal file
2
1-sql/2026-01-09/project/simulation_task.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE simulation_task ADD expStatus TINYINT NULL COMMENT '异常状态';
|
||||
ALTER TABLE simulation_task MODIFY COLUMN expStatus tinyint DEFAULT 0 NULL COMMENT '异常状态';
|
||||
@@ -204,5 +204,8 @@ public class SimulationTask implements Serializable {
|
||||
@TableField("commitmentDeadline")
|
||||
private String commitmentDeadline;
|
||||
|
||||
@TableField("expStatus")
|
||||
private Integer expStatus;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -67,4 +67,9 @@ public class SpdmTaskOprReq {
|
||||
*/
|
||||
private Integer difficult;
|
||||
|
||||
/**
|
||||
* 异常状态
|
||||
*/
|
||||
private Integer expStatus;
|
||||
|
||||
}
|
||||
|
||||
@@ -72,6 +72,9 @@ public class SimulationTaskServiceImpl extends ServiceImpl<SimulationTaskMapper,
|
||||
if (req.getDifficult() != null) {
|
||||
wrapper.set(SimulationTask::getDifficult, req.getDifficult());
|
||||
}
|
||||
if (req.getExpStatus() != null) {
|
||||
wrapper.set(SimulationTask::getExpStatus, req.getExpStatus());
|
||||
}
|
||||
wrapper.set(SimulationTask::getCreator, ThreadLocalContext.getUserId());
|
||||
wrapper.set(SimulationTask::getUpdateTime, DateUtil.now());
|
||||
return this.update(wrapper);
|
||||
|
||||
Reference in New Issue
Block a user