fix:更细工位所有结构细化完成时间、工位升级时间、清单下发时间

This commit is contained in:
2026-01-27 10:40:34 +08:00
parent 81de41f7f7
commit 36fdc6b70b
6 changed files with 299 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
package com.sdm.common.entity.req.project;
import com.sdm.common.entity.BaseReq;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.util.List;
/**
* 批量更新工位扩展属性请求参数
*/
@Data
@Schema(description = "批量更新工位扩展属性请求参数")
public class BatchUpdateWorkspaceExtraReq extends BaseReq {
@Schema(description = "工位扩展属性列表,每个工位都有自己独立的扩展属性", required = true)
@NotEmpty(message = "工位扩展属性列表不能为空")
@Valid
private List<WorkspaceExtraData> workspaceExtras;
/**
* 工位扩展属性数据
*/
@Data
@Schema(description = "工位扩展属性数据")
public static class WorkspaceExtraData {
@Schema(description = "工位UUID", required = true)
@NotNull(message = "工位UUID不能为空")
private String workspaceUuid;
@Schema(description = "该工位的扩展属性列表", required = true)
@NotEmpty(message = "扩展属性列表不能为空")
@Valid
private List<WorkspaceExtraItem> extras;
}
/**
* 工位扩展属性项
*/
@Data
@Schema(description = "工位扩展属性项")
public static class WorkspaceExtraItem {
@Schema(description = "属性名称", required = true, example = "structureRefinementCompletionTime")
@NotEmpty(message = "属性名称不能为空")
private String propertyName;
@Schema(description = "属性值为空时更新为null")
private String propertyValue;
@Schema(description = "值类型", example = "string")
private String valueType;
@Schema(description = "属性分类")
private String propertyClass;
}
}