TWarehousebillsfeesMapper.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.warehouseBusiness.mapper.TWarehousebillsfeesMapper">
  6. <resultMap type="TWarehousebillsfees" id="TWarehousebillsfeesResult">
  7. <result property="fId" column="f_id"/>
  8. <result property="fPid" column="f_pid"/>
  9. <result property="fLineno" column="f_lineno"/>
  10. <result property="fCorpid" column="f_corpid"/>
  11. <result property="fFeeid" column="f_feeid"/>
  12. <result property="fFeeunitid" column="f_feeUnitid"/>
  13. <result property="fQty" column="f_qty"/>
  14. <result property="fUnitprice" column="f_unitprice"/>
  15. <result property="fAmount" column="f_amount"/>
  16. <result property="fCurrency" column="f_currency"/>
  17. <result property="fExrate" column="f_exrate"/>
  18. <result property="fTaxrate" column="f_taxrate"/>
  19. <result property="fDc" column="f_dc"/>
  20. <result property="fBillstatus" column="f_billstatus"/>
  21. <result property="fAccamount" column="f_accamount"/>
  22. <result property="fStatementNo" column="f_statement_no"/>
  23. <result property="fStlamount" column="f_stlamount"/>
  24. <result property="fInvnos" column="f_invnos"/>
  25. <result property="fAccamountDate" column="f_accamount_date"/>
  26. <result property="fInvamount" column="f_invamount"/>
  27. <result property="fStlamountNo" column="f_stlamount_no"/>
  28. <result property="fAskamount" column="f_askamount"/>
  29. <result property="fStlamountDate" column="f_stlamount_date"/>
  30. <result property="fStatus" column="f_status"/>
  31. <result property="delFlag" column="del_flag"/>
  32. <result property="createBy" column="create_by"/>
  33. <result property="createTime" column="create_time"/>
  34. <result property="updateBy" column="update_by"/>
  35. <result property="updateTime" column="update_time"/>
  36. <result property="remark" column="remark"/>
  37. </resultMap>
  38. <sql id="selectTWarehousebillsfeesVo">
  39. 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
  40. </sql>
  41. <select id="selectTWarehousebillsfeesList" parameterType="TWarehousebillsfees"
  42. resultMap="TWarehousebillsfeesResult">
  43. <include refid="selectTWarehousebillsfeesVo"/>
  44. <where>
  45. <if test="fPid != null ">and f_pid = #{fPid}</if>
  46. <if test="fLineno != null ">and f_lineno = #{fLineno}</if>
  47. <if test="fCorpid != null ">and f_corpid = #{fCorpid}</if>
  48. <if test="fFeeid != null ">and f_feeid = #{fFeeid}</if>
  49. <if test="fFeeunitid != null ">and f_feeUnitid = #{fFeeunitid}</if>
  50. <if test="fQty != null ">and f_qty = #{fQty}</if>
  51. <if test="fUnitprice != null ">and f_unitprice = #{fUnitprice}</if>
  52. <if test="fAmount != null ">and f_amount = #{fAmount}</if>
  53. <if test="fCurrency != null and fCurrency != ''">and f_currency = #{fCurrency}</if>
  54. <if test="fExrate != null ">and f_exrate = #{fExrate}</if>
  55. <if test="fTaxrate != null ">and f_taxrate = #{fTaxrate}</if>
  56. <if test="fDc != null and fDc != ''">and f_dc = #{fDc}</if>
  57. <if test="fBillstatus != null and fBillstatus != ''">and f_billstatus = #{fBillstatus}</if>
  58. <if test="fAccamount != null ">and f_accamount = #{fAccamount}</if>
  59. <if test="fStatementNo != null and fStatementNo != ''">and f_statement_no = #{fStatementNo}</if>
  60. <if test="fStlamount != null ">and f_stlamount = #{fStlamount}</if>
  61. <if test="fInvnos != null and fInvnos != ''">and f_invnos = #{fInvnos}</if>
  62. <if test="fAccamountDate != null ">and f_accamount_date = #{fAccamountDate}</if>
  63. <if test="fInvamount != null ">and f_invamount = #{fInvamount}</if>
  64. <if test="fStlamountNo != null and fStlamountNo != ''">and f_stlamount_no = #{fStlamountNo}</if>
  65. <if test="fAskamount != null ">and f_askamount = #{fAskamount}</if>
  66. <if test="fStlamountDate != null ">and f_stlamount_date = #{fStlamountDate}</if>
  67. <if test="fStatus != null and fStatus != ''">and f_status = #{fStatus}</if>
  68. </where>
  69. </select>
  70. <select id="selectTWarehousebillsfeesById" parameterType="Long" resultMap="TWarehousebillsfeesResult">
  71. <include refid="selectTWarehousebillsfeesVo"/>
  72. where f_id = #{fId}
  73. </select>
  74. <insert id="insertTWarehousebillsfees" parameterType="TWarehousebillsfees" useGeneratedKeys="true"
  75. keyProperty="fId">
  76. insert into t_warehousebillsfees
  77. <trim prefix="(" suffix=")" suffixOverrides=",">
  78. <if test="fPid != null">f_pid,</if>
  79. <if test="fLineno != null">f_lineno,</if>
  80. <if test="fCorpid != null">f_corpid,</if>
  81. <if test="fFeeid != null">f_feeid,</if>
  82. <if test="fFeeunitid != null">f_feeUnitid,</if>
  83. <if test="fQty != null">f_qty,</if>
  84. <if test="fUnitprice != null">f_unitprice,</if>
  85. <if test="fAmount != null">f_amount,</if>
  86. <if test="fCurrency != null">f_currency,</if>
  87. <if test="fExrate != null">f_exrate,</if>
  88. <if test="fTaxrate != null">f_taxrate,</if>
  89. <if test="fDc != null">f_dc,</if>
  90. <if test="fBillstatus != null">f_billstatus,</if>
  91. <if test="fAccamount != null">f_accamount,</if>
  92. <if test="fStatementNo != null">f_statement_no,</if>
  93. <if test="fStlamount != null">f_stlamount,</if>
  94. <if test="fInvnos != null">f_invnos,</if>
  95. <if test="fAccamountDate != null">f_accamount_date,</if>
  96. <if test="fInvamount != null">f_invamount,</if>
  97. <if test="fStlamountNo != null">f_stlamount_no,</if>
  98. <if test="fAskamount != null">f_askamount,</if>
  99. <if test="fStlamountDate != null">f_stlamount_date,</if>
  100. <if test="fStatus != null">f_status,</if>
  101. <if test="delFlag != null">del_flag,</if>
  102. <if test="createBy != null">create_by,</if>
  103. <if test="createTime != null">create_time,</if>
  104. <if test="updateBy != null">update_by,</if>
  105. <if test="updateTime != null">update_time,</if>
  106. <if test="remark != null">remark,</if>
  107. </trim>
  108. <trim prefix="values (" suffix=")" suffixOverrides=",">
  109. <if test="fPid != null">#{fPid},</if>
  110. <if test="fLineno != null">#{fLineno},</if>
  111. <if test="fCorpid != null">#{fCorpid},</if>
  112. <if test="fFeeid != null">#{fFeeid},</if>
  113. <if test="fFeeUnitid != null">#{fFeeUnitid},</if>
  114. <if test="fQty != null">#{fQty},</if>
  115. <if test="fUnitprice != null">#{fUnitprice},</if>
  116. <if test="fAmount != null">#{fAmount},</if>
  117. <if test="fCurrency != null">#{fCurrency},</if>
  118. <if test="fExrate != null">#{fExrate},</if>
  119. <if test="fTaxrate != null">#{fTaxrate},</if>
  120. <if test="fDc != null">#{fDc},</if>
  121. <if test="fBillstatus != null">#{fBillstatus},</if>
  122. <if test="fAccamount != null">#{fAccamount},</if>
  123. <if test="fStatementNo != null">#{fStatementNo},</if>
  124. <if test="fStlamount != null">#{fStlamount},</if>
  125. <if test="fInvnos != null">#{fInvnos},</if>
  126. <if test="fAccamountDate != null">#{fAccamountDate},</if>
  127. <if test="fInvamount != null">#{fInvamount},</if>
  128. <if test="fStlamountNo != null">#{fStlamountNo},</if>
  129. <if test="fAskamount != null">#{fAskamount},</if>
  130. <if test="fStlamountDate != null">#{fStlamountDate},</if>
  131. <if test="fStatus != null">#{fStatus},</if>
  132. <if test="delFlag != null">#{delFlag},</if>
  133. <if test="createBy != null">#{createBy},</if>
  134. <if test="createTime != null">#{createTime},</if>
  135. <if test="updateBy != null">#{updateBy},</if>
  136. <if test="updateTime != null">#{updateTime},</if>
  137. <if test="remark != null">#{remark},</if>
  138. </trim>
  139. </insert>
  140. <update id="updateTWarehousebillsfees" parameterType="TWarehousebillsfees">
  141. update t_warehousebillsfees
  142. <trim prefix="SET" suffixOverrides=",">
  143. <if test="fPid != null">f_pid = #{fPid},</if>
  144. <if test="fLineno != null">f_lineno = #{fLineno},</if>
  145. <if test="fCorpid != null">f_corpid = #{fCorpid},</if>
  146. <if test="fFeeid != null">f_feeid = #{fFeeid},</if>
  147. <if test="fFeeUnitid != null">f_feeUnitid = #{fFeeUnitid},</if>
  148. <if test="fQty != null">f_qty = #{fQty},</if>
  149. <if test="fUnitprice != null">f_unitprice = #{fUnitprice},</if>
  150. <if test="fAmount != null">f_amount = #{fAmount},</if>
  151. <if test="fCurrency != null">f_currency = #{fCurrency},</if>
  152. <if test="fExrate != null">f_exrate = #{fExrate},</if>
  153. <if test="fTaxrate != null">f_taxrate = #{fTaxrate},</if>
  154. <if test="fDc != null">f_dc = #{fDc},</if>
  155. <if test="fBillstatus != null">f_billstatus = #{fBillstatus},</if>
  156. <if test="fAccamount != null">f_accamount = #{fAccamount},</if>
  157. <if test="fStatementNo != null">f_statement_no = #{fStatementNo},</if>
  158. <if test="fStlamount != null">f_stlamount = #{fStlamount},</if>
  159. <if test="fInvnos != null">f_invnos = #{fInvnos},</if>
  160. <if test="fAccamountDate != null">f_accamount_date = #{fAccamountDate},</if>
  161. <if test="fInvamount != null">f_invamount = #{fInvamount},</if>
  162. <if test="fStlamountNo != null">f_stlamount_no = #{fStlamountNo},</if>
  163. <if test="fAskamount != null">f_askamount = #{fAskamount},</if>
  164. <if test="fStlamountDate != null">f_stlamount_date = #{fStlamountDate},</if>
  165. <if test="fStatus != null">f_status = #{fStatus},</if>
  166. <if test="delFlag != null">del_flag = #{delFlag},</if>
  167. <if test="createBy != null">create_by = #{createBy},</if>
  168. <if test="createTime != null">create_time = #{createTime},</if>
  169. <if test="updateBy != null">update_by = #{updateBy},</if>
  170. <if test="updateTime != null">update_time = #{updateTime},</if>
  171. <if test="remark != null">remark = #{remark},</if>
  172. </trim>
  173. where f_id = #{fId}
  174. </update>
  175. <delete id="deleteTWarehousebillsfeesById" parameterType="Long">
  176. delete from t_warehousebillsfees where f_id = #{fId}
  177. </delete>
  178. <delete id="deleteByFPid" parameterType="Long">
  179. delete from t_warehousebillsfees where f_pid = #{fId}
  180. </delete>
  181. <delete id="deleteTWarehousebillsfeesByIds" parameterType="String">
  182. delete from t_warehousebillsfees where f_id in
  183. <foreach item="fId" collection="array" open="(" separator="," close=")">
  184. #{fId}
  185. </foreach>
  186. </delete>
  187. </mapper>