feat(wms): 添加第二个表格统计功能
- 在 IWmsRawMaterialService 中新增 queryStatistics 方法用于统计原材料数据 - 在 WmsRawMaterialController 中添加 /statistics 接口端点 - 在 WmsRawMaterialMapper 中新增 selectStatistics 查询方法 - 在 XML 映射文件中实现统计查询的 SQL 语句 - 在服务实现类中完成统计逻辑,按厂家、材质、规格分组计算钢卷件数和重量 - 新增 ManufacturerStatisticsVo、MaterialStatisticsVo、SpecificationStatisticsVo 和 WmsRawMaterialStatisticsVo 数据传输对象 - 实现多层级数据聚合统计功能,包括厂家、材质、规格维度的数据汇总
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.klp.domain.vo.dashboard;
|
||||
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ManufacturerStatisticsVo {
|
||||
private String manufacturer;
|
||||
private Integer totalCoilCount;
|
||||
private BigDecimal totalWeight;
|
||||
private List<MaterialStatisticsVo> materials;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.klp.domain.vo.dashboard;
|
||||
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class MaterialStatisticsVo {
|
||||
private String material;
|
||||
private Integer totalCoilCount;
|
||||
private BigDecimal totalWeight;
|
||||
private List<SpecificationStatisticsVo> specifications;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.klp.domain.vo.dashboard;
|
||||
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class SpecificationStatisticsVo {
|
||||
private String specification;
|
||||
private Integer coilCount;
|
||||
private BigDecimal totalWeight;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.klp.domain.vo.dashboard;
|
||||
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class WmsRawMaterialStatisticsVo {
|
||||
|
||||
private String manufacturer;
|
||||
|
||||
private String material;
|
||||
|
||||
private String specification;
|
||||
|
||||
private Integer coilCount;
|
||||
|
||||
private BigDecimal totalWeight;
|
||||
}
|
||||
Reference in New Issue
Block a user