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

View File

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

View File

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

View File

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

View File

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