|
@@ -34,6 +34,7 @@
|
|
|
<result property="fSbu" column="f_sbu" />
|
|
|
<result property="fFeetunit" column="f_feetunit" />
|
|
|
<result property="fMblno" column="f_mblno" />
|
|
|
+ <result property="fEmblno" column="f_emblno" />
|
|
|
<result property="fVslvoy" column="f_vslvoy" />
|
|
|
<result property="fEta" column="f_eta" />
|
|
|
<result property="fMarks" column="f_marks" />
|
|
@@ -135,7 +136,7 @@
|
|
|
<sql id="selectTWarehousebillsVo">
|
|
|
select f_id, f_billno, f_customsdeclartion, f_originalbillno, f_deptid, f_bsdeptid, f_contacts, f_tel, f_corpid, f_tocorpid, f_stltypeid, f_bscorpno,
|
|
|
f_warehouseid, f_storekeeper, f_chargedate, f_bsdate, f_planqty, f_plangrossweight, f_plannetweight, f_planvolumn, f_qty, f_grossweight, f_netweight,
|
|
|
- f_volumn, f_billingway, f_trademodeid, f_sbu, f_feetunit, f_mblno, f_marks, f_vslvoy, f_eta, f_customno, f_ifweigh, f_ifpledge, f_ifdamage, f_bankcorpid,
|
|
|
+ f_volumn, f_billingway, f_trademodeid, f_sbu, f_feetunit, f_mblno, f_emblno, f_marks, f_vslvoy, f_eta, f_customno, f_ifweigh, f_ifpledge, f_ifdamage, f_bankcorpid,
|
|
|
f_billtype, f_billstatus, f_items_status, del_flag, create_by, create_time, update_by, update_time, remark, f_billing_deadline, f_product_name, f_review_date,
|
|
|
f_truckno, f_driver_name, f_driver_tel, f_driver_id_car, f_business_type, f_labour, f_fleet, f_inwarehouseid, f_bstime, f_cartype, f_goodsid, f_new_trademodeid,
|
|
|
f_loadportid, f_destportid, f_serviceitems, f_invoceobj, f_sign, f_detentioncargo, f_booksmarks, f_shippername, f_shipperattn, f_shippertel, f_consigneername,
|
|
@@ -196,6 +197,7 @@
|
|
|
<if test="fSbu != null ">and f_sbu = #{fSbu}</if>
|
|
|
<if test="fFeetunit != null and fFeetunit != ''">and f_feetunit = #{fFeetunit}</if>
|
|
|
<if test="fMblno != null and fMblno != ''">and f_mblno = #{fMblno}</if>
|
|
|
+ <if test="fEmblno != null and fEmblno != ''">and f_emblno = #{fEmblno}</if>
|
|
|
<if test="fVslvoy != null and fVslvoy != ''">and f_vslvoy = #{fVslvoy}</if>
|
|
|
<if test="fEta != null ">and f_eta = #{fEta}</if>
|
|
|
<if test="fCustomno != null and fCustomno != ''">and f_customno = #{fCustomno}</if>
|
|
@@ -218,6 +220,7 @@
|
|
|
corp.f_name AS fCorpid,
|
|
|
corpTo.f_name AS fTocorpid,
|
|
|
bill.f_mblno AS fMblno,
|
|
|
+ bill.f_emblno AS fEmblno,
|
|
|
corpSub.f_name AS fSbu,
|
|
|
bill.f_marks AS fMarks,
|
|
|
bill.remark AS remark,
|
|
@@ -379,6 +382,7 @@
|
|
|
<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 like concat('%', #{fMblno}, '%')</if>
|
|
|
+ <if test="fEmblno != null and fEmblno != ''">and bill.f_emblno like concat('%', #{fEmblno}, '%')</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>
|
|
@@ -423,6 +427,7 @@
|
|
|
corp.f_name AS fCorpid,
|
|
|
corpTo.f_name AS fTocorpid,
|
|
|
bill.f_mblno AS fMblno,
|
|
|
+ bill.f_emblno AS fEmblno,
|
|
|
corpSub.f_name AS fSbu,
|
|
|
bill.f_marks AS fMarks,
|
|
|
bill.remark AS remark,
|
|
@@ -563,6 +568,7 @@
|
|
|
<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 like concat('%', #{fMblno}, '%')</if>
|
|
|
+ <if test="fEmblno != null and fEmblno != ''">and bill.f_emblno like concat('%', #{fEmblno}, '%')</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>
|
|
@@ -740,6 +746,7 @@
|
|
|
<if test="fNewTrademodeid != null ">and leg.f_new_trademodeid = #{fNewTrademodeid}</if>
|
|
|
<if test="fCorpid != null ">and leg.f_corpid = #{fCorpid}</if>
|
|
|
<if test="fMblno != null ">and it.f_mblno like concat('%',#{fMblno},'%')</if>
|
|
|
+ <if test="fEmblno != null ">and it.f_emblno like concat('%',#{fEmblno},'%')</if>
|
|
|
<if test="fLocation != null and fLocation ==1 ">
|
|
|
and it.f_warehouselocid = #{fWarehouseid}
|
|
|
</if>
|
|
@@ -810,6 +817,7 @@
|
|
|
<if test="fNewTrademodeid != null ">and leg.f_new_trademodeid = #{fNewTrademodeid}</if>
|
|
|
<if test="fCorpid != null ">and leg.f_corpid = #{fCorpid}</if>
|
|
|
<if test="fMblno != null ">and it.f_mblno like concat('%',#{fMblno},'%')</if>
|
|
|
+ <if test="fEmblno != null ">and it.f_emblno like concat('%',#{fEmblno},'%')</if>
|
|
|
<if test="fLocation != null and fLocation ==1 ">
|
|
|
and it.f_warehouselocid = #{fWarehouseid}
|
|
|
</if>
|
|
@@ -868,6 +876,7 @@
|
|
|
<if test="fNewTrademodeid != null ">and leg.f_new_trademodeid = #{fNewTrademodeid}</if>
|
|
|
<if test="fCorpid != null ">and leg.f_corpid = #{fCorpid}</if>
|
|
|
<if test="fMblno != null ">and leg.f_mblno = #{fMblno}</if>
|
|
|
+ <if test="fEmblno != null ">and leg.f_emblno = #{fEmblno}</if>
|
|
|
<if test="fLocation != null and fLocation ==1 ">
|
|
|
and it.f_warehouselocid = #{fWarehouseid}
|
|
|
</if>
|
|
@@ -924,6 +933,7 @@
|
|
|
<if test="fSbu != null">f_sbu,</if>
|
|
|
<if test="fFeetunit != null">f_feetunit,</if>
|
|
|
<if test="fMblno != null">f_mblno,</if>
|
|
|
+ <if test="fEmblno != null">f_emblno,</if>
|
|
|
<if test="fVslvoy != null">f_vslvoy,</if>
|
|
|
<if test="fEta != null">f_eta,</if>
|
|
|
<if test="fMarks != null">f_marks,</if>
|
|
@@ -1039,6 +1049,7 @@
|
|
|
<if test="fSbu != null">#{fSbu},</if>
|
|
|
<if test="fFeetunit != null">#{fFeetunit},</if>
|
|
|
<if test="fMblno != null">#{fMblno},</if>
|
|
|
+ <if test="fEmblno != null">#{fEmblno},</if>
|
|
|
<if test="fVslvoy != null">#{fVslvoy},</if>
|
|
|
<if test="fEta != null">#{fEta},</if>
|
|
|
<if test="fMarks != null">#{fMarks},</if>
|
|
@@ -1158,6 +1169,7 @@
|
|
|
<if test="fSbu != null">f_sbu = #{fSbu},</if>
|
|
|
<if test="fFeetunit != null">f_feetunit = #{fFeetunit},</if>
|
|
|
<if test="fMblno != null">f_mblno = #{fMblno},</if>
|
|
|
+ <if test="fEmblno != null">f_emblno = #{fEmblno},</if>
|
|
|
<if test="fVslvoy != null">f_vslvoy = #{fVslvoy},</if>
|
|
|
<if test="fEta != null">f_eta = #{fEta},</if>
|
|
|
<if test="fMarks != null">f_marks = #{fMarks},</if>
|
|
@@ -1278,6 +1290,7 @@
|
|
|
<if test="fSbu != null">f_sbu = #{fSbu},</if>
|
|
|
<if test="fFeetunit != null">f_feetunit = #{fFeetunit},</if>
|
|
|
<if test="fMblno != null">f_mblno = #{fMblno},</if>
|
|
|
+ <if test="fEmblno != null">f_emblno = #{fEmblno},</if>
|
|
|
<if test="fVslvoy != null">f_vslvoy = #{fVslvoy},</if>
|
|
|
<if test="fMarks != null and fMarks != ''">f_marks = #{fMarks},</if>
|
|
|
<if test="fEta != null">f_eta = #{fEta},</if>
|