|
|
@@ -14,6 +14,7 @@
|
|
|
<result property="fContacts" column="f_contacts" />
|
|
|
<result property="fTel" column="f_tel" />
|
|
|
<result property="fCorpid" column="f_corpid" />
|
|
|
+ <result property="fShipper" column="f_shipper" />
|
|
|
<result property="fTocorpid" column="f_tocorpid" />
|
|
|
<result property="fStltypeid" column="f_stltypeid" />
|
|
|
<result property="fBscorpno" column="f_bscorpno" />
|
|
|
@@ -34,6 +35,8 @@
|
|
|
<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="fCompany" column="f_company" />
|
|
|
<result property="fVslvoy" column="f_vslvoy" />
|
|
|
<result property="fEta" column="f_eta" />
|
|
|
<result property="fMarks" column="f_marks" />
|
|
|
@@ -134,9 +137,9 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<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,
|
|
|
+ select f_id, f_billno, f_customsdeclartion, f_originalbillno, f_deptid, f_bsdeptid, f_contacts, f_tel, f_corpid, f_shipper, 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_company, 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,
|
|
|
@@ -167,6 +170,7 @@
|
|
|
<if test="fContacts != null and fContacts != ''">and f_contacts = #{fContacts}</if>
|
|
|
<if test="fTel != null and fTel != ''">and f_tel = #{fTel}</if>
|
|
|
<if test="fCorpid != null ">and f_corpid = #{fCorpid}</if>
|
|
|
+ <if test="fShipper != null and fShipper != ''">and f_shipper like concat('%', #{fShipper}, '%')</if>
|
|
|
<if test="fTocorpid != null ">and f_tocorpid = #{fTocorpid}</if>
|
|
|
<if test="fChargedate != null ">and f_chargedate = #{fChargedate}</if>
|
|
|
<if test='timeInterval != null and timeInterval[0] != null and timeInterval[0]!= ""'>
|
|
|
@@ -197,6 +201,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,7 +223,10 @@
|
|
|
bill.f_id AS fId,
|
|
|
corp.f_name AS fCorpid,
|
|
|
corpTo.f_name AS fTocorpid,
|
|
|
+ bill.f_shipper AS fShipper,
|
|
|
bill.f_mblno AS fMblno,
|
|
|
+ bill.f_emblno AS fEmblno,
|
|
|
+ bill.f_company AS fCompany,
|
|
|
corpSub.f_name AS fSbu,
|
|
|
bill.f_marks AS fMarks,
|
|
|
bill.remark AS remark,
|
|
|
@@ -358,6 +366,7 @@
|
|
|
<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="fShipper != null and fShipper != ''">and bill.f_shipper like concat('%', #{fShipper}, '%')</if>
|
|
|
<if test="fBillingDeadline != null ">and bill.f_billing_deadline = #{fBillingDeadline}</if>
|
|
|
<if test="fTocorpid != null ">and bill.f_tocorpid = #{fTocorpid}</if>
|
|
|
<if test="fMarks != null and fMarks != ''">and bill.f_marks like concat('%', #{fMarks}, '%')</if>
|
|
|
@@ -380,6 +389,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>
|
|
|
@@ -414,7 +424,7 @@
|
|
|
<if test="fNewTrademodeid != null ">and bill.f_new_trademodeid = #{fNewTrademodeid}</if>
|
|
|
</where>
|
|
|
${params.dataScope}
|
|
|
- ORDER BY bill.create_time DESC, bill.f_bsdate DESC, bill.f_bstime DESC,bill.f_id DESC,bill.f_billstatus
|
|
|
+ ORDER BY bill.f_bsdate DESC, bill.f_bstime DESC,bill.f_id DESC,bill.f_billstatus
|
|
|
</select>
|
|
|
|
|
|
<select id="selectWarehouseBusinessList1" parameterType="TWarehousebills" resultType="Map">
|
|
|
@@ -423,7 +433,10 @@
|
|
|
bill.f_id AS fId,
|
|
|
corp.f_name AS fCorpid,
|
|
|
corpTo.f_name AS fTocorpid,
|
|
|
+ bill.f_shipper AS fShipper,
|
|
|
bill.f_mblno AS fMblno,
|
|
|
+ bill.f_emblno AS fEmblno,
|
|
|
+ bill.f_company AS fCompany,
|
|
|
corpSub.f_name AS fSbu,
|
|
|
bill.f_marks AS fMarks,
|
|
|
bill.remark AS remark,
|
|
|
@@ -536,6 +549,7 @@
|
|
|
<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="fShipper != null and fShipper != ''">and bill.f_shipper like concat('%', #{fShipper}, '%')</if>
|
|
|
<if test="fBillingDeadline != null ">and bill.f_billing_deadline = #{fBillingDeadline}</if>
|
|
|
<if test='timeInterval2 != null and timeInterval2[0] != null and timeInterval2[0]!= ""'><!-- 仓储费增加计费截止日期区间查询 -->
|
|
|
and bill.f_billing_deadline >= #{timeInterval2[0]}
|
|
|
@@ -564,6 +578,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>
|
|
|
@@ -580,7 +595,7 @@
|
|
|
<if test="fNewTrademodeid != null ">and bill.f_new_trademodeid = #{fNewTrademodeid}</if>
|
|
|
</where>
|
|
|
${params.dataScope}
|
|
|
- ORDER BY bill.create_time DESC, bill.f_bsdate DESC, bill.f_bstime DESC,bill.f_id DESC,bill.f_billstatus
|
|
|
+ ORDER BY bill.f_bsdate DESC, bill.f_bstime DESC,bill.f_id DESC,bill.f_billstatus
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTWarehousebillsById" parameterType="Long" resultMap="TWarehousebillsResult">
|
|
|
@@ -638,14 +653,39 @@
|
|
|
wi.f_qty AS fQtyD,
|
|
|
wi.f_grossweight AS fGrossweightD
|
|
|
FROM t_warehousebillsitems wi
|
|
|
+ LEFT JOIN t_warehousebills w ON wi.f_pid = w.f_id
|
|
|
LEFT JOIN t_goods tg ON wi.f_goodsid = tg.f_id
|
|
|
- LEFT JOIN sys_dict_data dict ON wi.f_business_type = dict.dict_value
|
|
|
+ LEFT JOIN sys_dict_data dict ON w.f_business_type = dict.dict_value
|
|
|
WHERE
|
|
|
- wi.f_billtype = 'SJRK'
|
|
|
- AND dict.dict_type = 'st_in_type'
|
|
|
- AND dict.status = 0
|
|
|
- AND wi.f_billstatus = 40
|
|
|
- <if test="fId != null and fId!= ''">AND wi.f_mblno = (select f_mblno from t_warehousebills where f_id = #{fId})</if>
|
|
|
+ wi.f_billstatus = 40
|
|
|
+ AND dict.status = 0
|
|
|
+ <if test="billType != null and billType!= '' and billType== 'SJRK'">
|
|
|
+ AND wi.f_billtype = 'SJRK'
|
|
|
+ AND dict.dict_type = 'st_in_type'
|
|
|
+ <if test="fId != null and fId!= ''">
|
|
|
+ AND wi.f_mblno = (select distinct f_mblno from t_warehousebills where f_id = #{fId})
|
|
|
+ AND wi.f_warehouselocid in (
|
|
|
+ select distinct wi.f_warehouselocid
|
|
|
+ from t_warehousebillsitems wi left join t_warehousebillsfees wf on wf.src_id = wi.f_id
|
|
|
+ where wf.f_pid = #{fId}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
+ <if test="billType != null and billType!= '' and billType== 'CKDB'">
|
|
|
+ AND wi.f_billtype = 'CKDB'
|
|
|
+ AND dict.dict_type = 'st_trans_type'
|
|
|
+ <if test="fId != null and fId!= ''">
|
|
|
+ AND wi.f_mblno = (select distinct f_mblno from t_warehousebills where f_id = #{fId})
|
|
|
+ AND wi.f_transfer_warehouselocid in (
|
|
|
+ select distinct wi.f_warehouselocid
|
|
|
+ from t_warehousebillsitems wi left join t_warehousebillsfees wf on wf.src_id = wi.f_id
|
|
|
+ where wf.f_pid = #{fId}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
+ <if test="fId != null and fId!= ''">
|
|
|
+ AND wi.f_bsdate >= (select min(f_chargedate) from t_warehousebillsfees where f_pid = #{fId})
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectNotInStockDetail" resultType="com.ruoyi.warehouseBusiness.excel.StorageDetail">
|
|
|
@@ -657,25 +697,30 @@
|
|
|
wf.f_chargedate AS inStockDate,
|
|
|
wf.f_billing_deadline AS outStockDate,
|
|
|
wi.f_truckno AS fTruckno,
|
|
|
- wf.f_billing_qty AS fQtyC,
|
|
|
+ wi.f_qty AS fQtyC,
|
|
|
wi.f_grossweight AS fGrossweightC,
|
|
|
+ dictF.dict_label AS fBillingway,
|
|
|
+ wf.f_billing_qty AS fBillingQty,
|
|
|
wf.f_billing_days AS fBillingDays,
|
|
|
wf.f_amount AS fAmount
|
|
|
- FROM t_warehousebills w
|
|
|
- LEFT JOIN t_warehousebillsfees wf ON w.f_id = wf.f_pid
|
|
|
+ FROM t_warehousebillsfees wf
|
|
|
LEFT JOIN t_warehousebillsitems wi ON wi.f_id = wf.src_id
|
|
|
- LEFT JOIN sys_dict_data dict ON wi.f_business_type = dict.dict_value
|
|
|
- WHERE w.f_id = #{fId}
|
|
|
- AND w.f_typeid IS NULL
|
|
|
- AND dict.status = '0'
|
|
|
- <if test="billType != null and billType!= '' and billType== 'SJCK'">
|
|
|
- AND wf.f_billtype = 'SJCK'
|
|
|
- AND dict.dict_type = 'st_out_type'
|
|
|
- </if>
|
|
|
- <if test="billType != null and billType!= '' and billType== 'HQZY'">
|
|
|
- AND wf.f_billtype = 'HQZY'
|
|
|
- AND dict.dict_type = 'st_goodstf_type'
|
|
|
- </if>
|
|
|
+ LEFT JOIN t_warehousebills w ON w.f_id = wi.f_pid
|
|
|
+ LEFT JOIN sys_dict_data dict ON w.f_business_type = dict.dict_value
|
|
|
+ LEFT JOIN sys_dict_data dictF ON wf.f_billingway = dictF.dict_value
|
|
|
+ WHERE w.f_typeid IS NULL
|
|
|
+ AND dict.status = '0'
|
|
|
+ AND dictF.status = '0'
|
|
|
+ AND dictF.dict_type = 'data_unitfees'
|
|
|
+ <if test="fId != null and fId!= ''">AND wf.f_pid = #{fId}</if>
|
|
|
+ <if test="billType != null and billType!= '' and billType== 'SJCK'">
|
|
|
+ AND wf.f_billtype = 'SJCK'
|
|
|
+ AND dict.dict_type = 'st_out_type'
|
|
|
+ </if>
|
|
|
+ <if test="billType != null and billType!= '' and billType== 'HQZY'">
|
|
|
+ AND wf.f_billtype = 'HQZY'
|
|
|
+ AND dict.dict_type = 'st_goodstf_type'
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectInventoryDetail" resultType="com.ruoyi.warehouseBusiness.excel.StorageDetail">
|
|
|
@@ -685,19 +730,25 @@
|
|
|
wi.f_packagespecs AS fPackagespecs,
|
|
|
'在库' AS fBusinessType,
|
|
|
wf.f_bsdate AS inStockDate,
|
|
|
- wf.f_amount AS fAmount,
|
|
|
- wf.f_billing_qty AS surplus
|
|
|
- FROM t_warehousebills w
|
|
|
- LEFT JOIN t_warehousebillsfees wf ON w.f_id = wf.f_pid
|
|
|
+ dictF.dict_label AS fBillingway,
|
|
|
+ wf.f_billing_qty AS fBillingQty,
|
|
|
+ wf.f_billing_days AS fBillingDays,
|
|
|
+ wf.f_amount AS fAmount
|
|
|
+ FROM t_warehousebillsfees wf
|
|
|
LEFT JOIN t_warehousebillsitems wi ON wi.f_id = wf.src_id
|
|
|
- WHERE w.f_id = #{fId}
|
|
|
- AND w.f_typeid IS NULL
|
|
|
- AND wf.f_billtype = 'KCZZ'
|
|
|
+ LEFT JOIN t_warehousebills w ON w.f_id = wi.f_pid
|
|
|
+ LEFT JOIN sys_dict_data dictF ON wf.f_billingway = dictF.dict_value
|
|
|
+ WHERE w.f_typeid IS NULL
|
|
|
+ AND dictF.status = '0'
|
|
|
+ AND dictF.dict_type = 'data_unitfees'
|
|
|
+ AND wf.f_billtype = 'KCZZ'
|
|
|
+ <if test="fId != null and fId!= ''">AND wf.f_pid = #{fId}</if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectInventorySJRKList" parameterType="TWarehousebills" resultType="java.util.Map">
|
|
|
SELECT
|
|
|
co.f_name AS fName,
|
|
|
+ leg.f_shipper AS fShipper,
|
|
|
it.f_bsdate AS fBsdate,
|
|
|
leg.f_mblno AS fMblno,
|
|
|
it.f_business_type AS fBusinessType,
|
|
|
@@ -740,7 +791,9 @@
|
|
|
<if test="fTrademodeid != null ">and leg.f_trademodeid = #{fTrademodeid}</if>
|
|
|
<if test="fNewTrademodeid != null ">and leg.f_new_trademodeid = #{fNewTrademodeid}</if>
|
|
|
<if test="fCorpid != null ">and leg.f_corpid = #{fCorpid}</if>
|
|
|
+ <if test="fShipper != null and fShipper != ''">and leg.f_shipper like concat('%', #{fShipper}, '%')</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>
|
|
|
@@ -760,6 +813,7 @@
|
|
|
<select id="selectInventorySJCKList" parameterType="TWarehousebills" resultType="java.util.Map">
|
|
|
SELECT
|
|
|
co.f_name AS fName,
|
|
|
+ leg.f_shipper AS fShipper,
|
|
|
it.f_bsdate AS fBsdate,
|
|
|
leg.f_mblno AS fMblno,
|
|
|
it.f_business_type AS fBusinessType,
|
|
|
@@ -810,7 +864,9 @@
|
|
|
<if test="fTrademodeid != null ">and leg.f_trademodeid = #{fTrademodeid}</if>
|
|
|
<if test="fNewTrademodeid != null ">and leg.f_new_trademodeid = #{fNewTrademodeid}</if>
|
|
|
<if test="fCorpid != null ">and leg.f_corpid = #{fCorpid}</if>
|
|
|
+ <if test="fShipper != null and fShipper != ''">and leg.f_shipper like concat('%', #{fShipper}, '%')</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>
|
|
|
@@ -832,6 +888,7 @@
|
|
|
SELECT
|
|
|
( @ii := @ii + 1 ) AS fId,
|
|
|
co.f_name AS fCorpid,
|
|
|
+ leg.f_shipper AS fShipper,
|
|
|
it.f_bsdate AS fBsdate,
|
|
|
leg.f_mblno AS fMblno,
|
|
|
dict.dict_label AS fBusinessType,
|
|
|
@@ -868,7 +925,9 @@
|
|
|
<if test="fTrademodeid != null ">and leg.f_trademodeid = #{fTrademodeid}</if>
|
|
|
<if test="fNewTrademodeid != null ">and leg.f_new_trademodeid = #{fNewTrademodeid}</if>
|
|
|
<if test="fCorpid != null ">and leg.f_corpid = #{fCorpid}</if>
|
|
|
+ <if test="fShipper != null and fShipper != ''">and leg.f_shipper like concat('%', #{fShipper}, '%')</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>
|
|
|
@@ -905,6 +964,7 @@
|
|
|
<if test="fContacts != null">f_contacts,</if>
|
|
|
<if test="fTel != null">f_tel,</if>
|
|
|
<if test="fCorpid != null">f_corpid,</if>
|
|
|
+ <if test="fShipper != null">f_shipper,</if>
|
|
|
<if test="fTocorpid != null">f_tocorpid,</if>
|
|
|
<if test="fStltypeid != null">f_stltypeid,</if>
|
|
|
<if test="fBscorpno != null">f_bscorpno,</if>
|
|
|
@@ -925,6 +985,8 @@
|
|
|
<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="fCompany != null">f_company,</if>
|
|
|
<if test="fVslvoy != null">f_vslvoy,</if>
|
|
|
<if test="fEta != null">f_eta,</if>
|
|
|
<if test="fMarks != null">f_marks,</if>
|
|
|
@@ -1021,6 +1083,7 @@
|
|
|
<if test="fContacts != null">#{fContacts},</if>
|
|
|
<if test="fTel != null">#{fTel},</if>
|
|
|
<if test="fCorpid != null">#{fCorpid},</if>
|
|
|
+ <if test="fShipper != null">#{fShipper},</if>
|
|
|
<if test="fTocorpid != null">#{fTocorpid},</if>
|
|
|
<if test="fStltypeid != null">#{fStltypeid},</if>
|
|
|
<if test="fBscorpno != null">#{fBscorpno},</if>
|
|
|
@@ -1041,6 +1104,8 @@
|
|
|
<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="fCompany != null">#{fCompany},</if>
|
|
|
<if test="fVslvoy != null">#{fVslvoy},</if>
|
|
|
<if test="fEta != null">#{fEta},</if>
|
|
|
<if test="fMarks != null">#{fMarks},</if>
|
|
|
@@ -1141,6 +1206,7 @@
|
|
|
<if test="fContacts != null">f_contacts = #{fContacts},</if>
|
|
|
<if test="fTel != null">f_tel = #{fTel},</if>
|
|
|
<if test="fCorpid != null">f_corpid = #{fCorpid},</if>
|
|
|
+ <if test="fShipper != null">f_shipper = #{fShipper},</if>
|
|
|
<if test="fTocorpid != null">f_tocorpid = #{fTocorpid},</if>
|
|
|
<if test="fStltypeid != null">f_stltypeid = #{fStltypeid},</if>
|
|
|
<if test="fBscorpno != null">f_bscorpno = #{fBscorpno},</if>
|
|
|
@@ -1161,6 +1227,8 @@
|
|
|
<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="fCompany != null">f_company = #{fCompany},</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>
|
|
|
@@ -1262,6 +1330,7 @@
|
|
|
<if test="fContacts != null">f_contacts = #{fContacts},</if>
|
|
|
<if test="fTel != null">f_tel = #{fTel},</if>
|
|
|
<if test="fCorpid != null">f_corpid = #{fCorpid},</if>
|
|
|
+ <if test="fShipper != null">f_shipper = #{fShipper},</if>
|
|
|
<if test="fTocorpid != null">f_tocorpid = #{fTocorpid},</if>
|
|
|
<if test="fStltypeid != null">f_stltypeid = #{fStltypeid},</if>
|
|
|
<if test="fBscorpno != null and fBscorpno != ''">f_bscorpno = #{fBscorpno},</if>
|
|
|
@@ -1282,6 +1351,8 @@
|
|
|
<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="fCompany != null">f_company = #{fCompany},</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>
|
|
|
@@ -1436,6 +1507,7 @@
|
|
|
t.f_id AS fId,
|
|
|
item.f_id AS fItemsId,
|
|
|
C.f_name AS fcorpid,
|
|
|
+ t.f_shipper AS fShipper,
|
|
|
t.f_mblno AS fMblno,
|
|
|
g.f_name AS fGoodsid,
|
|
|
dict.dict_label AS fBusinessType,
|
|
|
@@ -1549,6 +1621,7 @@
|
|
|
tw.f_contacts,
|
|
|
tw.f_tel,
|
|
|
tw.f_corpid,
|
|
|
+ tw.f_shipper,
|
|
|
tc.f_name corpName,
|
|
|
tw.f_tocorpid,
|
|
|
tw.f_stltypeid,
|
|
|
@@ -1673,6 +1746,7 @@
|
|
|
<if test="fContacts != null and fContacts != ''">and tw.f_contacts = #{fContacts}</if>
|
|
|
<if test="fTel != null and fTel != ''">and tw.f_tel = #{fTel}</if>
|
|
|
<if test="fCorpid != null ">and tw.f_corpid = #{fCorpid}</if>
|
|
|
+ <if test="fShipper != null and fShipper != ''">and tw.f_shipper like concat('%', #{fShipper}, '%')</if>
|
|
|
<if test="fTocorpid != null ">and tw.f_tocorpid = #{fTocorpid}</if>
|
|
|
<if test="fStltypeid != null ">and tw.f_stltypeid = #{fStltypeid}</if>
|
|
|
<if test="fBscorpno != null and fBscorpno != ''">and tw.f_bscorpno = #{fBscorpno}</if>
|
|
|
@@ -1772,6 +1846,7 @@
|
|
|
tw.f_id fId,
|
|
|
tw.f_billno fBillno,
|
|
|
tw.f_originalbillno fOriginalbillno,
|
|
|
+ tw.f_shipper fShipper,
|
|
|
tw.f_mblno fMblno,
|
|
|
sd.dict_label fServiceitems,
|
|
|
tw.f_consigneername fConsigneername,
|
|
|
@@ -1921,6 +1996,7 @@
|
|
|
<if test="fContacts != null and fContacts != ''">and tw.f_contacts = #{fContacts}</if>
|
|
|
<if test="fTel != null and fTel != ''">and tw.f_tel = #{fTel}</if>
|
|
|
<if test="fCorpid != null ">and tw.f_corpid = #{fCorpid}</if>
|
|
|
+ <if test="fShipper != null and fShipper != ''">and tw.f_shipper like concat('%', #{fShipper}, '%')</if>
|
|
|
<if test="fTocorpid != null ">and tw.f_tocorpid = #{fTocorpid}</if>
|
|
|
<if test="fStltypeid != null ">and tw.f_stltypeid = #{fStltypeid}</if>
|
|
|
<if test="fBscorpno != null and fBscorpno != ''">and tw.f_bscorpno = #{fBscorpno}</if>
|
|
|
@@ -2055,6 +2131,7 @@
|
|
|
tw.f_id fId,
|
|
|
tw.f_billno fBillno,
|
|
|
tw.f_originalbillno fOriginalbillno,
|
|
|
+ tw.f_shipper fShipper,
|
|
|
tw.f_mblno fMblno,
|
|
|
sd.dict_label fServiceitems,
|
|
|
tw.f_consigneername fConsigneername,
|
|
|
@@ -2193,6 +2270,7 @@
|
|
|
<if test="fContacts != null and fContacts != ''">and tw.f_contacts = #{fContacts}</if>
|
|
|
<if test="fTel != null and fTel != ''">and tw.f_tel = #{fTel}</if>
|
|
|
<if test="fCorpid != null ">and tw.f_corpid = #{fCorpid}</if>
|
|
|
+ <if test="fShipper != null and fShipper != ''">and tw.f_shipper like concat('%', #{fShipper}, '%')</if>
|
|
|
<if test="fTocorpid != null ">and tw.f_tocorpid = #{fTocorpid}</if>
|
|
|
<if test="fStltypeid != null ">and tw.f_stltypeid = #{fStltypeid}</if>
|
|
|
<if test="fBscorpno != null and fBscorpno != ''">and tw.f_bscorpno = #{fBscorpno}</if>
|
|
|
@@ -2324,6 +2402,7 @@
|
|
|
tw.f_bsdeptid,
|
|
|
tw.f_contacts,
|
|
|
tw.f_tel,
|
|
|
+ tw.f_shipper,
|
|
|
tw.f_corpid,
|
|
|
tc.f_name corpName,
|
|
|
tw.f_tocorpid,
|
|
|
@@ -2458,6 +2537,7 @@
|
|
|
w.f_id fId,
|
|
|
w.f_corpid fCorpid,
|
|
|
c.f_name corpName,
|
|
|
+ w.f_shipper fShipper,
|
|
|
w.f_bsdate fBsdate,
|
|
|
g.f_name goodsName,
|
|
|
w.f_mblno fMblno,
|
|
|
@@ -2540,6 +2620,7 @@
|
|
|
<if test="fItemsStatus == null and timeInterval == null and fMblno == null">
|
|
|
and IF( w.f_planqty IS NOT NULL, w.f_planqty != w.f_qty, w.f_id != '')
|
|
|
</if>
|
|
|
+ <if test="fShipper != null and fShipper != ''">and w.f_shipper like concat('%', #{fShipper}, '%')</if>
|
|
|
<if test="fMblno != null ">and w.f_mblno like concat('%', #{fMblno}, '%')</if>
|
|
|
<if test="fItemsStatus != null ">and w.f_items_status = #{fItemsStatus}</if>
|
|
|
<if test="fBillstatus != null ">and w.f_billstatus = #{fBillstatus}</if>
|
|
|
@@ -2560,11 +2641,13 @@
|
|
|
SELECT
|
|
|
t.f_id fId,
|
|
|
t.f_pid fPid,
|
|
|
+ w.f_shipper fShipper,
|
|
|
c.f_name corpName,
|
|
|
t.f_bsdate fBsdate,
|
|
|
g.f_name goodsName,
|
|
|
t.f_mblno fMblno,
|
|
|
t.f_warehouse_information fWarehouseInformation,
|
|
|
+ t.f_forkliftman fForkliftman,
|
|
|
t.f_truckno fTruckno,
|
|
|
t.f_cntrno fCntrno,
|
|
|
cntr.f_name cntrtypes,
|