修改TaskInfo实体类

master
Cui YongXing 2024-08-22 22:29:41 +08:00
parent 49d8003cb8
commit cadee0563d
5 changed files with 16 additions and 5 deletions

View File

@ -83,7 +83,7 @@ public class TaskInfo extends BaseEntity {
public static TaskInfoResp build(TaskInfo taskInfo){ public static TaskInfoResp build(TaskInfo taskInfo){
return TaskInfoResp.builder() return TaskInfoResp.builder()
.Id(taskInfo.id) .id(taskInfo.id)
.name(taskInfo.name) .name(taskInfo.name)
.processStatus(taskInfo.processStatus) .processStatus(taskInfo.processStatus)
.status(taskInfo.status) .status(taskInfo.status)
@ -97,6 +97,7 @@ public class TaskInfo extends BaseEntity {
.weight(req.getWeight()) .weight(req.getWeight())
.status("N") .status("N")
.processStatus("0") .processStatus("0")
.remark(req.getRemark())
.build(); .build();
} }
public static TaskInfo updBuild(TaskInfoUpdReq req, Supplier<Long> id){ public static TaskInfo updBuild(TaskInfoUpdReq req, Supplier<Long> id){
@ -104,6 +105,7 @@ public class TaskInfo extends BaseEntity {
.id(id.get()) .id(id.get())
.name(req.getName()) .name(req.getName())
.weight(req.getWeight()) .weight(req.getWeight())
.remark(req.getRemark())
.build(); .build();
} }
} }

View File

@ -25,6 +25,11 @@ public class TaskInfoAddReq {
*/ */
@Schema(name = "weight",description = "任务权重级别") @Schema(name = "weight",description = "任务权重级别")
private Integer weight; private Integer weight;
/**
*
*/
@Schema(name = "remark",description = "备注")
private String remark;
} }

View File

@ -33,13 +33,13 @@ public class TaskInfoListReq {
private String processStatus; private String processStatus;
/** /**
* *
*/ */
@Schema(name = "pageNum",description = "分页页数") @Schema(name = "pageNum",description = "分页页数")
private Integer pageNum; private Integer pageNum;
/** /**
* *
*/ */
@Schema(name = "pageSize",description = "每页展示几条") @Schema(name = "pageSize",description = "每页展示几条")
private Integer pageSize; private Integer pageSize;

View File

@ -25,6 +25,10 @@ public class TaskInfoUpdReq {
*/ */
@Schema(name = "weight",description = "任务权重级别") @Schema(name = "weight",description = "任务权重级别")
private Integer weight; private Integer weight;
/**
*
*/
@Schema(name = "remark",description = "备注")
private String remark;
} }

View File

@ -20,7 +20,7 @@ public class TaskInfoResp {
/** /**
* id * id
*/ */
private Long Id; private Long id;
/** /**
* *
*/ */