Browse Source

修改任务BUG

master
zy 2 months ago
parent
commit
69f88eb197
  1. 10
      yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/taskinfo/vo/TaskInfoSaveReqVO.java
  2. 1
      yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/taskinfo/TaskInfoServiceImpl.java

10
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/taskinfo/vo/TaskInfoSaveReqVO.java

@ -55,16 +55,10 @@ public class TaskInfoSaveReqVO {
private String status;
@Schema(description = "任务计划开始时间")
@JsonSerialize(using = LocalDateSerializer.class) // 序列化(响应)
@JsonDeserialize(using = LocalDateDeserializer.class) // 反序列化(请求)
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate startDate;
private LocalDateTime startDate;
@Schema(description = "任务计划结束时间")
@JsonSerialize(using = LocalDateSerializer.class) // 序列化(响应)
@JsonDeserialize(using = LocalDateDeserializer.class) // 反序列化(请求)
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate endDate;
private LocalDateTime endDate;
@Schema(description = "父任务id", example = "30399")
private Long parentId;

1
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/taskinfo/TaskInfoServiceImpl.java

@ -89,6 +89,7 @@ public class TaskInfoServiceImpl implements TaskInfoService {
String time = "";
time = DateUtil.format(new Date(), "yyyyMMddHHmm");
serialNumber = "HB" + time;
//随机数
taskInfo.setTaskNumber(serialNumber);
taskInfoMapper.insert(taskInfo);

Loading…
Cancel
Save