1、编辑任务 bugfix
This commit is contained in:
@@ -62,4 +62,9 @@ public class SpdmTaskOprReq {
|
||||
*/
|
||||
private List<SimulationTaskExtra> extras;
|
||||
|
||||
/**
|
||||
* 难度系数
|
||||
*/
|
||||
private Integer difficult;
|
||||
|
||||
}
|
||||
|
||||
@@ -54,6 +54,9 @@ public class SimulationTaskServiceImpl extends ServiceImpl<SimulationTaskMapper,
|
||||
if (req.getNodeName() != null) {
|
||||
wrapper.set(SimulationTask::getTaskName, req.getNodeName());
|
||||
}
|
||||
if (req.getDifficult() != null) {
|
||||
wrapper.set(SimulationTask::getDifficult, req.getDifficult());
|
||||
}
|
||||
wrapper.set(SimulationTask::getCreator, ThreadLocalContext.getUserId());
|
||||
wrapper.set(SimulationTask::getUpdateTime, DateUtil.now());
|
||||
return this.update(wrapper);
|
||||
|
||||
Reference in New Issue
Block a user