update:移动计量单位管理模块位置
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,27 @@
|
||||
package com.zt.plat.module.base.controller.admin.quantityUnitRelation.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 创建单位并关联到量纲 Request VO")
|
||||
@Data
|
||||
public class CreateUnitWithRelationReqVO {
|
||||
|
||||
@Schema(description = "量纲ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "量纲ID不能为空")
|
||||
private Long untQtyId;
|
||||
|
||||
@Schema(description = "单位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "米")
|
||||
@NotEmpty(message = "单位名称不能为空")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "单位符号", requiredMode = Schema.RequiredMode.REQUIRED, example = "m")
|
||||
@NotEmpty(message = "单位符号不能为空")
|
||||
private String smb;
|
||||
|
||||
@Schema(description = "是否基准单位:0=否,1=是", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "是否基准单位不能为空")
|
||||
private Integer isBse;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.zt.plat.module.base.controller.admin.quantityUnitRelation.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 删除单位及关联关系 Request VO")
|
||||
@Data
|
||||
public class DeleteUnitWithRelationReqVO {
|
||||
|
||||
@Schema(description = "关联关系ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "关联关系ID不能为空")
|
||||
private Long relationId;
|
||||
|
||||
@Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "单位ID不能为空")
|
||||
private Long untId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.zt.plat.module.base.controller.admin.quantityUnitRelation.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 计量单位量与单位关联批量保存 Request VO")
|
||||
@Data
|
||||
public class QuantityUnitRelationBatchSaveReqVO {
|
||||
|
||||
@Schema(description = "计量单位量ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11015")
|
||||
@NotNull(message = "计量单位量ID不能为空")
|
||||
private Long untQtyId;
|
||||
|
||||
@Schema(description = "单位关联列表", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "单位关联列表不能为空")
|
||||
private List<UnitRelationItemVO> unitRelations;
|
||||
|
||||
@Schema(description = "单位关联项")
|
||||
@Data
|
||||
public static class UnitRelationItemVO {
|
||||
|
||||
@Schema(description = "主键ID(新增时为空,更新时必填)", example = "11015")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "计量单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30976")
|
||||
@NotNull(message = "计量单位ID不能为空")
|
||||
private Long untId;
|
||||
|
||||
@Schema(description = "是否基准单位-标识该维度基准单位")
|
||||
private Integer isBse;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.zt.plat.module.base.controller.admin.quantityUnitRelation.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 计量单位量与单位关联分页 Request VO")
|
||||
@Data
|
||||
public class QuantityUnitRelationPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "所属量纲")
|
||||
private Long untQtyId;
|
||||
|
||||
@Schema(description = "是否基准单位-标识该维度基准单位")
|
||||
private Integer isBse;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.zt.plat.module.base.controller.admin.quantityUnitRelation.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 计量单位量与单位关联 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class QuantityUnitRelationRespVO {
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11015")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "计量单位量ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11015")
|
||||
@ExcelProperty("计量单位量ID")
|
||||
private Long untQtyId;
|
||||
|
||||
@Schema(description = "计量单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30976")
|
||||
@ExcelProperty("计量单位ID")
|
||||
private Long untId;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "是否基准单位-标识该维度基准单位")
|
||||
@ExcelProperty("是否基准单位-标识该维度基准单位")
|
||||
private Integer isBse;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.zt.plat.module.base.controller.admin.quantityUnitRelation.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 计量单位量与单位关联新增/修改 Request VO")
|
||||
@Data
|
||||
public class QuantityUnitRelationSaveReqVO {
|
||||
|
||||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11015")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "计量单位量ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11015")
|
||||
private Long untQtyId;
|
||||
|
||||
@Schema(description = "计量单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30976")
|
||||
private Long untId;
|
||||
|
||||
@Schema(description = "是否基准单位-标识该维度基准单位")
|
||||
private Integer isBse;
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,33 @@
|
||||
package com.zt.plat.module.base.controller.admin.unitConversion.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 批量按名称单位转换 Request VO")
|
||||
@Data
|
||||
public class BatchUnitConvertByNameReqVO {
|
||||
|
||||
@Schema(description = "源单位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "千克")
|
||||
@NotBlank(message = "源单位名称不能为空")
|
||||
private String srcUnitName;
|
||||
|
||||
@Schema(description = "目标单位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "吨")
|
||||
@NotBlank(message = "目标单位名称不能为空")
|
||||
private String tgtUnitName;
|
||||
|
||||
@Schema(description = "待转换的值列表", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "待转换的值列表不能为空")
|
||||
private List<BigDecimal> values;
|
||||
|
||||
@Schema(description = "精度(小数位数)", example = "6")
|
||||
private Integer precision = 6;
|
||||
|
||||
@Schema(description = "是否忽略错误(true:遇到错误继续执行, false:遇到错误立即停止)", example = "false")
|
||||
private Boolean ignoreErrors = false;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.zt.plat.module.base.controller.admin.unitConversion.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 批量按符号单位转换 Request VO")
|
||||
@Data
|
||||
public class BatchUnitConvertBySymbolReqVO {
|
||||
|
||||
@Schema(description = "源单位符号", requiredMode = Schema.RequiredMode.REQUIRED, example = "m")
|
||||
@NotBlank(message = "源单位符号不能为空")
|
||||
private String srcUnitSymbol;
|
||||
|
||||
@Schema(description = "目标单位符号", requiredMode = Schema.RequiredMode.REQUIRED, example = "km")
|
||||
@NotBlank(message = "目标单位符号不能为空")
|
||||
private String tgtUnitSymbol;
|
||||
|
||||
@Schema(description = "待转换的值列表", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "待转换的值列表不能为空")
|
||||
private List<BigDecimal> values;
|
||||
|
||||
@Schema(description = "精度(小数位数)", example = "6")
|
||||
private Integer precision = 6;
|
||||
|
||||
@Schema(description = "是否忽略错误(true:遇到错误继续执行, false:遇到错误立即停止)", example = "false")
|
||||
private Boolean ignoreErrors = false;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user