fix:查询工位所有结构细化完成时间、工位升级时间、清单下发时间
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.sdm.common.entity.req.project;
|
||||
|
||||
import com.sdm.common.entity.BaseReq;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 获取专用时间请求参数
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "获取专用时间请求参数")
|
||||
public class GetDedicatedTimeReq extends BaseReq {
|
||||
@Schema(description = "项目UUID,用于获取项目信息")
|
||||
@NotBlank(message = "projectUuid不能为空")
|
||||
private String projectUuid;
|
||||
|
||||
/**
|
||||
* 节点UUID()
|
||||
*/
|
||||
@Schema(description = "节点UUID,可以传阶段uuid,用于获取阶段下的所有工位")
|
||||
@NotBlank(message = "nodeUuid不能为空")
|
||||
private String nodeUuid;
|
||||
}
|
||||
@@ -8,4 +8,21 @@ public class PageDataResp<T> {
|
||||
Integer currentPage;
|
||||
Integer pageSize;
|
||||
T data;
|
||||
|
||||
/**
|
||||
* 构建分页响应对象
|
||||
* @param data 数据列表
|
||||
* @param total 总记录数
|
||||
* @param currentPage 当前页码
|
||||
* @param pageSize 每页大小
|
||||
* @return 分页响应对象
|
||||
*/
|
||||
public static <T> PageDataResp<T> of(T data, Long total, Integer currentPage, Integer pageSize) {
|
||||
PageDataResp<T> resp = new PageDataResp<>();
|
||||
resp.setData(data);
|
||||
resp.setTotal(total);
|
||||
resp.setCurrentPage(currentPage);
|
||||
resp.setPageSize(pageSize);
|
||||
return resp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user