feat(盘点快照创建及查询):
1.盘点点明细查询和导出时增加质检等级和操作人字段
This commit is contained in:
parent
273b649e94
commit
36d54ff7bf
@ -52,6 +52,18 @@ public class ZCheckNoDto {
|
||||
*/
|
||||
@ExcelProperty(value="快照数量")
|
||||
private BigDecimal qtyOnHandSnapShot;
|
||||
|
||||
/**
|
||||
* 质检等级
|
||||
*/
|
||||
@ExcelProperty(value="质检等级")
|
||||
private String qualityInspectionStatus;
|
||||
|
||||
/**
|
||||
* 操作人
|
||||
*/
|
||||
@ExcelProperty(value="操作人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 实盘货格
|
||||
|
||||
@ -66,6 +66,8 @@
|
||||
t.erpStorageLocationActual,
|
||||
t.wmsStorageBinActual,
|
||||
t.qtyOnHandActual,
|
||||
ifnull(sdi2.DESCRIPTION,t.QUALITY_INSPECTION_STATUS) QUALITY_INSPECTION_STATUS,
|
||||
t.CREATOR,
|
||||
sdi.LABEL as differenceType
|
||||
from (select t1.CHECK_NO
|
||||
, t1.SITE -- 站点
|
||||
@ -86,6 +88,8 @@
|
||||
then '5' -- 数量相同货位相同
|
||||
else '0' -- 其他
|
||||
end differenceType
|
||||
, t1.QUALITY_INSPECTION_STATUS -- 质检等级
|
||||
, t1.CREATOR -- 创建人
|
||||
from wms.z_wms_inventory_check_snapshot t1
|
||||
left join wms.z_wms_inventory_check_count m1
|
||||
on m1.CHECK_NO = t1.CHECK_NO and m1.INVENTORY_ID = t1.INVENTORY_ID
|
||||
@ -105,6 +109,8 @@
|
||||
, t2.WMS_STORAGE_BIN_BO wmsStorageBinActual -- 实盘货格
|
||||
, t2.QTY_ON_HAND qtyOnHandActual -- 实盘数量
|
||||
, '2' differenceType -- 实盘存在快照不存在
|
||||
, t2.QUALITY_INSPECTION_STATUS -- 质检等级
|
||||
, t2.CREATOR -- 创建人
|
||||
from wms.z_wms_inventory_check_count t2
|
||||
left join wms.z_wms_inventory_check_snapshot m2
|
||||
on m2.CHECK_NO = t2.CHECK_NO and m2.INVENTORY_ID = t2.INVENTORY_ID
|
||||
@ -113,7 +119,8 @@
|
||||
where t2.site = #{param.site} and t2.CHECK_NO = #{param.checkNo}
|
||||
and m2.INVENTORY_ID is null) t
|
||||
left join momx.sys_dict_item sdi on t.site = sdi.TENANT_ID and sdi.DICT_TYPE = 'wms_check_difference_type' and sdi.DEL_FLAG = '0' and t.differenceType = sdi.ITEM_VALUE
|
||||
where 1 = 1
|
||||
left join momx.sys_dict_item sdi2 on t.site = sdi2.TENANT_ID and sdi2.DICT_TYPE = 'INSPEC_LEVEL' and sdi2.DEL_FLAG = '0' and t.QUALITY_INSPECTION_STATUS = sdi2.ITEM_VALUE
|
||||
where 1 = 1
|
||||
<if test="param.differenceType != null and param.differenceType != ''">
|
||||
and t.differenceType = #{param.differenceType}
|
||||
</if>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user