feat(wms): 添加库存查询报表冻结原因字段并优化数据关联- 在 InventoryQueryReportDto 中添加 freezeReason 字段,用于显示冻结原因

- 在 InventoryQueryReportMapper.xml 中加入与冻结日志表的关联查询,获取冻结原因数据
- 在 InventoryQueryReportServiceImpl 中增加了对调试膜和特采膜的处理逻辑
This commit is contained in:
tangyu 2025-08-25 10:32:46 +08:00
parent cd69c7d938
commit ad23b33aa1
3 changed files with 11 additions and 0 deletions

View File

@ -250,4 +250,7 @@ public class InventoryQueryReportDto {
@ExcelProperty("质量备注")
private String qualityRemarks;
@ExcelProperty("冻结原因")
private String freezeReason;
}

View File

@ -161,6 +161,12 @@ public class InventoryQueryReportServiceImpl implements InventoryQueryReportServ
case "S":
rollType1 = "实验膜";
break;
case "D":
rollType1 = "调试模";
break;
case "W":
rollType1 = "特采膜";
break;
}
record.setRollType(rollType1);
}

View File

@ -75,6 +75,7 @@
, WI.SUPPLIER_BARCODE
, WI.BIG_BATCH_NO
,WI.QUALITY_REMARKS
,zqftl.REASON as freeze_reason
<choose>
<when test="storageTime != null and storageTime != ''">
, #{storageTime} as STORAGE_TIME
@ -104,6 +105,7 @@
LEFT JOIN WIP.CUSTOM_FIELDS CF2 ON CF2.HANDLE = LB.SHOP_ORDER_BO AND CF2.FIELD_NAME = 'ZCT_PMYS'
left join wip.z_sales_order zso on zso.SO_NUMBER = WI.DN_ORDER and zso.SITE = WI.SITE
left join momx.sys_user su on su.USERNAME = zso.SO_ASSISTANT and su.TENANT_ID = zso.SITE
left join wip.z_qms_frozen_thaw_log zqftl on wi.site = zqftl.site and wi.inventory_id = zqftl.inventory_id and zqftl.status = '1005' and wi.STATUS = '1005'
<where>
WI.SITE = #{site}
<if test="erpStorageLocationList != null and erpStorageLocationList.size > 0">