|
@@ -98,6 +98,63 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectWarehouseBusinessList" parameterType="TWarehousebills" resultType="Map">
|
|
|
+ SELECT
|
|
|
+ bill.f_id AS fId,
|
|
|
+ corp.f_name AS fCorpid,
|
|
|
+ bill.f_mblno AS fMblno,
|
|
|
+ corpSub.f_name AS fSbu,
|
|
|
+ bill.f_bsdate AS fBsdate,
|
|
|
+ bill.f_trademodeid AS fTrademodeid,
|
|
|
+ bill.f_warehouseid AS fWarehouseid,
|
|
|
+ bill.f_qty AS fQty,
|
|
|
+ bill.f_grossweight AS fGrossweight,
|
|
|
+ bill.f_netweight AS fNetweight
|
|
|
+ FROM
|
|
|
+ t_warehousebills bill
|
|
|
+ LEFT JOIN t_corps corp ON corp.f_id = bill.f_corpid
|
|
|
+ LEFT JOIN t_corps corpSub ON corpSub.f_id = bill.f_sbu
|
|
|
+ LEFT JOIN t_warehouse ware ON ware.f_id = bill.f_warehouseid
|
|
|
+ <where>
|
|
|
+ <if test="fBillno != null and fBillno != ''">and bill.f_billno = #{fBillno}</if>
|
|
|
+ <if test="fCustomsdeclartion != null and fCustomsdeclartion != ''">and bill.f_customsdeclartion = #{fCustomsdeclartion}</if>
|
|
|
+ <if test="fOriginalbillno != null and fOriginalbillno != ''">and bill.f_originalbillno = #{fOriginalbillno}</if>
|
|
|
+ <if test="fDeptid != null ">and bill.f_deptid = #{fDeptid}</if>
|
|
|
+ <if test="fBsdeptid != null ">and bill.f_bsdeptid = #{fBsdeptid}</if>
|
|
|
+ <if test="fContacts != null and fContacts != ''">and bill.f_contacts = #{fContacts}</if>
|
|
|
+ <if test="fTel != null and fTel != ''">and bill.f_tel = #{fTel}</if>
|
|
|
+ <if test="fCorpid != null ">and bill.f_corpid = #{fCorpid}</if>
|
|
|
+ <if test="fTocorpid != null ">and bill.f_tocorpid = #{fTocorpid}</if>
|
|
|
+ <if test="fStltypeid != null ">and bill.f_stltypeid = #{fStltypeid}</if>
|
|
|
+ <if test="fBscorpno != null and fBscorpno != ''">and bill.f_bscorpno = #{fBscorpno}</if>
|
|
|
+ <if test="fWarehouseid != null ">and bill.f_warehouseid = #{fWarehouseid}</if>
|
|
|
+ <if test="fStorekeeper != null and fStorekeeper != ''">and bill.f_storekeeper = #{fStorekeeper}</if>
|
|
|
+ <if test="fBsdate != null ">and bill.f_bsdate = #{fBsdate}</if>
|
|
|
+ <if test="fPlanqty != null ">and bill.f_planqty = #{fPlanqty}</if>
|
|
|
+ <if test="fPlangrossweight != null ">and bill.f_plangrossweight = #{fPlangrossweight}</if>
|
|
|
+ <if test="fPlannetweight != null ">and bill.f_plannetweight = #{fPlannetweight}</if>
|
|
|
+ <if test="fPlanvolumn != null ">and bill.f_planvolumn = #{fPlanvolumn}</if>
|
|
|
+ <if test="fQty != null ">and bill.f_qty = #{fQty}</if>
|
|
|
+ <if test="fGrossweight != null ">and bill.f_grossweight = #{fGrossweight}</if>
|
|
|
+ <if test="fNetweight != null ">and bill.f_netweight = #{fNetweight}</if>
|
|
|
+ <if test="fVolumn != null ">and bill.f_volumn = #{fVolumn}</if>
|
|
|
+ <if test="fTrademodeid != null ">and bill.f_trademodeid = #{fTrademodeid}</if>
|
|
|
+ <if test="fBillingway != null ">and bill.f_billingway = #{fBillingway}</if>
|
|
|
+ <if test="fSbu != null ">and bill.f_sbu = #{fSbu}</if>
|
|
|
+ <if test="fFeetunit != null and fFeetunit != ''">and bill.f_feetunit = #{fFeetunit}</if>
|
|
|
+ <if test="fMblno != null and fMblno != ''">and bill.f_mblno = #{fMblno}</if>
|
|
|
+ <if test="fVslvoy != null and fVslvoy != ''">and bill.f_vslvoy = #{fVslvoy}</if>
|
|
|
+ <if test="fEta != null ">and bill.f_eta = #{fEta}</if>
|
|
|
+ <if test="fCustomno != null and fCustomno != ''">and bill.f_customno = #{fCustomno}</if>
|
|
|
+ <if test="fIfweigh != null and fIfweigh != ''">and bill.f_ifweigh = #{fIfweigh}</if>
|
|
|
+ <if test="fIfpledge != null and fIfpledge != ''">and bill.f_ifpledge = #{fIfpledge}</if>
|
|
|
+ <if test="fIfdamage != null and fIfdamage != ''">and bill.f_ifdamage = #{fIfdamage}</if>
|
|
|
+ <if test="fBankcorpid != null ">and bill.f_bankcorpid = #{fBankcorpid}</if>
|
|
|
+ <if test="fBilltype != null and fBilltype != ''">and bill.f_billtype = #{fBilltype}</if>
|
|
|
+ <if test="fBillstatus != null and fBillstatus != ''">and bill.f_billstatus = #{fBillstatus}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectTWarehousebillsById" parameterType="Long" resultMap="TWarehousebillsResult">
|
|
|
<include refid="selectTWarehousebillsVo"/>
|
|
|
where f_id = #{fId}
|