|
@@ -9,15 +9,17 @@
|
|
|
<result property="fPid" column="f_pid"/>
|
|
|
<result property="fLineno" column="f_lineno"/>
|
|
|
<result property="fGoodsid" column="f_goodsid"/>
|
|
|
+ <result property="fMblno" column="f_mblno"/>
|
|
|
<result property="fWarehouselocid" column="f_warehouselocid"/>
|
|
|
<result property="fBsdate" column="f_bsdate"/>
|
|
|
+ <result property="fOriginalbillno" column="f_originalbillno"/>
|
|
|
<result property="fBoxno" column="f_boxno"/>
|
|
|
<result property="fCntqty" column="f_cntqty"/>
|
|
|
<result property="fGoodsval" column="f_goodsval"/>
|
|
|
<result property="fCntrtype" column="f_cntrtype"/>
|
|
|
- <result property="fOriginalbillno" column="f_originalbillno"/>
|
|
|
+ <result property="fChargedate" column="f_chargedate"/>
|
|
|
+ <result property="fBillingway" column="f_billingway"/>
|
|
|
<result property="fPlanqty" column="f_planqty"/>
|
|
|
- <result property="fMblno" column="f_mblno"/>
|
|
|
<result property="fPlanvolumn" column="f_planvolumn"/>
|
|
|
<result property="fPackagespecs" column="f_packagespecs"/>
|
|
|
<result property="fPlangrossweight" column="f_plangrossweight"/>
|
|
@@ -35,12 +37,11 @@
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="remark" column="remark"/>
|
|
|
+ <result property="fMarks" column="f_marks"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTWarehousebillsitemsVo">
|
|
|
- select f_id, f_pid, f_lineno, f_goodsid, f_warehouselocid, f_originalbillno, f_mblno, f_bsdate, f_boxno, f_cntqty,
|
|
|
- f_goodsval, f_cntrtype, f_planqty, f_planvolumn, f_packagespecs, f_plangrossweight, 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 from t_warehousebillsitems
|
|
|
+ select f_id, f_pid, f_lineno, f_goodsid, f_mblno, f_warehouselocid, f_bsdate, f_originalbillno, f_boxno, f_cntqty, f_goodsval, f_cntrtype, f_chargedate, f_billingway, f_planqty, f_planvolumn, f_packagespecs, f_plangrossweight, 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 from t_warehousebillsitems
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTWarehousebillsitemsList" parameterType="TWarehousebillsitems"
|
|
@@ -50,16 +51,17 @@
|
|
|
<if test="fPid != null ">and f_pid = #{fPid}</if>
|
|
|
<if test="fLineno != null ">and f_lineno = #{fLineno}</if>
|
|
|
<if test="fGoodsid != null ">and f_goodsid = #{fGoodsid}</if>
|
|
|
+ <if test="fMblno != null and fMblno != ''">and f_mblno = #{fMblno}</if>
|
|
|
<if test="fWarehouselocid != null ">and f_warehouselocid = #{fWarehouselocid}</if>
|
|
|
<if test="fBsdate != null ">and f_bsdate = #{fBsdate}</if>
|
|
|
+ <if test="fOriginalbillno != null and fOriginalbillno != ''">and f_originalbillno = #{fOriginalbillno}</if>
|
|
|
<if test="fBoxno != null and fBoxno != ''">and f_boxno = #{fBoxno}</if>
|
|
|
<if test="fCntqty != null ">and f_cntqty = #{fCntqty}</if>
|
|
|
- <if test="fOriginalbillno != null and fOriginalbillno != ''">and f_originalbillno = #{fOriginalbillno}</if>
|
|
|
<if test="fGoodsval != null ">and f_goodsval = #{fGoodsval}</if>
|
|
|
<if test="fCntrtype != null and fCntrtype != ''">and f_cntrtype = #{fCntrtype}</if>
|
|
|
<if test="fPlanqty != null ">and f_planqty = #{fPlanqty}</if>
|
|
|
- <if test="fMblno != null ">and f_mblno = #{fMblno}</if>
|
|
|
<if test="fPlanvolumn != null ">and f_planvolumn = #{fPlanvolumn}</if>
|
|
|
+ <if test="fChargedate != null ">and f_chargedate = #{fChargedate}</if>
|
|
|
<if test="fPackagespecs != null ">and f_packagespecs = #{fPackagespecs}</if>
|
|
|
<if test="fPlangrossweight != null ">and f_plangrossweight = #{fPlangrossweight}</if>
|
|
|
<if test="fPlannetweight != null ">and f_plannetweight = #{fPlannetweight}</if>
|
|
@@ -70,43 +72,44 @@
|
|
|
<if test="fCntrno != null and fCntrno != ''">and f_cntrno = #{fCntrno}</if>
|
|
|
<if test="fTruckno != null and fTruckno != ''">and f_truckno = #{fTruckno}</if>
|
|
|
<if test="fBillstatus != null and fBillstatus != ''">and f_billstatus = #{fBillstatus}</if>
|
|
|
+ <if test="fMarks != null and fMarks != ''">and f_marks = #{fMarks}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectGoodsTransferitemsList" parameterType="TWarehousebillsitems" resultType="Map">
|
|
|
select
|
|
|
DISTINCT
|
|
|
- item.f_id AS fId,
|
|
|
- item.f_pid AS fPid,
|
|
|
- item.f_lineno AS fLineno,
|
|
|
- item.f_goodsid AS fGoodsid,
|
|
|
- goods.f_name AS fGoodsids,
|
|
|
- item.f_warehouselocid AS fWarehouselocid,
|
|
|
- area.f_name AS fWarehouselocids,
|
|
|
- item.f_originalbillno AS fOriginalbillno,
|
|
|
- item.f_mblno AS fMblno,
|
|
|
- item.f_bsdate AS fBsdate,
|
|
|
- item.f_boxno AS fBoxno,
|
|
|
- item.f_cntqty AS fCntqty,
|
|
|
- item.f_goodsval AS fGoodsval,
|
|
|
- item.f_cntrtype AS fCntrtype,
|
|
|
- item.f_planqty AS fPlanqty,
|
|
|
- item.f_planvolumn AS fPlanvolumn,
|
|
|
- item.f_packagespecs AS fPackagespecs,
|
|
|
- item.f_plangrossweight AS fPlangrossweight,
|
|
|
- item.f_plannetweight AS fPlannetweight,
|
|
|
- item.f_qty AS fQty,
|
|
|
- item.f_volumn AS fVolumn,
|
|
|
- item.f_grossweight AS fGrossweight,
|
|
|
- item.f_netweight AS fNetweight,
|
|
|
- item.f_cntrno AS fCntrno,
|
|
|
- item.f_truckno AS fTruckno,
|
|
|
- item.f_billstatus AS fBillstatus,
|
|
|
- item.remark
|
|
|
+ item.f_id AS fId,
|
|
|
+ item.f_pid AS fPid,
|
|
|
+ item.f_lineno AS fLineno,
|
|
|
+ item.f_goodsid AS fGoodsid,
|
|
|
+ goods.f_name AS fGoodsids,
|
|
|
+ item.f_warehouselocid AS fWarehouselocid,
|
|
|
+ area.f_name AS fWarehouselocids,
|
|
|
+ item.f_originalbillno AS fOriginalbillno,
|
|
|
+ item.f_mblno AS fMblno,
|
|
|
+ item.f_bsdate AS fBsdate,
|
|
|
+ item.f_boxno AS fBoxno,
|
|
|
+ item.f_cntqty AS fCntqty,
|
|
|
+ item.f_goodsval AS fGoodsval,
|
|
|
+ item.f_cntrtype AS fCntrtype,
|
|
|
+ item.f_planqty AS fPlanqty,
|
|
|
+ item.f_planvolumn AS fPlanvolumn,
|
|
|
+ item.f_packagespecs AS fPackagespecs,
|
|
|
+ item.f_plangrossweight AS fPlangrossweight,
|
|
|
+ item.f_plannetweight AS fPlannetweight,
|
|
|
+ item.f_qty AS fQty,
|
|
|
+ item.f_volumn AS fVolumn,
|
|
|
+ item.f_grossweight AS fGrossweight,
|
|
|
+ item.f_netweight AS fNetweight,
|
|
|
+ item.f_cntrno AS fCntrno,
|
|
|
+ item.f_truckno AS fTruckno,
|
|
|
+ item.f_billstatus AS fBillstatus,
|
|
|
+ item.remark
|
|
|
from
|
|
|
- t_warehousebillsitems item
|
|
|
- LEFT JOIN t_goods goods ON goods.f_id = item.f_goodsid
|
|
|
- LEFT JOIN t_warehouse_area area ON area.f_id = item.f_warehouselocid
|
|
|
+ t_warehousebillsitems item
|
|
|
+ LEFT JOIN t_goods goods ON goods.f_id = item.f_goodsid
|
|
|
+ LEFT JOIN t_warehouse_area area ON area.f_id = item.f_warehouselocid
|
|
|
<where>
|
|
|
<if test="fPid != null ">and item.f_pid = #{fPid}</if>
|
|
|
</where>
|
|
@@ -128,18 +131,20 @@
|
|
|
<if test="fWarehouselocid != null">f_warehouselocid,</if>
|
|
|
<if test="fBsdate != null">f_bsdate,</if>
|
|
|
<if test="fOriginalbillno != null">f_originalbillno,</if>
|
|
|
- <if test="fCntqty != null">f_cntqty,</if>
|
|
|
<if test="fBoxno != null">f_boxno,</if>
|
|
|
- <if test="fCntrtype != null">f_cntrtype,</if>
|
|
|
+ <if test="fCntqty != null">f_cntqty,</if>
|
|
|
<if test="fGoodsval != null">f_goodsval,</if>
|
|
|
+ <if test="fCntrtype != null">f_cntrtype,</if>
|
|
|
+ <if test="fChargedate != null">f_chargedate,</if>
|
|
|
+ <if test="fBillingway != null">f_billingway,</if>
|
|
|
<if test="fPlanqty != null">f_planqty,</if>
|
|
|
<if test="fPlanvolumn != null">f_planvolumn,</if>
|
|
|
<if test="fPackagespecs != null">f_packagespecs,</if>
|
|
|
<if test="fPlangrossweight != null">f_plangrossweight,</if>
|
|
|
<if test="fPlannetweight != null">f_plannetweight,</if>
|
|
|
<if test="fQty != null">f_qty,</if>
|
|
|
- <if test="fGrossweight != null">f_grossweight,</if>
|
|
|
<if test="fVolumn != null">f_volumn,</if>
|
|
|
+ <if test="fGrossweight != null">f_grossweight,</if>
|
|
|
<if test="fNetweight != null">f_netweight,</if>
|
|
|
<if test="fCntrno != null">f_cntrno,</if>
|
|
|
<if test="fTruckno != null">f_truckno,</if>
|
|
@@ -160,18 +165,20 @@
|
|
|
<if test="fWarehouselocid != null">#{fWarehouselocid},</if>
|
|
|
<if test="fBsdate != null">#{fBsdate},</if>
|
|
|
<if test="fOriginalbillno != null">#{fOriginalbillno},</if>
|
|
|
- <if test="fCntqty != null">#{fCntqty},</if>
|
|
|
<if test="fBoxno != null">#{fBoxno},</if>
|
|
|
- <if test="fCntrtype != null">#{fCntrtype},</if>
|
|
|
+ <if test="fCntqty != null">#{fCntqty},</if>
|
|
|
<if test="fGoodsval != null">#{fGoodsval},</if>
|
|
|
+ <if test="fCntrtype != null">#{fCntrtype},</if>
|
|
|
+ <if test="fChargedate != null">#{fChargedate},</if>
|
|
|
+ <if test="fBillingway != null">#{fBillingway},</if>
|
|
|
<if test="fPlanqty != null">#{fPlanqty},</if>
|
|
|
<if test="fPlanvolumn != null">#{fPlanvolumn},</if>
|
|
|
<if test="fPackagespecs != null">#{fPackagespecs},</if>
|
|
|
<if test="fPlangrossweight != null">#{fPlangrossweight},</if>
|
|
|
<if test="fPlannetweight != null">#{fPlannetweight},</if>
|
|
|
<if test="fQty != null">#{fQty},</if>
|
|
|
- <if test="fGrossweight != null">#{fGrossweight},</if>
|
|
|
<if test="fVolumn != null">#{fVolumn},</if>
|
|
|
+ <if test="fGrossweight != null">#{fGrossweight},</if>
|
|
|
<if test="fNetweight != null">#{fNetweight},</if>
|
|
|
<if test="fCntrno != null">#{fCntrno},</if>
|
|
|
<if test="fTruckno != null">#{fTruckno},</if>
|
|
@@ -196,18 +203,20 @@
|
|
|
<if test="fWarehouselocid != null">f_warehouselocid = #{fWarehouselocid},</if>
|
|
|
<if test="fBsdate != null">f_bsdate = #{fBsdate},</if>
|
|
|
<if test="fOriginalbillno != null">f_originalbillno = #{fOriginalbillno},</if>
|
|
|
- <if test="fCntqty != null">f_cntqty = #{fCntqty},</if>
|
|
|
<if test="fBoxno != null">f_boxno = #{fBoxno},</if>
|
|
|
- <if test="fCntrtype != null">f_cntrtype = #{fCntrtype},</if>
|
|
|
+ <if test="fCntqty != null">f_cntqty = #{fCntqty},</if>
|
|
|
<if test="fGoodsval != null">f_goodsval = #{fGoodsval},</if>
|
|
|
+ <if test="fCntrtype != null">f_cntrtype = #{fCntrtype},</if>
|
|
|
+ <if test="fChargedate != null">f_chargedate = #{fChargedate},</if>
|
|
|
+ <if test="fBillingway != null">f_billingway = #{fBillingway},</if>
|
|
|
<if test="fPlanqty != null">f_planqty = #{fPlanqty},</if>
|
|
|
<if test="fPlanvolumn != null">f_planvolumn = #{fPlanvolumn},</if>
|
|
|
<if test="fPackagespecs != null">f_packagespecs = #{fPackagespecs},</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="fGrossweight != null">f_grossweight = #{fGrossweight},</if>
|
|
|
<if test="fVolumn != null">f_volumn = #{fVolumn},</if>
|
|
|
+ <if test="fGrossweight != null">f_grossweight = #{fGrossweight},</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>
|