feat(wms/coil): 为钢卷物料新增理论厚度与镀铬卷号字段并实现自动计算

1. 在钢卷物料实体类、业务对象、值对象及导出VO中新增理论厚度(theoreticalThickness)和镀铬卷号(chromePlateCoilNo)字段
2. 在映射文件中补充新增字段的数据库映射关系
3. 在服务实现类中添加理论厚度自动计算逻辑:根据净重、实测长度和物品规格宽度,使用公式“理论厚度 = 净重(吨) × 1000 / (7.85 × 实测长度(mm) × 宽度(mm))”自动计算并保留3位小数
4. 新增工具方法用于从物品规格中提取厚度和宽度信息
5. 在新增、修改、分卷、批量分卷等业务方法中调用理论厚度计算逻辑
6. 在分卷和批量分卷时增加子卷净重和规格厚度不超过母卷的业务校验
This commit is contained in:
2026-06-01 13:50:48 +08:00
parent c5ce33f71a
commit c8fe545950
6 changed files with 212 additions and 0 deletions

View File

@@ -213,5 +213,15 @@ public class WmsMaterialCoil extends BaseEntity {
private Long specId;
private Long versionId;
/**
* 理论厚度(单位:毫米)
*/
private BigDecimal theoreticalThickness;
/**
* 镀铬卷号
*/
private String chromePlateCoilNo;
}

View File

@@ -381,5 +381,15 @@ public class WmsMaterialCoilBo extends BaseEntity {
private Long specId;
private Long versionId;
/**
* 理论厚度(单位:毫米)
*/
private BigDecimal theoreticalThickness;
/**
* 镀铬卷号
*/
private String chromePlateCoilNo;
}

View File

@@ -208,4 +208,16 @@ public class WmsMaterialCoilExportVo {
*/
@ExcelProperty(value = "调拨类型")
private String transferType;
/**
* 理论厚度(单位:毫米)
*/
@ExcelProperty(value = "理论厚度")
private BigDecimal theoreticalThickness;
/**
* 镀铬卷号
*/
@ExcelProperty(value = "镀铬卷号")
private String chromePlateCoilNo;
}

View File

@@ -339,5 +339,15 @@ public class WmsMaterialCoilVo extends BaseEntity {
private Long versionId;
private String specCode;
private String versionCode;
/**
* 理论厚度(单位:毫米)
*/
private BigDecimal theoreticalThickness;
/**
* 镀铬卷号
*/
private String chromePlateCoilNo;
}