|
@@ -7,6 +7,7 @@
|
|
|
<resultMap type="TWarehousebillsitems" id="TWarehousebillsitemsResult">
|
|
|
<result property="fId" column="f_id"/>
|
|
|
<result property="fPid" column="f_pid"/>
|
|
|
+ <result property="fSrcid" column="f_srcid" />
|
|
|
<result property="fLineno" column="f_lineno"/>
|
|
|
<result property="fGoodsid" column="f_goodsid"/>
|
|
|
<result property="fBillno" column="f_billno"/>
|
|
@@ -29,6 +30,7 @@
|
|
|
<result property="fQty" column="f_qty"/>
|
|
|
<result property="fVolumn" column="f_volumn"/>
|
|
|
<result property="fGrossweight" column="f_grossweight"/>
|
|
|
+ <result property="fStorageFeeDeadline" column="f_storage_fee_deadline"/>
|
|
|
<result property="fNetweight" column="f_netweight"/>
|
|
|
<result property="fCntrno" column="f_cntrno"/>
|
|
|
<result property="fTruckno" column="f_truckno"/>
|
|
@@ -54,8 +56,8 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTWarehousebillsitemsVo">
|
|
|
- select f_id, f_pid, f_lineno, f_goodsid, f_billno, f_mblno, f_warehouselocid, f_originalbillno, f_bsdate, f_boxno, f_cntqty, f_goodsval, f_cntrtype, f_planqty, f_billingway, f_planvolumn, f_originalbilldate, f_packagespecs, f_plangrossweight, f_chargedate, f_plannetweight, f_qty, f_volumn, f_grossweight, f_netweight, f_cntrno, f_truckno, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark, f_marks, f_inventory_days, f_amt, f_billing_days, f_driver_name, f_driver_tel, f_driver_id_car, f_serial_number, f_is_pass, f_billtype, f_billing_qty, f_billing_deadline from t_warehousebillsitems
|
|
|
- </sql>
|
|
|
+ select f_id, f_pid, f_lineno, f_srcid, f_billno, f_goodsid, f_mblno, f_warehouselocid, f_originalbillno, f_bsdate, f_cntqty, f_boxno, f_cntrtype, f_goodsval, f_originalbilldate, f_planqty, f_billingway, f_planvolumn, f_packagespecs, f_chargedate, f_plangrossweight, f_plannetweight, f_qty, f_grossweight, f_volumn, f_netweight, f_cntrno, f_truckno, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark, f_marks, f_inventory_days, f_storage_fee_deadline, f_amt, f_billing_days, f_driver_name, f_driver_tel, f_driver_id_car, f_serial_number, f_is_pass, f_billtype, f_billing_qty, f_billing_deadline from t_warehousebillsitems
|
|
|
+ </sql>
|
|
|
|
|
|
<select id="selectTWarehousebillsitemsList" parameterType="TWarehousebillsitems"
|
|
|
resultMap="TWarehousebillsitemsResult">
|
|
@@ -71,6 +73,7 @@
|
|
|
<if test="fOriginalbillno != null and fOriginalbillno != ''">and f_originalbillno = #{fOriginalbillno}</if>
|
|
|
<if test="fBoxno != null and fBoxno != ''">and f_boxno = #{fBoxno}</if>
|
|
|
<if test="fOriginalbilldate != null ">and f_originalbilldate = #{fOriginalbilldate}</if>
|
|
|
+ <if test="fStorageFeeDeadline != null "> and f_storage_fee_deadline = #{fStorageFeeDeadline}</if>
|
|
|
<if test="fCntqty != null ">and f_cntqty = #{fCntqty}</if>
|
|
|
<if test="fGoodsval != null ">and f_goodsval = #{fGoodsval}</if>
|
|
|
<if test="fCntrtype != null and fCntrtype != ''">and f_cntrtype = #{fCntrtype}</if>
|
|
@@ -106,6 +109,7 @@
|
|
|
DISTINCT
|
|
|
item.f_id AS fId,
|
|
|
item.f_pid AS fPid,
|
|
|
+ item.f_srcid AS fSrcid,
|
|
|
item.f_lineno AS fLineno,
|
|
|
item.f_billno AS fBillno,
|
|
|
item.f_goodsid AS fGoodsid,
|
|
@@ -161,27 +165,28 @@
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="fPid != null">f_pid,</if>
|
|
|
<if test="fLineno != null">f_lineno,</if>
|
|
|
- <if test="fGoodsid != null">f_goodsid,</if>
|
|
|
+ <if test="fSrcid != null">f_srcid,</if>
|
|
|
<if test="fBillno != null">f_billno,</if>
|
|
|
+ <if test="fGoodsid != null">f_goodsid,</if>
|
|
|
<if test="fMblno != null">f_mblno,</if>
|
|
|
<if test="fWarehouselocid != null">f_warehouselocid,</if>
|
|
|
<if test="fOriginalbillno != null">f_originalbillno,</if>
|
|
|
<if test="fBsdate != null">f_bsdate,</if>
|
|
|
- <if test="fBoxno != null">f_boxno,</if>
|
|
|
<if test="fCntqty != null">f_cntqty,</if>
|
|
|
- <if test="fGoodsval != null">f_goodsval,</if>
|
|
|
+ <if test="fBoxno != null">f_boxno,</if>
|
|
|
<if test="fCntrtype != null">f_cntrtype,</if>
|
|
|
+ <if test="fGoodsval != null">f_goodsval,</if>
|
|
|
+ <if test="fOriginalbilldate != null">f_originalbilldate,</if>
|
|
|
<if test="fPlanqty != null">f_planqty,</if>
|
|
|
<if test="fBillingway != null">f_billingway,</if>
|
|
|
<if test="fPlanvolumn != null">f_planvolumn,</if>
|
|
|
- <if test="fOriginalbilldate != null">f_originalbilldate,</if>
|
|
|
<if test="fPackagespecs != null">f_packagespecs,</if>
|
|
|
- <if test="fPlangrossweight != null">f_plangrossweight,</if>
|
|
|
<if test="fChargedate != null">f_chargedate,</if>
|
|
|
+ <if test="fPlangrossweight != null">f_plangrossweight,</if>
|
|
|
<if test="fPlannetweight != null">f_plannetweight,</if>
|
|
|
<if test="fQty != null">f_qty,</if>
|
|
|
- <if test="fVolumn != null">f_volumn,</if>
|
|
|
<if test="fGrossweight != null">f_grossweight,</if>
|
|
|
+ <if test="fVolumn != null">f_volumn,</if>
|
|
|
<if test="fNetweight != null">f_netweight,</if>
|
|
|
<if test="fCntrno != null">f_cntrno,</if>
|
|
|
<if test="fTruckno != null">f_truckno,</if>
|
|
@@ -194,6 +199,7 @@
|
|
|
<if test="remark != null">remark,</if>
|
|
|
<if test="fMarks != null">f_marks,</if>
|
|
|
<if test="fInventoryDays != null">f_inventory_days,</if>
|
|
|
+ <if test="fStorageFeeDeadline != null">f_storage_fee_deadline,</if>
|
|
|
<if test="fAmt != null">f_amt,</if>
|
|
|
<if test="fBillingDays != null">f_billing_days,</if>
|
|
|
<if test="fDriverName != null">f_driver_name,</if>
|
|
@@ -208,27 +214,28 @@
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="fPid != null">#{fPid},</if>
|
|
|
<if test="fLineno != null">#{fLineno},</if>
|
|
|
- <if test="fGoodsid != null">#{fGoodsid},</if>
|
|
|
+ <if test="fSrcid != null">#{fSrcid},</if>
|
|
|
<if test="fBillno != null">#{fBillno},</if>
|
|
|
+ <if test="fGoodsid != null">#{fGoodsid},</if>
|
|
|
<if test="fMblno != null">#{fMblno},</if>
|
|
|
<if test="fWarehouselocid != null">#{fWarehouselocid},</if>
|
|
|
<if test="fOriginalbillno != null">#{fOriginalbillno},</if>
|
|
|
<if test="fBsdate != null">#{fBsdate},</if>
|
|
|
- <if test="fBoxno != null">#{fBoxno},</if>
|
|
|
<if test="fCntqty != null">#{fCntqty},</if>
|
|
|
- <if test="fGoodsval != null">#{fGoodsval},</if>
|
|
|
+ <if test="fBoxno != null">#{fBoxno},</if>
|
|
|
<if test="fCntrtype != null">#{fCntrtype},</if>
|
|
|
+ <if test="fGoodsval != null">#{fGoodsval},</if>
|
|
|
+ <if test="fOriginalbilldate != null">#{fOriginalbilldate},</if>
|
|
|
<if test="fPlanqty != null">#{fPlanqty},</if>
|
|
|
<if test="fBillingway != null">#{fBillingway},</if>
|
|
|
<if test="fPlanvolumn != null">#{fPlanvolumn},</if>
|
|
|
- <if test="fOriginalbilldate != null">#{fOriginalbilldate},</if>
|
|
|
<if test="fPackagespecs != null">#{fPackagespecs},</if>
|
|
|
- <if test="fPlangrossweight != null">#{fPlangrossweight},</if>
|
|
|
<if test="fChargedate != null">#{fChargedate},</if>
|
|
|
+ <if test="fPlangrossweight != null">#{fPlangrossweight},</if>
|
|
|
<if test="fPlannetweight != null">#{fPlannetweight},</if>
|
|
|
<if test="fQty != null">#{fQty},</if>
|
|
|
- <if test="fVolumn != null">#{fVolumn},</if>
|
|
|
<if test="fGrossweight != null">#{fGrossweight},</if>
|
|
|
+ <if test="fVolumn != null">#{fVolumn},</if>
|
|
|
<if test="fNetweight != null">#{fNetweight},</if>
|
|
|
<if test="fCntrno != null">#{fCntrno},</if>
|
|
|
<if test="fTruckno != null">#{fTruckno},</if>
|
|
@@ -241,6 +248,7 @@
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
<if test="fMarks != null">#{fMarks},</if>
|
|
|
<if test="fInventoryDays != null">#{fInventoryDays},</if>
|
|
|
+ <if test="fStorageFeeDeadline != null">#{fStorageFeeDeadline},</if>
|
|
|
<if test="fAmt != null">#{fAmt},</if>
|
|
|
<if test="fBillingDays != null">#{fBillingDays},</if>
|
|
|
<if test="fDriverName != null">#{fDriverName},</if>
|
|
@@ -259,27 +267,28 @@
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="fPid != null">f_pid = #{fPid},</if>
|
|
|
<if test="fLineno != null">f_lineno = #{fLineno},</if>
|
|
|
- <if test="fGoodsid != null">f_goodsid = #{fGoodsid},</if>
|
|
|
+ <if test="fSrcid != null">f_srcid = #{fSrcid},</if>
|
|
|
<if test="fBillno != null">f_billno = #{fBillno},</if>
|
|
|
+ <if test="fGoodsid != null">f_goodsid = #{fGoodsid},</if>
|
|
|
<if test="fMblno != null">f_mblno = #{fMblno},</if>
|
|
|
<if test="fWarehouselocid != null">f_warehouselocid = #{fWarehouselocid},</if>
|
|
|
<if test="fOriginalbillno != null">f_originalbillno = #{fOriginalbillno},</if>
|
|
|
<if test="fBsdate != null">f_bsdate = #{fBsdate},</if>
|
|
|
- <if test="fBoxno != null">f_boxno = #{fBoxno},</if>
|
|
|
<if test="fCntqty != null">f_cntqty = #{fCntqty},</if>
|
|
|
- <if test="fGoodsval != null">f_goodsval = #{fGoodsval},</if>
|
|
|
+ <if test="fBoxno != null">f_boxno = #{fBoxno},</if>
|
|
|
<if test="fCntrtype != null">f_cntrtype = #{fCntrtype},</if>
|
|
|
+ <if test="fGoodsval != null">f_goodsval = #{fGoodsval},</if>
|
|
|
+ <if test="fOriginalbilldate != null">f_originalbilldate = #{fOriginalbilldate},</if>
|
|
|
<if test="fPlanqty != null">f_planqty = #{fPlanqty},</if>
|
|
|
<if test="fBillingway != null">f_billingway = #{fBillingway},</if>
|
|
|
<if test="fPlanvolumn != null">f_planvolumn = #{fPlanvolumn},</if>
|
|
|
- <if test="fOriginalbilldate != null">f_originalbilldate = #{fOriginalbilldate},</if>
|
|
|
<if test="fPackagespecs != null">f_packagespecs = #{fPackagespecs},</if>
|
|
|
- <if test="fPlangrossweight != null">f_plangrossweight = #{fPlangrossweight},</if>
|
|
|
<if test="fChargedate != null">f_chargedate = #{fChargedate},</if>
|
|
|
+ <if test="fPlangrossweight != null">f_plangrossweight = #{fPlangrossweight},</if>
|
|
|
<if test="fPlannetweight != null">f_plannetweight = #{fPlannetweight},</if>
|
|
|
<if test="fQty != null">f_qty = #{fQty},</if>
|
|
|
- <if test="fVolumn != null">f_volumn = #{fVolumn},</if>
|
|
|
<if test="fGrossweight != null">f_grossweight = #{fGrossweight},</if>
|
|
|
+ <if test="fVolumn != null">f_volumn = #{fVolumn},</if>
|
|
|
<if test="fNetweight != null">f_netweight = #{fNetweight},</if>
|
|
|
<if test="fCntrno != null">f_cntrno = #{fCntrno},</if>
|
|
|
<if test="fTruckno != null">f_truckno = #{fTruckno},</if>
|
|
@@ -292,6 +301,7 @@
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="fMarks != null">f_marks = #{fMarks},</if>
|
|
|
<if test="fInventoryDays != null">f_inventory_days = #{fInventoryDays},</if>
|
|
|
+ <if test="fStorageFeeDeadline != null">f_storage_fee_deadline = #{fStorageFeeDeadline},</if>
|
|
|
<if test="fAmt != null">f_amt = #{fAmt},</if>
|
|
|
<if test="fBillingDays != null">f_billing_days = #{fBillingDays},</if>
|
|
|
<if test="fDriverName != null">f_driver_name = #{fDriverName},</if>
|
|
@@ -324,6 +334,7 @@
|
|
|
<select id="selectStorageFeeItemList" parameterType="com.ruoyi.warehouseBusiness.domain.TWarehouseBills"
|
|
|
resultType="Map">
|
|
|
SELECT
|
|
|
+ item.f_id AS fId,
|
|
|
item.f_billno AS fBillno,
|
|
|
item.f_goodsid AS fGoodsid,
|
|
|
item.f_bsdate AS fBsdate,
|