123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.ruoyi.warehouseBusiness.mapper.TWarehousebillsfeesMapper">
- <resultMap type="TWarehousebillsfees" id="TWarehousebillsfeesResult">
- <result property="fId" column="f_id"/>
- <result property="fPid" column="f_pid"/>
- <result property="fLineno" column="f_lineno"/>
- <result property="fCorpid" column="f_corpid"/>
- <result property="fFeeid" column="f_feeid"/>
- <result property="fFeeunitid" column="f_feeUnitid"/>
- <result property="fQty" column="f_qty"/>
- <result property="fUnitprice" column="f_unitprice"/>
- <result property="fAmount" column="f_amount"/>
- <result property="fCurrency" column="f_currency"/>
- <result property="fExrate" column="f_exrate"/>
- <result property="fTaxrate" column="f_taxrate"/>
- <result property="fDc" column="f_dc"/>
- <result property="fBillstatus" column="f_billstatus"/>
- <result property="fAccamount" column="f_accamount"/>
- <result property="fStatementNo" column="f_statement_no"/>
- <result property="fStlamount" column="f_stlamount"/>
- <result property="fInvnos" column="f_invnos"/>
- <result property="fAccamountDate" column="f_accamount_date"/>
- <result property="fInvamount" column="f_invamount"/>
- <result property="fStlamountNo" column="f_stlamount_no"/>
- <result property="fAskamount" column="f_askamount"/>
- <result property="fStlamountDate" column="f_stlamount_date"/>
- <result property="fStatus" column="f_status"/>
- <result property="delFlag" column="del_flag"/>
- <result property="createBy" column="create_by"/>
- <result property="createTime" column="create_time"/>
- <result property="updateBy" column="update_by"/>
- <result property="updateTime" column="update_time"/>
- <result property="remark" column="remark"/>
- </resultMap>
- <sql id="selectTWarehousebillsfeesVo">
- select f_id, f_pid, f_lineno, f_corpid, f_feeid, f_feeUnitid, f_qty, f_unitprice, f_amount, f_currency, f_exrate, f_taxrate, f_dc, f_billstatus, f_accamount, f_statement_no, f_stlamount, f_invnos, f_accamount_date, f_invamount, f_stlamount_no, f_askamount, f_stlamount_date, f_status, del_flag, create_by, create_time, update_by, update_time, remark from t_warehousebillsfees
- </sql>
- <select id="selectTWarehousebillsfeesList" parameterType="TWarehousebillsfees"
- resultMap="TWarehousebillsfeesResult">
- <include refid="selectTWarehousebillsfeesVo"/>
- <where>
- <if test="fPid != null ">and f_pid = #{fPid}</if>
- <if test="fLineno != null ">and f_lineno = #{fLineno}</if>
- <if test="fCorpid != null ">and f_corpid = #{fCorpid}</if>
- <if test="fFeeid != null ">and f_feeid = #{fFeeid}</if>
- <if test="fFeeunitid != null ">and f_feeUnitid = #{fFeeunitid}</if>
- <if test="fQty != null ">and f_qty = #{fQty}</if>
- <if test="fUnitprice != null ">and f_unitprice = #{fUnitprice}</if>
- <if test="fAmount != null ">and f_amount = #{fAmount}</if>
- <if test="fCurrency != null and fCurrency != ''">and f_currency = #{fCurrency}</if>
- <if test="fExrate != null ">and f_exrate = #{fExrate}</if>
- <if test="fTaxrate != null ">and f_taxrate = #{fTaxrate}</if>
- <if test="fDc != null and fDc != ''">and f_dc = #{fDc}</if>
- <if test="fBillstatus != null and fBillstatus != ''">and f_billstatus = #{fBillstatus}</if>
- <if test="fAccamount != null ">and f_accamount = #{fAccamount}</if>
- <if test="fStatementNo != null and fStatementNo != ''">and f_statement_no = #{fStatementNo}</if>
- <if test="fStlamount != null ">and f_stlamount = #{fStlamount}</if>
- <if test="fInvnos != null and fInvnos != ''">and f_invnos = #{fInvnos}</if>
- <if test="fAccamountDate != null ">and f_accamount_date = #{fAccamountDate}</if>
- <if test="fInvamount != null ">and f_invamount = #{fInvamount}</if>
- <if test="fStlamountNo != null and fStlamountNo != ''">and f_stlamount_no = #{fStlamountNo}</if>
- <if test="fAskamount != null ">and f_askamount = #{fAskamount}</if>
- <if test="fStlamountDate != null ">and f_stlamount_date = #{fStlamountDate}</if>
- <if test="fStatus != null and fStatus != ''">and f_status = #{fStatus}</if>
- </where>
- </select>
- <select id="selectTWarehousebillsfeesById" parameterType="Long" resultMap="TWarehousebillsfeesResult">
- <include refid="selectTWarehousebillsfeesVo"/>
- where f_id = #{fId}
- </select>
- <insert id="insertTWarehousebillsfees" parameterType="TWarehousebillsfees" useGeneratedKeys="true"
- keyProperty="fId">
- insert into t_warehousebillsfees
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="fPid != null">f_pid,</if>
- <if test="fLineno != null">f_lineno,</if>
- <if test="fCorpid != null">f_corpid,</if>
- <if test="fFeeid != null">f_feeid,</if>
- <if test="fFeeunitid != null">f_feeUnitid,</if>
- <if test="fQty != null">f_qty,</if>
- <if test="fUnitprice != null">f_unitprice,</if>
- <if test="fAmount != null">f_amount,</if>
- <if test="fCurrency != null">f_currency,</if>
- <if test="fExrate != null">f_exrate,</if>
- <if test="fTaxrate != null">f_taxrate,</if>
- <if test="fDc != null">f_dc,</if>
- <if test="fBillstatus != null">f_billstatus,</if>
- <if test="fAccamount != null">f_accamount,</if>
- <if test="fStatementNo != null">f_statement_no,</if>
- <if test="fStlamount != null">f_stlamount,</if>
- <if test="fInvnos != null">f_invnos,</if>
- <if test="fAccamountDate != null">f_accamount_date,</if>
- <if test="fInvamount != null">f_invamount,</if>
- <if test="fStlamountNo != null">f_stlamount_no,</if>
- <if test="fAskamount != null">f_askamount,</if>
- <if test="fStlamountDate != null">f_stlamount_date,</if>
- <if test="fStatus != null">f_status,</if>
- <if test="delFlag != null">del_flag,</if>
- <if test="createBy != null">create_by,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateBy != null">update_by,</if>
- <if test="updateTime != null">update_time,</if>
- <if test="remark != null">remark,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="fPid != null">#{fPid},</if>
- <if test="fLineno != null">#{fLineno},</if>
- <if test="fCorpid != null">#{fCorpid},</if>
- <if test="fFeeid != null">#{fFeeid},</if>
- <if test="fFeeUnitid != null">#{fFeeUnitid},</if>
- <if test="fQty != null">#{fQty},</if>
- <if test="fUnitprice != null">#{fUnitprice},</if>
- <if test="fAmount != null">#{fAmount},</if>
- <if test="fCurrency != null">#{fCurrency},</if>
- <if test="fExrate != null">#{fExrate},</if>
- <if test="fTaxrate != null">#{fTaxrate},</if>
- <if test="fDc != null">#{fDc},</if>
- <if test="fBillstatus != null">#{fBillstatus},</if>
- <if test="fAccamount != null">#{fAccamount},</if>
- <if test="fStatementNo != null">#{fStatementNo},</if>
- <if test="fStlamount != null">#{fStlamount},</if>
- <if test="fInvnos != null">#{fInvnos},</if>
- <if test="fAccamountDate != null">#{fAccamountDate},</if>
- <if test="fInvamount != null">#{fInvamount},</if>
- <if test="fStlamountNo != null">#{fStlamountNo},</if>
- <if test="fAskamount != null">#{fAskamount},</if>
- <if test="fStlamountDate != null">#{fStlamountDate},</if>
- <if test="fStatus != null">#{fStatus},</if>
- <if test="delFlag != null">#{delFlag},</if>
- <if test="createBy != null">#{createBy},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateBy != null">#{updateBy},</if>
- <if test="updateTime != null">#{updateTime},</if>
- <if test="remark != null">#{remark},</if>
- </trim>
- </insert>
- <update id="updateTWarehousebillsfees" parameterType="TWarehousebillsfees">
- update t_warehousebillsfees
- <trim prefix="SET" suffixOverrides=",">
- <if test="fPid != null">f_pid = #{fPid},</if>
- <if test="fLineno != null">f_lineno = #{fLineno},</if>
- <if test="fCorpid != null">f_corpid = #{fCorpid},</if>
- <if test="fFeeid != null">f_feeid = #{fFeeid},</if>
- <if test="fFeeUnitid != null">f_feeUnitid = #{fFeeUnitid},</if>
- <if test="fQty != null">f_qty = #{fQty},</if>
- <if test="fUnitprice != null">f_unitprice = #{fUnitprice},</if>
- <if test="fAmount != null">f_amount = #{fAmount},</if>
- <if test="fCurrency != null">f_currency = #{fCurrency},</if>
- <if test="fExrate != null">f_exrate = #{fExrate},</if>
- <if test="fTaxrate != null">f_taxrate = #{fTaxrate},</if>
- <if test="fDc != null">f_dc = #{fDc},</if>
- <if test="fBillstatus != null">f_billstatus = #{fBillstatus},</if>
- <if test="fAccamount != null">f_accamount = #{fAccamount},</if>
- <if test="fStatementNo != null">f_statement_no = #{fStatementNo},</if>
- <if test="fStlamount != null">f_stlamount = #{fStlamount},</if>
- <if test="fInvnos != null">f_invnos = #{fInvnos},</if>
- <if test="fAccamountDate != null">f_accamount_date = #{fAccamountDate},</if>
- <if test="fInvamount != null">f_invamount = #{fInvamount},</if>
- <if test="fStlamountNo != null">f_stlamount_no = #{fStlamountNo},</if>
- <if test="fAskamount != null">f_askamount = #{fAskamount},</if>
- <if test="fStlamountDate != null">f_stlamount_date = #{fStlamountDate},</if>
- <if test="fStatus != null">f_status = #{fStatus},</if>
- <if test="delFlag != null">del_flag = #{delFlag},</if>
- <if test="createBy != null">create_by = #{createBy},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateBy != null">update_by = #{updateBy},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- <if test="remark != null">remark = #{remark},</if>
- </trim>
- where f_id = #{fId}
- </update>
- <delete id="deleteTWarehousebillsfeesById" parameterType="Long">
- delete from t_warehousebillsfees where f_id = #{fId}
- </delete>
- <delete id="deleteByFPid" parameterType="Long">
- delete from t_warehousebillsfees where f_pid = #{fId}
- </delete>
- <delete id="deleteTWarehousebillsfeesByIds" parameterType="String">
- delete from t_warehousebillsfees where f_id in
- <foreach item="fId" collection="array" open="(" separator="," close=")">
- #{fId}
- </foreach>
- </delete>
- </mapper>
|