feat(wms): 新增钢卷报表查询接口和解锁功能
- 添加 queryReportList 方法用于轻量级报表数据查询 - 新增 listForReport 控制器接口返回必要字段提升传输性能 - 创建 WmsMaterialCoilReportVo 类定义报表数据结构 - 添加 unlockCoil 方法解除钢卷锁定状态 - 实现 unlockCoil 控制器接口支持 PUT 请求 - 更新数据库映射配置移除多余关联查询字段 - 优化报表查询 SQL 仅返回必要字段提升查询效率
This commit is contained in:
@@ -127,7 +127,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
mc.exclusive_status,
|
||||
mc.transfer_type,
|
||||
mc.sale_name AS saleName,
|
||||
su.nick_name AS saleNickName,
|
||||
w.warehouse_name AS warehouseName,
|
||||
nw.warehouse_name AS nextWarehouseName,
|
||||
aw.actual_warehouse_name AS actualWarehouseName,
|
||||
@@ -163,7 +162,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
LEFT JOIN wms_warehouse w ON mc.warehouse_id = w.warehouse_id
|
||||
LEFT JOIN wms_warehouse nw ON mc.next_warehouse_id = nw.warehouse_id
|
||||
LEFT JOIN wms_actual_warehouse aw ON mc.actual_warehouse_id = aw.actual_warehouse_id
|
||||
LEFT JOIN sys_user su ON mc.sale_id = su.user_id
|
||||
LEFT JOIN wms_raw_material rm ON mc.item_type = 'raw_material' AND mc.item_id = rm.raw_material_id
|
||||
LEFT JOIN wms_product p ON mc.item_type = 'product' AND mc.item_id = p.product_id
|
||||
LEFT JOIN (
|
||||
@@ -476,6 +474,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
ORDER BY mc.item_type, mc.item_id, w.actual_warehouse_id
|
||||
</select>
|
||||
|
||||
<!-- 查询钢卷报表数据:轻量级,仅返回必要字段 -->
|
||||
<select id="selectPageReportList" resultType="com.klp.domain.vo.WmsMaterialCoilReportVo">
|
||||
SELECT
|
||||
mc.coil_id AS coilId,
|
||||
mc.net_weight AS netWeight,
|
||||
mc.warehouse_id AS warehouseId,
|
||||
mc.quality_status AS qualityStatus,
|
||||
mc.team AS team
|
||||
FROM wms_material_coil mc
|
||||
LEFT JOIN wms_raw_material rm ON mc.item_type = 'raw_material' AND mc.item_id = rm.raw_material_id
|
||||
LEFT JOIN wms_product p ON mc.item_type = 'product' AND mc.item_id = p.product_id
|
||||
LEFT JOIN wms_warehouse w ON mc.warehouse_id = w.warehouse_id
|
||||
LEFT JOIN wms_actual_warehouse aw ON mc.actual_warehouse_id = aw.actual_warehouse_id
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
<!-- 导出查询:包含所有需要的字段 -->
|
||||
<select id="selectExportList" resultType="com.klp.domain.vo.WmsMaterialCoilExportVo">
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user