feat(wms): 重构发货报表统计功能
- 修改发货报表返回结构,支持汇总和按类型统计 - 新增WmsDeliveryReportResultVo用于封装报表结果 - 新增WmsDeliveryReportSummaryVo用于汇总统计 - 新增WmsDeliveryReportByTypeVo用于按类型统计 - 调整Mapper层SQL查询逻辑,分离汇总与明细查询 - 更新Controller层接口返回类型 - 优化Service层实现,组装新的报表数据结构
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package com.klp.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 发货报表按钢卷类型统计VO
|
||||
*/
|
||||
@Data
|
||||
public class WmsDeliveryReportByTypeVo {
|
||||
/**
|
||||
* 钢卷类型(品名)
|
||||
*/
|
||||
private String productName;
|
||||
|
||||
/**
|
||||
* 发货单数量
|
||||
*/
|
||||
private Integer waybillCount = 0;
|
||||
|
||||
/**
|
||||
* 钢卷数量
|
||||
*/
|
||||
private Integer coilCount = 0;
|
||||
|
||||
/**
|
||||
* 总重量(吨)
|
||||
*/
|
||||
private BigDecimal totalWeight = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 日均发货单数量
|
||||
*/
|
||||
private BigDecimal dailyWaybillCount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 日均钢卷数量
|
||||
*/
|
||||
private BigDecimal dailyCoilCount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 日均重量(吨)
|
||||
*/
|
||||
private BigDecimal dailyWeight = BigDecimal.ZERO;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.klp.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 发货报表结果VO
|
||||
*/
|
||||
@Data
|
||||
public class WmsDeliveryReportResultVo {
|
||||
/**
|
||||
* 汇总统计
|
||||
*/
|
||||
private WmsDeliveryReportSummaryVo summary;
|
||||
|
||||
/**
|
||||
* 按钢卷类型统计明细
|
||||
*/
|
||||
private List<WmsDeliveryReportByTypeVo> details;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.klp.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 发货报表汇总统计VO
|
||||
*/
|
||||
@Data
|
||||
public class WmsDeliveryReportSummaryVo {
|
||||
/**
|
||||
* 发货单数量
|
||||
*/
|
||||
private Integer waybillCount = 0;
|
||||
|
||||
/**
|
||||
* 钢卷数量
|
||||
*/
|
||||
private Integer coilCount = 0;
|
||||
|
||||
/**
|
||||
* 总重量(吨)
|
||||
*/
|
||||
private BigDecimal totalWeight = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 日均发货单数量
|
||||
*/
|
||||
private BigDecimal dailyWaybillCount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 日均钢卷数量
|
||||
*/
|
||||
private BigDecimal dailyCoilCount = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 日均重量(吨)
|
||||
*/
|
||||
private BigDecimal dailyWeight = BigDecimal.ZERO;
|
||||
|
||||
/**
|
||||
* 统计开始时间
|
||||
*/
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* 统计结束时间
|
||||
*/
|
||||
private Date endTime;
|
||||
}
|
||||
Reference in New Issue
Block a user