|
|
@ -30,7 +30,7 @@ |
|
|
w.WareHouseName as warehouseName, |
|
|
w.WareHouseName as warehouseName, |
|
|
l.LocationName as locationName, |
|
|
l.LocationName as locationName, |
|
|
h.height,h.wdr,h.eng_chg_level as engChgLevel,h.expired_date as expiredDate, |
|
|
h.height,h.wdr,h.eng_chg_level as engChgLevel,h.expired_date as expiredDate, |
|
|
h.last_count_date as lastCountDate,h.source_type as sourceType |
|
|
|
|
|
|
|
|
h.count_flag as countFlag,h.last_count_date as lastCountDate,h.source_type as sourceType |
|
|
FROM handling_unit h WITH (NOLOCK) |
|
|
FROM handling_unit h WITH (NOLOCK) |
|
|
LEFT JOIN warehouse w WITH (NOLOCK) ON h.warehouse_id = w.WareHouseID AND h.site = w.Site |
|
|
LEFT JOIN warehouse w WITH (NOLOCK) ON h.warehouse_id = w.WareHouseID AND h.site = w.Site |
|
|
LEFT JOIN location l WITH (NOLOCK) ON h.location_id = l.LocationID AND h.site = l.Site |
|
|
LEFT JOIN location l WITH (NOLOCK) ON h.location_id = l.LocationID AND h.site = l.Site |
|
|
@ -41,6 +41,10 @@ |
|
|
<if test="params.inStockFlag != null and params.inStockFlag != ''"> |
|
|
<if test="params.inStockFlag != null and params.inStockFlag != ''"> |
|
|
AND h.in_stock_flag = #{params.inStockFlag} |
|
|
AND h.in_stock_flag = #{params.inStockFlag} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<!-- rqrq - 本期盘点 count_flag,仅 Y/N 入条件,空为全部 --> |
|
|
|
|
|
<if test="params.countFlag != null and params.countFlag != ''"> |
|
|
|
|
|
AND h.count_flag = #{params.countFlag} |
|
|
|
|
|
</if> |
|
|
<if test="params.partNo != null and params.partNo != ''"> |
|
|
<if test="params.partNo != null and params.partNo != ''"> |
|
|
AND h.part_no LIKE CONCAT('%', #{params.partNo}, '%') |
|
|
AND h.part_no LIKE CONCAT('%', #{params.partNo}, '%') |
|
|
</if> |
|
|
</if> |
|
|
@ -102,6 +106,7 @@ |
|
|
b.position, |
|
|
b.position, |
|
|
b.layer, |
|
|
b.layer, |
|
|
p.calling_flag, |
|
|
p.calling_flag, |
|
|
|
|
|
h.count_flag AS countFlag, |
|
|
h.last_count_date AS lastCountDate, |
|
|
h.last_count_date AS lastCountDate, |
|
|
h.eng_chg_level AS engChgLevel, |
|
|
h.eng_chg_level AS engChgLevel, |
|
|
h.expired_date AS expiredDate, |
|
|
h.expired_date AS expiredDate, |
|
|
@ -121,6 +126,10 @@ |
|
|
<if test="params.inStockFlag != null and params.inStockFlag != ''"> |
|
|
<if test="params.inStockFlag != null and params.inStockFlag != ''"> |
|
|
AND h.in_stock_flag = #{params.inStockFlag} |
|
|
AND h.in_stock_flag = #{params.inStockFlag} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<!-- rqrq - 本期盘点 count_flag,仅 Y/N 入条件,空为全部 --> |
|
|
|
|
|
<if test="params.countFlag != null and params.countFlag != ''"> |
|
|
|
|
|
AND h.count_flag = #{params.countFlag} |
|
|
|
|
|
</if> |
|
|
<if test="params.partNo != null and params.partNo != ''"> |
|
|
<if test="params.partNo != null and params.partNo != ''"> |
|
|
AND h.part_no LIKE '%' + #{params.partNo} + '%' |
|
|
AND h.part_no LIKE '%' + #{params.partNo} + '%' |
|
|
</if> |
|
|
</if> |
|
|
|