feat(盘点快照创建及查询):
1.操作人取值变更
This commit is contained in:
parent
ed1c9da44d
commit
ec3dd0bb13
@ -67,7 +67,7 @@
|
||||
t.wmsStorageBinActual,
|
||||
t.qtyOnHandActual,
|
||||
ifnull(sdi2.DESCRIPTION,t.QUALITY_INSPECTION_STATUS) QUALITY_INSPECTION_STATUS,
|
||||
t.CREATOR,
|
||||
concat(t.CREATOR, '/', su.NAME) CREATOR,
|
||||
sdi.LABEL as differenceType
|
||||
from (select t1.CHECK_NO
|
||||
, t1.SITE -- 站点
|
||||
@ -88,8 +88,8 @@
|
||||
then '5' -- 数量相同货位相同
|
||||
else '0' -- 其他
|
||||
end differenceType
|
||||
, t1.QUALITY_INSPECTION_STATUS -- 质检等级
|
||||
, t1.CREATOR -- 创建人
|
||||
, m1.QUALITY_INSPECTION_STATUS -- 质检等级
|
||||
, m1.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
|
||||
@ -120,6 +120,7 @@
|
||||
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
|
||||
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
|
||||
left join momx.sys_user su on t.site = su.TENANT_ID and su.USERNAME = t.CREATOR and su.DEL_FLAG = '0'
|
||||
where 1 = 1
|
||||
<if test="param.differenceType != null and param.differenceType != ''">
|
||||
and t.differenceType = #{param.differenceType}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user