FTmsaccbillsitemsMapper.xml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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.orderManagement.finance.mapper.FTmsaccbillsitemsMapper">
  6. <resultMap type="FTmsaccbillsitems" id="FTmsaccbillsitemsResult">
  7. <result property="id" column="id" />
  8. <result property="fPid" column="f_pid" />
  9. <result property="fActId" column="f_act_id" />
  10. <result property="fSrcid" column="f_srcid" />
  11. <result property="orderNo" column="order_no" />
  12. <result property="fSrcpid" column="f_srcpid" />
  13. <result property="dc" column="dc" />
  14. <result property="fSrcdc" column="f_srcdc" />
  15. <result property="amtOrg" column="amt_org" />
  16. <result property="fLineno" column="f_lineno" />
  17. <result property="amtStl" column="amt_stl" />
  18. <result property="fFeeid" column="f_feeid" />
  19. <result property="amtBlc" column="amt_blc" />
  20. <result property="amtCur" column="amt_cur" />
  21. <result property="delFlag" column="del_flag" />
  22. <result property="fAmt" column="f_amt" />
  23. <result property="createBy" column="create_by" />
  24. <result property="fAmtdr" column="f_amtdr" />
  25. <result property="createTime" column="create_time" />
  26. <result property="fAmtStl" column="f_amt_stl" />
  27. <result property="updateBy" column="update_by" />
  28. <result property="fAmtBlc" column="f_amt_blc" />
  29. <result property="updateTime" column="update_time" />
  30. <result property="fStatus" column="f_status" />
  31. <result property="fRemarks" column="f_remarks" />
  32. </resultMap>
  33. <sql id="selectFTmsaccbillsitemsVo">
  34. select id, f_pid, f_act_id, f_srcid, order_no, f_srcpid, dc, f_srcdc, amt_org, f_lineno, amt_stl, f_feeid, amt_blc, amt_cur, del_flag, f_amt, create_by, f_amtdr, create_time, f_amt_stl, update_by, f_amt_blc, update_time, f_status, f_remarks from F_TMSACCBILLSITEMS
  35. </sql>
  36. <select id="selectFTmsaccbillsitemsList" parameterType="FTmsaccbillsitems" resultMap="FTmsaccbillsitemsResult">
  37. <include refid="selectFTmsaccbillsitemsVo"/>
  38. <where>
  39. <if test="fPid != null "> and f_pid = #{fPid}</if>
  40. <if test="fActId != null "> and f_act_id = #{fActId}</if>
  41. <if test="fSrcid != null "> and f_srcid = #{fSrcid}</if>
  42. <if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
  43. <if test="fSrcpid != null "> and f_srcpid = #{fSrcpid}</if>
  44. <if test="dc != null and dc != ''"> and dc = #{dc}</if>
  45. <if test="fSrcdc != null and fSrcdc != ''"> and f_srcdc = #{fSrcdc}</if>
  46. <if test="amtOrg != null "> and amt_org = #{amtOrg}</if>
  47. <if test="fLineno != null "> and f_lineno = #{fLineno}</if>
  48. <if test="amtStl != null "> and amt_stl = #{amtStl}</if>
  49. <if test="fFeeid != null "> and f_feeid = #{fFeeid}</if>
  50. <if test="amtBlc != null "> and amt_blc = #{amtBlc}</if>
  51. <if test="amtCur != null "> and amt_cur = #{amtCur}</if>
  52. <if test="fAmt != null "> and f_amt = #{fAmt}</if>
  53. <if test="fAmtdr != null "> and f_amtdr = #{fAmtdr}</if>
  54. <if test="fAmtStl != null "> and f_amt_stl = #{fAmtStl}</if>
  55. <if test="fAmtBlc != null "> and f_amt_blc = #{fAmtBlc}</if>
  56. <if test="fStatus != null and fStatus != ''"> and f_status = #{fStatus}</if>
  57. <if test="fRemarks != null and fRemarks != ''"> and f_remarks = #{fRemarks}</if>
  58. </where>
  59. </select>
  60. <select id="selectFTmsaccbillsitemsById" parameterType="Long" resultMap="FTmsaccbillsitemsResult">
  61. <include refid="selectFTmsaccbillsitemsVo"/>
  62. where id = #{id}
  63. </select>
  64. <insert id="insertFTmsaccbillsitems" parameterType="FTmsaccbillsitems" useGeneratedKeys="true" keyProperty="id">
  65. insert into F_TMSACCBILLSITEMS
  66. <trim prefix="(" suffix=")" suffixOverrides=",">
  67. <if test="fPid != null">f_pid,</if>
  68. <if test="fActId != null">f_act_id,</if>
  69. <if test="fSrcid != null">f_srcid,</if>
  70. <if test="orderNo != null">order_no,</if>
  71. <if test="fSrcpid != null">f_srcpid,</if>
  72. <if test="dc != null">dc,</if>
  73. <if test="fSrcdc != null">f_srcdc,</if>
  74. <if test="amtOrg != null">amt_org,</if>
  75. <if test="fLineno != null">f_lineno,</if>
  76. <if test="amtStl != null">amt_stl,</if>
  77. <if test="fFeeid != null">f_feeid,</if>
  78. <if test="amtBlc != null">amt_blc,</if>
  79. <if test="amtCur != null">amt_cur,</if>
  80. <if test="delFlag != null">del_flag,</if>
  81. <if test="fAmt != null">f_amt,</if>
  82. <if test="createBy != null">create_by,</if>
  83. <if test="fAmtdr != null">f_amtdr,</if>
  84. <if test="createTime != null">create_time,</if>
  85. <if test="fAmtStl != null">f_amt_stl,</if>
  86. <if test="updateBy != null">update_by,</if>
  87. <if test="fAmtBlc != null">f_amt_blc,</if>
  88. <if test="updateTime != null">update_time,</if>
  89. <if test="fStatus != null">f_status,</if>
  90. <if test="fRemarks != null">f_remarks,</if>
  91. </trim>
  92. <trim prefix="values (" suffix=")" suffixOverrides=",">
  93. <if test="fPid != null">#{fPid},</if>
  94. <if test="fActId != null">#{fActId},</if>
  95. <if test="fSrcid != null">#{fSrcid},</if>
  96. <if test="orderNo != null">#{orderNo},</if>
  97. <if test="fSrcpid != null">#{fSrcpid},</if>
  98. <if test="dc != null">#{dc},</if>
  99. <if test="fSrcdc != null">#{fSrcdc},</if>
  100. <if test="amtOrg != null">#{amtOrg},</if>
  101. <if test="fLineno != null">#{fLineno},</if>
  102. <if test="amtStl != null">#{amtStl},</if>
  103. <if test="fFeeid != null">#{fFeeid},</if>
  104. <if test="amtBlc != null">#{amtBlc},</if>
  105. <if test="amtCur != null">#{amtCur},</if>
  106. <if test="delFlag != null">#{delFlag},</if>
  107. <if test="fAmt != null">#{fAmt},</if>
  108. <if test="createBy != null">#{createBy},</if>
  109. <if test="fAmtdr != null">#{fAmtdr},</if>
  110. <if test="createTime != null">#{createTime},</if>
  111. <if test="fAmtStl != null">#{fAmtStl},</if>
  112. <if test="updateBy != null">#{updateBy},</if>
  113. <if test="fAmtBlc != null">#{fAmtBlc},</if>
  114. <if test="updateTime != null">#{updateTime},</if>
  115. <if test="fStatus != null">#{fStatus},</if>
  116. <if test="fRemarks != null">#{fRemarks},</if>
  117. </trim>
  118. </insert>
  119. <update id="updateFTmsaccbillsitems" parameterType="FTmsaccbillsitems">
  120. update F_TMSACCBILLSITEMS
  121. <trim prefix="SET" suffixOverrides=",">
  122. <if test="fPid != null">f_pid = #{fPid},</if>
  123. <if test="fActId != null">f_act_id = #{fActId},</if>
  124. <if test="fSrcid != null">f_srcid = #{fSrcid},</if>
  125. <if test="orderNo != null">order_no = #{orderNo},</if>
  126. <if test="fSrcpid != null">f_srcpid = #{fSrcpid},</if>
  127. <if test="dc != null">dc = #{dc},</if>
  128. <if test="fSrcdc != null">f_srcdc = #{fSrcdc},</if>
  129. <if test="amtOrg != null">amt_org = #{amtOrg},</if>
  130. <if test="fLineno != null">f_lineno = #{fLineno},</if>
  131. <if test="amtStl != null">amt_stl = #{amtStl},</if>
  132. <if test="fFeeid != null">f_feeid = #{fFeeid},</if>
  133. <if test="amtBlc != null">amt_blc = #{amtBlc},</if>
  134. <if test="amtCur != null">amt_cur = #{amtCur},</if>
  135. <if test="delFlag != null">del_flag = #{delFlag},</if>
  136. <if test="fAmt != null">f_amt = #{fAmt},</if>
  137. <if test="createBy != null">create_by = #{createBy},</if>
  138. <if test="fAmtdr != null">f_amtdr = #{fAmtdr},</if>
  139. <if test="createTime != null">create_time = #{createTime},</if>
  140. <if test="fAmtStl != null">f_amt_stl = #{fAmtStl},</if>
  141. <if test="updateBy != null">update_by = #{updateBy},</if>
  142. <if test="fAmtBlc != null">f_amt_blc = #{fAmtBlc},</if>
  143. <if test="updateTime != null">update_time = #{updateTime},</if>
  144. <if test="fStatus != null">f_status = #{fStatus},</if>
  145. <if test="fRemarks != null">f_remarks = #{fRemarks},</if>
  146. </trim>
  147. where id = #{id}
  148. </update>
  149. <delete id="deleteFTmsaccbillsitemsById" parameterType="Long">
  150. delete from F_TMSACCBILLSITEMS where id = #{id}
  151. </delete>
  152. <delete id="deleteFTmsaccbillsitemsByIds" parameterType="String">
  153. delete from F_TMSACCBILLSITEMS where id in
  154. <foreach item="id" collection="array" open="(" separator="," close=")">
  155. #{id}
  156. </foreach>
  157. </delete>
  158. <delete id="deleteByFPid" parameterType="Long">
  159. delete from F_TMSACCBILLSITEMS where f_srcid = #{fId}
  160. </delete>
  161. <update id="tfeeDoFollowUpdate" parameterType="Long">
  162. update
  163. F_TMSACCBILLSITEMS
  164. set f_status = #{fettle}
  165. where
  166. f_srcid = #{fPid}
  167. </update>
  168. </mapper>