|
@@ -744,6 +744,25 @@
|
|
|
LEFT JOIN t_goods TG ON TG.f_id = TW.f_goodsid
|
|
|
LEFT JOIN t_warehouse TWH ON TW.f_warehouseid = TWH.f_id
|
|
|
LEFT JOIN t_corps TC ON TC.f_id = TW.f_corpid
|
|
|
+ LEFT JOIN (
|
|
|
+ SELECT DISTINCT
|
|
|
+ TWB.f_ifpledge,
|
|
|
+ TWB.f_mblno,
|
|
|
+ bi.f_business_type,
|
|
|
+ bi.f_marks,
|
|
|
+ bi.f_warehouse_information
|
|
|
+ FROM
|
|
|
+ t_warehousebills TWB
|
|
|
+ LEFT JOIN t_warehousebillsitems bi ON bi.f_pid = TWB.f_id
|
|
|
+ WHERE
|
|
|
+ TWB.del_flag = '0'
|
|
|
+ <if test="numbersList != null and numbersList != ''">
|
|
|
+ and TWB.f_mblno IN
|
|
|
+ <foreach item="number" collection="numbersList" open="(" separator="," close=")">
|
|
|
+ #{number}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ ) TWBI ON TWBI.f_mblno = TW.f_mblno
|
|
|
LEFT JOIN t_warehousebills TWB ON TWB.f_mblno = TW.f_mblno
|
|
|
LEFT JOIN t_warehousebillsitems TWBI ON TWBI.f_pid = TWB.f_id
|
|
|
<where>
|