style(vo): 优化产品和原材料VO类的Excel导出配置
- 移除WmsProductVo中所有字段的ExcelProperty注解,保留关键字段的简洁导出 - 调整WmsProductVo中产品名称的Excel导出标签从"产品名称"改为"名称" - 为WmsProductVo新增规格、材质、厂家、表面处理和锌层字段添加ExcelProperty注解 - 移除WmsRawMaterialVo中所有字段的ExcelProperty注解,精简导出配置 - 调整WmsRawMaterialVo中原材料名称的Excel导出标签从"原材料名称"改为"名称" - 为WmsRawMaterialVo新增规格、材质、厂家、表面处理和锌层字段添加ExcelProperty注解 - 统一两个VO类中新增字段的Excel导出标签命名规范
This commit is contained in:
@@ -25,97 +25,79 @@ public class WmsProductVo {
|
|||||||
/**
|
/**
|
||||||
* 主键ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "主键ID")
|
|
||||||
private Long productId;
|
private Long productId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品编号
|
* 产品编号
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "产品编号")
|
|
||||||
private String productCode;
|
private String productCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品名称
|
* 产品名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "产品名称")
|
@ExcelProperty(value = "名称")
|
||||||
private String productName;
|
private String productName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 负责人
|
* 负责人
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "负责人")
|
|
||||||
private String owner;
|
private String owner;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 基础材质分类ID
|
* 基础材质分类ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "基础材质分类ID")
|
|
||||||
private Long baseMaterialId;
|
private Long baseMaterialId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表面处理分类ID
|
* 表面处理分类ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "表面处理分类ID")
|
|
||||||
private Long surfaceTreatmentId;
|
private Long surfaceTreatmentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 客户需求分类ID
|
* 客户需求分类ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "客户需求分类ID")
|
|
||||||
private Long customerReqId;
|
private Long customerReqId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 包装分类ID
|
* 包装分类ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "包装分类ID")
|
|
||||||
private Long packagingId;
|
private Long packagingId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 厚度(mm)
|
* 厚度(mm)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "厚度", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "m=m")
|
|
||||||
private BigDecimal thickness;
|
private BigDecimal thickness;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 宽度(mm)
|
* 宽度(mm)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "宽度", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "m=m")
|
|
||||||
private BigDecimal width;
|
private BigDecimal width;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 内径(mm)
|
* 内径(mm)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "内径", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "m=m")
|
|
||||||
private BigDecimal innerDiameter;
|
private BigDecimal innerDiameter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单位
|
* 单位
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "单位")
|
|
||||||
private String unit;
|
private String unit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否启用(0=否,1=是)
|
* 是否启用(0=否,1=是)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "是否启用", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "0==否,1=是")
|
|
||||||
private Integer isEnabled;
|
private Integer isEnabled;
|
||||||
/**
|
/**
|
||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "备注")
|
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BOM 表头ID
|
* BOM 表头ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "BOM 表头ID")
|
|
||||||
private Long bomId;
|
private Long bomId;
|
||||||
|
|
||||||
@ExcelProperty(value = "类型")
|
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -125,27 +107,32 @@ public class WmsProductVo {
|
|||||||
|
|
||||||
|
|
||||||
//规格
|
//规格
|
||||||
|
@ExcelProperty(value = "规格")
|
||||||
private String specification;
|
private String specification;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 材质
|
* 材质
|
||||||
*/
|
*/
|
||||||
|
@ExcelProperty(value = "材质")
|
||||||
private String material;
|
private String material;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 厂家
|
* 厂家
|
||||||
*/
|
*/
|
||||||
|
@ExcelProperty(value = "厂家")
|
||||||
private String manufacturer;
|
private String manufacturer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表面处理详情
|
* 表面处理详情
|
||||||
*/
|
*/
|
||||||
|
@ExcelProperty(value = "表面处理")
|
||||||
private String surfaceTreatmentDesc;
|
private String surfaceTreatmentDesc;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 锌层厚度
|
* 锌层厚度
|
||||||
*/
|
*/
|
||||||
|
@ExcelProperty(value = "锌层")
|
||||||
private String zincLayer;
|
private String zincLayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,192 +25,147 @@ public class WmsRawMaterialVo {
|
|||||||
/**
|
/**
|
||||||
* 主键ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "主键ID")
|
|
||||||
private Long rawMaterialId;
|
private Long rawMaterialId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 原材料编号
|
* 原材料编号
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "原材料编号")
|
|
||||||
private String rawMaterialCode;
|
private String rawMaterialCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 原材料名称
|
* 原材料名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "原材料名称")
|
@ExcelProperty(value = "名称")
|
||||||
private String rawMaterialName;
|
private String rawMaterialName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 钢种/牌号(如SPHC、SPHE、S350GD等)
|
* 钢种/牌号(如SPHC、SPHE、S350GD等)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "钢种/牌号", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "如=SPHC、SPHE、S350GD等")
|
|
||||||
private String steelGrade;
|
private String steelGrade;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 目标冷轧牌号(如SPCC、DC06、SGCC等)
|
* 目标冷轧牌号(如SPCC、DC06、SGCC等)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "目标冷轧牌号", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "如=SPCC、DC06、SGCC等")
|
|
||||||
private String targetColdGrade;
|
private String targetColdGrade;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 基础材质分类ID
|
* 基础材质分类ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "基础材质分类ID")
|
|
||||||
private Long baseMaterialId;
|
private Long baseMaterialId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表面处理分类ID
|
* 表面处理分类ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "表面处理分类ID")
|
|
||||||
private Long surfaceTreatmentId;
|
private Long surfaceTreatmentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 厚度(mm)
|
* 厚度(mm)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "厚度", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "m=m")
|
|
||||||
private BigDecimal thickness;
|
private BigDecimal thickness;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 厚度偏差(mm)
|
* 厚度偏差(mm)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "厚度偏差", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "m=m")
|
|
||||||
private BigDecimal thicknessDeviation;
|
private BigDecimal thicknessDeviation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 宽度(mm)
|
* 宽度(mm)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "宽度", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "m=m")
|
|
||||||
private BigDecimal width;
|
private BigDecimal width;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 目标冷轧宽度(mm)
|
* 目标冷轧宽度(mm)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "目标冷轧宽度", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "m=m")
|
|
||||||
private BigDecimal targetColdWidth;
|
private BigDecimal targetColdWidth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 目标冷轧厚度(mm)
|
* 目标冷轧厚度(mm)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "目标冷轧厚度", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "m=m")
|
|
||||||
private BigDecimal targetColdThickness;
|
private BigDecimal targetColdThickness;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 凸度(mm)
|
* 凸度(mm)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "凸度", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "m=m")
|
|
||||||
private BigDecimal crown;
|
private BigDecimal crown;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 卷重(kg)
|
* 卷重(kg)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "卷重", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "k=g")
|
|
||||||
private BigDecimal coilWeight;
|
private BigDecimal coilWeight;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表面质量
|
* 表面质量
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "表面质量")
|
|
||||||
private String surfaceQuality;
|
private String surfaceQuality;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 硬度(HV5)
|
* 硬度(HV5)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "硬度", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "H=V5")
|
|
||||||
private BigDecimal hardnessHv5;
|
private BigDecimal hardnessHv5;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 硬度差值(HV5差值≤15为合格)
|
* 硬度差值(HV5差值≤15为合格)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "硬度差值", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "H=V5差值≤15为合格")
|
|
||||||
private BigDecimal hardnessDiff;
|
private BigDecimal hardnessDiff;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 锰含量Mn(%)
|
* 锰含量Mn(%)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "锰含量Mn", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "%=")
|
|
||||||
private BigDecimal compositionMn;
|
private BigDecimal compositionMn;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 磷含量P(%)
|
* 磷含量P(%)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "磷含量P", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "%=")
|
|
||||||
private BigDecimal compositionP;
|
private BigDecimal compositionP;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 晶粒级别(如ASTM 6-8级,仅电工钢)
|
* 晶粒级别(如ASTM 6-8级,仅电工钢)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "晶粒级别", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "如=ASTM,6=-8级,仅电工钢")
|
|
||||||
private String grainSize;
|
private String grainSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 头尾切除标记(0=否,1=是,汽车板专用)
|
* 头尾切除标记(0=否,1=是,汽车板专用)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "头尾切除标记", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "0==否,1=是,汽车板专用")
|
|
||||||
private Integer headTailCutFlag;
|
private Integer headTailCutFlag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检测结论(如合格/条纹/微裂纹/成分偏析等)
|
* 检测结论(如合格/条纹/微裂纹/成分偏析等)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "检测结论", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "如=合格/条纹/微裂纹/成分偏析等")
|
|
||||||
private String inspectionResult;
|
private String inspectionResult;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否启用(0=否,1=是)
|
* 是否启用(0=否,1=是)
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "是否启用", converter = ExcelDictConvert.class)
|
|
||||||
@ExcelDictFormat(readConverterExp = "0==否,1=是")
|
|
||||||
private Integer isEnabled;
|
private Integer isEnabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "备注")
|
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单位
|
* 单位
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "单位")
|
|
||||||
private String unit;
|
private String unit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BOM 表头ID
|
* BOM 表头ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "BOM 表头ID")
|
|
||||||
private Long bomId;
|
private Long bomId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 需求量
|
* 需求量
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "需求量")
|
|
||||||
private BigDecimal demand;
|
private BigDecimal demand;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 库存量
|
* 库存量
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "库存量")
|
|
||||||
private BigDecimal inventory;
|
private BigDecimal inventory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 在途量
|
* 在途量
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "在途量")
|
|
||||||
private BigDecimal onTheWay;
|
private BigDecimal onTheWay;
|
||||||
|
|
||||||
|
|
||||||
@@ -220,26 +175,31 @@ public class WmsRawMaterialVo {
|
|||||||
private List<WmsBomItemVo> bomItems;
|
private List<WmsBomItemVo> bomItems;
|
||||||
|
|
||||||
//规格
|
//规格
|
||||||
|
@ExcelProperty(value = "规格")
|
||||||
private String specification;
|
private String specification;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 材质
|
* 材质
|
||||||
*/
|
*/
|
||||||
|
@ExcelProperty(value = "材质")
|
||||||
private String material;
|
private String material;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 厂家
|
* 厂家
|
||||||
*/
|
*/
|
||||||
|
@ExcelProperty(value = "厂家")
|
||||||
private String manufacturer;
|
private String manufacturer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表面处理详情
|
* 表面处理详情
|
||||||
*/
|
*/
|
||||||
|
@ExcelProperty(value = "表面处理")
|
||||||
private String surfaceTreatmentDesc;
|
private String surfaceTreatmentDesc;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 锌层厚度
|
* 锌层厚度
|
||||||
*/
|
*/
|
||||||
|
@ExcelProperty(value = "锌层")
|
||||||
private String zincLayer;
|
private String zincLayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user