|
@@ -777,7 +777,7 @@
|
|
AND leg.f_qtyblc > 0
|
|
AND leg.f_qtyblc > 0
|
|
AND leg.f_grossweightblc > 0
|
|
AND leg.f_grossweightblc > 0
|
|
AND leg.f_netweightblc > 0
|
|
AND leg.f_netweightblc > 0
|
|
- <if test="fOriginalbillno != null and fOriginalbillno != ''">and leg.f_originalbillno = #{fOriginalbillno}</if>
|
|
|
|
|
|
+ <if test="fOriginalbillno != null and fOriginalbillno != ''">and leg.f_originalbillno like concat('%', #{fOriginalbillno}, '%')</if>
|
|
<if test="lockStatus == null or lockStatus == ''">and leg.lock_status != 1</if>
|
|
<if test="lockStatus == null or lockStatus == ''">and leg.lock_status != 1</if>
|
|
<if test="warehouseInformation != null and warehouseInformation != ''">and ware.f_warehouse_information = #{warehouseInformation}</if>
|
|
<if test="warehouseInformation != null and warehouseInformation != ''">and ware.f_warehouse_information = #{warehouseInformation}</if>
|
|
<if test="fPreqty != null ">and leg.f_preqty = #{fPreqty}</if>
|
|
<if test="fPreqty != null ">and leg.f_preqty = #{fPreqty}</if>
|
|
@@ -808,8 +808,9 @@
|
|
<if test="fNetweightblc != null ">and leg.f_netweightblc = #{fNetweightblc}</if>
|
|
<if test="fNetweightblc != null ">and leg.f_netweightblc = #{fNetweightblc}</if>
|
|
<if test="fCntrno != null and fCntrno != ''">and leg.f_cntrno LIKE concat('%', #{fCntrno}, '%')</if>
|
|
<if test="fCntrno != null and fCntrno != ''">and leg.f_cntrno LIKE concat('%', #{fCntrno}, '%')</if>
|
|
<if test="fLocalcntrno != null and fLocalcntrno != ''">and leg.f_localcntrno LIKE concat('%', #{fLocalcntrno}, '%')</if>
|
|
<if test="fLocalcntrno != null and fLocalcntrno != ''">and leg.f_localcntrno LIKE concat('%', #{fLocalcntrno}, '%')</if>
|
|
- <if test="fNo != null and fLocalcntrno != ''">and goods.f_no LIKE concat('%', #{fNo}, '%')</if>
|
|
|
|
- <if test="fMblno != null ">and leg.f_mblno = #{fMblno} </if>
|
|
|
|
|
|
+ <if test="fNo != null and fNo != ''">and goods.f_no LIKE concat('%', #{fNo}, '%')</if>
|
|
|
|
+ <if test="goodsName != null and goodsName != ''">and goods.f_name LIKE concat('%', #{goodsName}, '%')</if>
|
|
|
|
+ <if test="fMblno != null and fMblno != ''">and leg.f_mblno = #{fMblno} </if>
|
|
<if test="fStatus != null and fStatus != ''">and leg.f_status = #{fStatus}</if>
|
|
<if test="fStatus != null and fStatus != ''">and leg.f_status = #{fStatus}</if>
|
|
|
|
|
|
<if test="fWarehouseid != null ">and leg.f_warehouseid = #{fWarehouseid} </if>
|
|
<if test="fWarehouseid != null ">and leg.f_warehouseid = #{fWarehouseid} </if>
|
|
@@ -890,8 +891,6 @@
|
|
and leg.del_flag = '0'
|
|
and leg.del_flag = '0'
|
|
<if test="isMblno != null and isMblno == 0 ">
|
|
<if test="isMblno != null and isMblno == 0 ">
|
|
AND leg.f_qtyblc != 0
|
|
AND leg.f_qtyblc != 0
|
|
- AND leg.f_grossweightblc != 0
|
|
|
|
- AND leg.f_netweightblc != 0
|
|
|
|
</if>
|
|
</if>
|
|
AND dict.dict_type = 'storage_type'
|
|
AND dict.dict_type = 'storage_type'
|
|
AND dict1.dict_type = 'data_trademodes'
|
|
AND dict1.dict_type = 'data_trademodes'
|
|
@@ -938,7 +937,6 @@
|
|
${params.dataScope}
|
|
${params.dataScope}
|
|
order by leg.f_bsdate desc
|
|
order by leg.f_bsdate desc
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
<select id="selectInventoryMapListV2" parameterType="TWhgenleg" resultType="Map">
|
|
<select id="selectInventoryMapListV2" parameterType="TWhgenleg" resultType="Map">
|
|
select
|
|
select
|
|
DISTINCT
|
|
DISTINCT
|