This commit is contained in:
lijiaqi 2024-09-09 16:43:49 +08:00
parent ea6905fce0
commit efed6f6583
4 changed files with 85 additions and 0 deletions

View File

@ -0,0 +1,44 @@
package cn.workde.module.drone.coding.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.List;
@Data
public class AttributeValueDto {
@Schema(description = "属性分类集合")
private List<AttributeClassificationDTO> attributeClassificationList;
@Data
static class AttributeClassificationDTO {
@Schema(description = "属性分类Id")
private String attributeClassificationId;
@Schema(description = "属性分类名称")
private String attributeClassificationName;
@Schema(description = "属性集合")
private List<AttributeDTO> attributeList;
}
@Data
static class AttributeDTO {
@Schema(description = "MFC ID")
private String mfcId;
@Schema(description = "批次ID")
private String batchesId;
@Schema(description = "属性Id")
private String attributeId;
@Schema(description = "属性名称")
private String attributeName;
@Schema(description = "属性描述")
private String attributeDescription;
@Schema(description = "属性备注")
private String attributeRemarks;
@Schema(description = "是否锁定")
private Boolean locked;
@Schema(description = "属性数值")
private String attributeValue;
}
}

View File

@ -34,5 +34,8 @@ public class Attribute extends BaseEntity {
@Schema(description = "属性备注")
private String attributeRemarks;
@Schema(description = "是否锁定")
private Boolean locked;
}

View File

@ -0,0 +1,33 @@
package cn.workde.module.drone.coding.entity;
import cn.workde.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 无人机属性数值备份(AttributeValueBackup)表实体类
*
* @author makejava
* @since 2024-09-06 10:49:54
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "dss_drone_coding_attribute_value_backup")
public class AttributeValueBackup extends BaseEntity {
@Schema(description = "批次ID")
private String batchesId;
@Schema(description = "属性分类ID")
private String attributeClassificationId;
@Schema(description = "属性ID")
private String attributeId;
@Schema(description = "属性数值")
private String attributeValue;
}

View File

@ -2,6 +2,7 @@ package cn.workde.module.drone.coding.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
@Data
@ -21,4 +22,8 @@ public class AttributeVo {
@Schema(description = "属性备注")
// @NotBlank(message = "属性备注不能为空")
private String attributeRemarks;
@Schema(description = "是否锁定")
@NotNull(message = "请选择是否锁定")
private Boolean locked;
}