|
@@ -4,32 +4,32 @@
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ruoyi.warehouseBusiness.mapper.TWarehouseBillsMapper">
|
|
|
|
|
|
- <resultMap type="TWarehouseDetails" id="TWarehouseDetailsResult">
|
|
|
+ <resultMap type="TWarehousebills" id="TWarehousebillsResult">
|
|
|
<result property="fId" column="f_id"/>
|
|
|
<result property="fBillno" column="f_billno"/>
|
|
|
- <result property="fOriginalbillno" column="f_originalbillno"/>
|
|
|
<result property="fCustomsdeclartion" column="f_customsdeclartion"/>
|
|
|
+ <result property="fOriginalbillno" column="f_originalbillno"/>
|
|
|
<result property="fDeptid" column="f_deptid"/>
|
|
|
<result property="fBsdeptid" column="f_bsdeptid"/>
|
|
|
- <result property="fCorpid" column="f_corpid"/>
|
|
|
- <result property="fTel" column="f_tel"/>
|
|
|
<result property="fContacts" column="f_contacts"/>
|
|
|
+ <result property="fTel" column="f_tel"/>
|
|
|
+ <result property="fCorpid" column="f_corpid"/>
|
|
|
<result property="fTocorpid" column="f_tocorpid"/>
|
|
|
<result property="fStltypeid" column="f_stltypeid"/>
|
|
|
<result property="fBscorpno" column="f_bscorpno"/>
|
|
|
<result property="fWarehouseid" column="f_warehouseid"/>
|
|
|
+ <result property="fStorekeeper" column="f_storekeeper"/>
|
|
|
<result property="fBsdate" column="f_bsdate"/>
|
|
|
<result property="fPlanqty" column="f_planqty"/>
|
|
|
- <result property="fStorekeeper" column="f_storekeeper"/>
|
|
|
- <result property="fSbu" column="f_sbu"/>
|
|
|
<result property="fPlangrossweight" column="f_plangrossweight"/>
|
|
|
- <result property="fPlanvolumn" column="f_planvolumn"/>
|
|
|
<result property="fPlannetweight" column="f_plannetweight"/>
|
|
|
+ <result property="fPlanvolumn" column="f_planvolumn"/>
|
|
|
<result property="fQty" column="f_qty"/>
|
|
|
<result property="fGrossweight" column="f_grossweight"/>
|
|
|
<result property="fNetweight" column="f_netweight"/>
|
|
|
- <result property="fTrademodeid" column="f_trademodeid"/>
|
|
|
<result property="fVolumn" column="f_volumn"/>
|
|
|
+ <result property="fTrademodeid" column="f_trademodeid"/>
|
|
|
+ <result property="fSbu" column="f_sbu"/>
|
|
|
<result property="fFeetunit" column="f_feetunit"/>
|
|
|
<result property="fMblno" column="f_mblno"/>
|
|
|
<result property="fVslvoy" column="f_vslvoy"/>
|
|
@@ -49,32 +49,39 @@
|
|
|
<result property="remark" column="remark"/>
|
|
|
</resultMap>
|
|
|
|
|
|
- <sql id="selectTWarehouseDetailsVo">
|
|
|
- select f_id, f_billno, f_originalbillno, f_deptid, f_bsdeptid, f_corpid, f_tocorpid, f_stltypeid, f_bscorpno, f_warehouseid, f_bsdate, f_planqty, f_plangrossweight, f_planvolumn, f_plannetweight, f_qty, f_grossweight, f_netweight, f_trademodeid, f_volumn, f_feetunit, f_mblno, f_vslvoy, f_eta, f_customno, f_ifweigh, f_ifpledge, f_ifdamage, f_bankcorpid, f_billtype, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark from t_warehouse_details
|
|
|
+ <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_bsdate, f_planqty, f_plangrossweight, f_plannetweight, f_planvolumn, f_qty, f_grossweight, f_netweight, f_volumn, f_trademodeid, f_sbu, f_feetunit, f_mblno, f_vslvoy, f_eta, f_customno, f_ifweigh, f_ifpledge, f_ifdamage, f_bankcorpid, f_billtype, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark from t_warehousebills
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectTWarehouseDetailsList" parameterType="TWarehouseDetails" resultMap="TWarehouseDetailsResult">
|
|
|
- <include refid="selectTWarehouseDetailsVo"/>
|
|
|
+ <select id="selectTWarehousebillsList" parameterType="TWarehousebills" resultMap="TWarehousebillsResult">
|
|
|
+ <include refid="selectTWarehousebillsVo"/>
|
|
|
<where>
|
|
|
<if test="fBillno != null and fBillno != ''">and f_billno = #{fBillno}</if>
|
|
|
+ <if test="fCustomsdeclartion != null and fCustomsdeclartion != ''">and f_customsdeclartion =
|
|
|
+ #{fCustomsdeclartion}
|
|
|
+ </if>
|
|
|
<if test="fOriginalbillno != null and fOriginalbillno != ''">and f_originalbillno = #{fOriginalbillno}</if>
|
|
|
<if test="fDeptid != null ">and f_deptid = #{fDeptid}</if>
|
|
|
<if test="fBsdeptid != null ">and f_bsdeptid = #{fBsdeptid}</if>
|
|
|
+ <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="fTocorpid != null ">and f_tocorpid = #{fTocorpid}</if>
|
|
|
<if test="fStltypeid != null ">and f_stltypeid = #{fStltypeid}</if>
|
|
|
<if test="fBscorpno != null and fBscorpno != ''">and f_bscorpno = #{fBscorpno}</if>
|
|
|
<if test="fWarehouseid != null ">and f_warehouseid = #{fWarehouseid}</if>
|
|
|
+ <if test="fStorekeeper != null and fStorekeeper != ''">and f_storekeeper = #{fStorekeeper}</if>
|
|
|
<if test="fBsdate != null ">and f_bsdate = #{fBsdate}</if>
|
|
|
<if test="fPlanqty != null ">and f_planqty = #{fPlanqty}</if>
|
|
|
<if test="fPlangrossweight != null ">and f_plangrossweight = #{fPlangrossweight}</if>
|
|
|
- <if test="fPlanvolumn != null ">and f_planvolumn = #{fPlanvolumn}</if>
|
|
|
<if test="fPlannetweight != null ">and f_plannetweight = #{fPlannetweight}</if>
|
|
|
+ <if test="fPlanvolumn != null ">and f_planvolumn = #{fPlanvolumn}</if>
|
|
|
<if test="fQty != null ">and f_qty = #{fQty}</if>
|
|
|
<if test="fGrossweight != null ">and f_grossweight = #{fGrossweight}</if>
|
|
|
<if test="fNetweight != null ">and f_netweight = #{fNetweight}</if>
|
|
|
- <if test="fTrademodeid != null ">and f_trademodeid = #{fTrademodeid}</if>
|
|
|
<if test="fVolumn != null ">and f_volumn = #{fVolumn}</if>
|
|
|
+ <if test="fTrademodeid != null ">and f_trademodeid = #{fTrademodeid}</if>
|
|
|
+ <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="fVslvoy != null and fVslvoy != ''">and f_vslvoy = #{fVslvoy}</if>
|
|
@@ -89,33 +96,38 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectTWarehouseDetailsById" parameterType="Long" resultMap="TWarehouseDetailsResult">
|
|
|
- <include refid="selectTWarehouseDetailsVo"/>
|
|
|
+ <select id="selectTWarehousebillsById" parameterType="Long" resultMap="TWarehousebillsResult">
|
|
|
+ <include refid="selectTWarehousebillsVo"/>
|
|
|
where f_id = #{fId}
|
|
|
</select>
|
|
|
|
|
|
- <insert id="insertTWarehouseDetails" parameterType="TWarehouseDetails" useGeneratedKeys="true" keyProperty="fId">
|
|
|
- insert into t_warehouse_details
|
|
|
+ <insert id="insertTWarehousebills" parameterType="TWarehousebills" useGeneratedKeys="true" keyProperty="fId">
|
|
|
+ insert into t_warehousebills
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="fBillno != null">f_billno,</if>
|
|
|
+ <if test="fCustomsdeclartion != null">f_customsdeclartion,</if>
|
|
|
<if test="fOriginalbillno != null">f_originalbillno,</if>
|
|
|
<if test="fDeptid != null">f_deptid,</if>
|
|
|
<if test="fBsdeptid != null">f_bsdeptid,</if>
|
|
|
+ <if test="fContacts != null">f_contacts,</if>
|
|
|
+ <if test="fTel != null">f_tel,</if>
|
|
|
<if test="fCorpid != null">f_corpid,</if>
|
|
|
<if test="fTocorpid != null">f_tocorpid,</if>
|
|
|
<if test="fStltypeid != null">f_stltypeid,</if>
|
|
|
<if test="fBscorpno != null and fBscorpno != ''">f_bscorpno,</if>
|
|
|
<if test="fWarehouseid != null">f_warehouseid,</if>
|
|
|
+ <if test="fStorekeeper != null">f_storekeeper,</if>
|
|
|
<if test="fBsdate != null">f_bsdate,</if>
|
|
|
<if test="fPlanqty != null">f_planqty,</if>
|
|
|
<if test="fPlangrossweight != null">f_plangrossweight,</if>
|
|
|
- <if test="fPlanvolumn != null">f_planvolumn,</if>
|
|
|
<if test="fPlannetweight != null">f_plannetweight,</if>
|
|
|
+ <if test="fPlanvolumn != null">f_planvolumn,</if>
|
|
|
<if test="fQty != null">f_qty,</if>
|
|
|
<if test="fGrossweight != null">f_grossweight,</if>
|
|
|
<if test="fNetweight != null">f_netweight,</if>
|
|
|
- <if test="fTrademodeid != null">f_trademodeid,</if>
|
|
|
<if test="fVolumn != null">f_volumn,</if>
|
|
|
+ <if test="fTrademodeid != null">f_trademodeid,</if>
|
|
|
+ <if test="fSbu != null">f_sbu,</if>
|
|
|
<if test="fFeetunit != null">f_feetunit,</if>
|
|
|
<if test="fMblno != null">f_mblno,</if>
|
|
|
<if test="fVslvoy != null">f_vslvoy,</if>
|
|
@@ -136,24 +148,29 @@
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="fBillno != null">#{fBillno},</if>
|
|
|
+ <if test="fCustomsdeclartion != null">#{fCustomsdeclartion},</if>
|
|
|
<if test="fOriginalbillno != null">#{fOriginalbillno},</if>
|
|
|
<if test="fDeptid != null">#{fDeptid},</if>
|
|
|
<if test="fBsdeptid != null">#{fBsdeptid},</if>
|
|
|
+ <if test="fContacts != null">#{fContacts},</if>
|
|
|
+ <if test="fTel != null">#{fTel},</if>
|
|
|
<if test="fCorpid != null">#{fCorpid},</if>
|
|
|
<if test="fTocorpid != null">#{fTocorpid},</if>
|
|
|
<if test="fStltypeid != null">#{fStltypeid},</if>
|
|
|
<if test="fBscorpno != null and fBscorpno != ''">#{fBscorpno},</if>
|
|
|
<if test="fWarehouseid != null">#{fWarehouseid},</if>
|
|
|
+ <if test="fStorekeeper != null">#{fStorekeeper},</if>
|
|
|
<if test="fBsdate != null">#{fBsdate},</if>
|
|
|
<if test="fPlanqty != null">#{fPlanqty},</if>
|
|
|
<if test="fPlangrossweight != null">#{fPlangrossweight},</if>
|
|
|
- <if test="fPlanvolumn != null">#{fPlanvolumn},</if>
|
|
|
<if test="fPlannetweight != null">#{fPlannetweight},</if>
|
|
|
+ <if test="fPlanvolumn != null">#{fPlanvolumn},</if>
|
|
|
<if test="fQty != null">#{fQty},</if>
|
|
|
<if test="fGrossweight != null">#{fGrossweight},</if>
|
|
|
<if test="fNetweight != null">#{fNetweight},</if>
|
|
|
- <if test="fTrademodeid != null">#{fTrademodeid},</if>
|
|
|
<if test="fVolumn != null">#{fVolumn},</if>
|
|
|
+ <if test="fTrademodeid != null">#{fTrademodeid},</if>
|
|
|
+ <if test="fSbu != null">#{fSbu},</if>
|
|
|
<if test="fFeetunit != null">#{fFeetunit},</if>
|
|
|
<if test="fMblno != null">#{fMblno},</if>
|
|
|
<if test="fVslvoy != null">#{fVslvoy},</if>
|
|
@@ -174,28 +191,33 @@
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
- <update id="updateTWarehouseDetails" parameterType="TWarehouseDetails">
|
|
|
- update t_warehouse_details
|
|
|
+ <update id="updateTWarehousebills" parameterType="TWarehousebills">
|
|
|
+ update t_warehousebills
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="fBillno != null">f_billno = #{fBillno},</if>
|
|
|
+ <if test="fCustomsdeclartion != null">f_customsdeclartion = #{fCustomsdeclartion},</if>
|
|
|
<if test="fOriginalbillno != null">f_originalbillno = #{fOriginalbillno},</if>
|
|
|
<if test="fDeptid != null">f_deptid = #{fDeptid},</if>
|
|
|
<if test="fBsdeptid != null">f_bsdeptid = #{fBsdeptid},</if>
|
|
|
+ <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="fTocorpid != null">f_tocorpid = #{fTocorpid},</if>
|
|
|
<if test="fStltypeid != null">f_stltypeid = #{fStltypeid},</if>
|
|
|
<if test="fBscorpno != null and fBscorpno != ''">f_bscorpno = #{fBscorpno},</if>
|
|
|
<if test="fWarehouseid != null">f_warehouseid = #{fWarehouseid},</if>
|
|
|
+ <if test="fStorekeeper != null">f_storekeeper = #{fStorekeeper},</if>
|
|
|
<if test="fBsdate != null">f_bsdate = #{fBsdate},</if>
|
|
|
<if test="fPlanqty != null">f_planqty = #{fPlanqty},</if>
|
|
|
<if test="fPlangrossweight != null">f_plangrossweight = #{fPlangrossweight},</if>
|
|
|
- <if test="fPlanvolumn != null">f_planvolumn = #{fPlanvolumn},</if>
|
|
|
<if test="fPlannetweight != null">f_plannetweight = #{fPlannetweight},</if>
|
|
|
+ <if test="fPlanvolumn != null">f_planvolumn = #{fPlanvolumn},</if>
|
|
|
<if test="fQty != null">f_qty = #{fQty},</if>
|
|
|
<if test="fGrossweight != null">f_grossweight = #{fGrossweight},</if>
|
|
|
<if test="fNetweight != null">f_netweight = #{fNetweight},</if>
|
|
|
- <if test="fTrademodeid != null">f_trademodeid = #{fTrademodeid},</if>
|
|
|
<if test="fVolumn != null">f_volumn = #{fVolumn},</if>
|
|
|
+ <if test="fTrademodeid != null">f_trademodeid = #{fTrademodeid},</if>
|
|
|
+ <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="fVslvoy != null">f_vslvoy = #{fVslvoy},</if>
|
|
@@ -217,12 +239,12 @@
|
|
|
where f_id = #{fId}
|
|
|
</update>
|
|
|
|
|
|
- <delete id="deleteTWarehouseDetailsById" parameterType="Long">
|
|
|
- delete from t_warehouse_details where f_id = #{fId}
|
|
|
+ <delete id="deleteTWarehousebillsById" parameterType="Long">
|
|
|
+ delete from t_warehousebills where f_id = #{fId}
|
|
|
</delete>
|
|
|
|
|
|
- <delete id="deleteTWarehouseDetailsByIds" parameterType="String">
|
|
|
- delete from t_warehouse_details where f_id in
|
|
|
+ <delete id="deleteTWarehousebillsByIds" parameterType="String">
|
|
|
+ delete from t_warehousebills where f_id in
|
|
|
<foreach item="fId" collection="array" open="(" separator="," close=")">
|
|
|
#{fId}
|
|
|
</foreach>
|