PaybalancedetailMapper.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.usoftchina.saas.money.mapper.PaybalancedetailMapper" >
  4. <resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Paybalancedetail" >
  5. <id column="pbd_id" property="id" jdbcType="INTEGER" />
  6. <result column="pbd_pbid" property="pbd_pbid" jdbcType="INTEGER" />
  7. <result column="pbd_detno" property="pbd_detno" jdbcType="INTEGER" />
  8. <result column="pbd_ym" property="pbd_ym" jdbcType="INTEGER" />
  9. <result column="pbd_sild" property="pbd_sild" jdbcType="INTEGER" />
  10. <result column="pbd_slcode" property="pbd_slcode" jdbcType="VARCHAR" />
  11. <result column="pbd_slkind" property="pbd_slkind" jdbcType="VARCHAR" />
  12. <result column="pbd_sldate" property="pbd_sldate" jdbcType="TIMESTAMP" />
  13. <result column="pbd_amount" property="pbd_amount" jdbcType="DOUBLE" />
  14. <result column="pbd_nowbalance" property="pbd_nowbalance" jdbcType="DOUBLE" />
  15. <result column="pbd_remark" property="pbd_remark" jdbcType="VARCHAR" />
  16. <result column="companyId" property="companyId" jdbcType="INTEGER" />
  17. <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
  18. <result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
  19. <result column="pbd_text1" property="pbd_text1" jdbcType="VARCHAR" />
  20. <result column="pbd_text2" property="pbd_text2" jdbcType="VARCHAR" />
  21. <result column="pbd_text3" property="pbd_text3" jdbcType="VARCHAR" />
  22. <result column="pbd_text4" property="pbd_text4" jdbcType="VARCHAR" />
  23. <result column="pbd_text5" property="pbd_text5" jdbcType="VARCHAR" />
  24. </resultMap>
  25. <sql id="Base_Column_List" >
  26. pbd_id, pbd_pbid, pbd_detno, pbd_ym, pbd_sild, pbd_slcode, pbd_slkind, pbd_sldate,
  27. pbd_amount, pbd_nowbalance, pbd_remark, companyId, updaterId, updatedate, pbd_text1,
  28. pbd_text2, pbd_text3, pbd_text4, pbd_text5
  29. </sql>
  30. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  31. select
  32. <include refid="Base_Column_List" />
  33. from paybalancedetail
  34. where pbd_pbid = #{id,jdbcType=INTEGER}
  35. </select>
  36. <delete id="deleteItem" parameterType="java.lang.Integer" >
  37. delete from paybalancedetail
  38. where pbd_id = #{id,jdbcType=INTEGER}
  39. </delete>
  40. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  41. delete from paybalancedetail
  42. where rbd_rbid = #{id,jdbcType=INTEGER}
  43. </delete>
  44. <insert id="insert" parameterType="com.usoftchina.saas.money.po.Paybalancedetail" >
  45. insert into paybalancedetail (pbd_id, pbd_pbid, pbd_detno,
  46. pbd_ym, pbd_sild, pbd_slcode,
  47. pbd_slkind, pbd_sldate, pbd_amount,
  48. pbd_nowbalance, pbd_remark, companyId,
  49. updaterId, updatedate, pbd_text1,
  50. pbd_text2, pbd_text3, pbd_text4,
  51. pbd_text5)
  52. values (#{id,jdbcType=INTEGER}, #{pbd_pbid,jdbcType=INTEGER}, #{pbd_detno,jdbcType=INTEGER},
  53. #{pbd_ym,jdbcType=INTEGER}, #{pbd_sild,jdbcType=INTEGER}, #{pbd_slcode,jdbcType=VARCHAR},
  54. #{pbd_slkind,jdbcType=VARCHAR}, #{pbd_sldate,jdbcType=TIMESTAMP}, #{pbd_amount,jdbcType=DOUBLE},
  55. #{pbd_nowbalance,jdbcType=DOUBLE}, #{pbd_remark,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER},
  56. #{updaterId,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}, #{pbd_text1,jdbcType=VARCHAR},
  57. #{pbd_text2,jdbcType=VARCHAR}, #{pbd_text3,jdbcType=VARCHAR}, #{pbd_text4,jdbcType=VARCHAR},
  58. #{pbd_text5,jdbcType=VARCHAR})
  59. </insert>
  60. <insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Paybalancedetail" >
  61. insert into paybalancedetail
  62. <trim prefix="(" suffix=")" suffixOverrides="," >
  63. <if test="pbd_pbid != null" >
  64. pbd_pbid,
  65. </if>
  66. <if test="pbd_detno != null" >
  67. pbd_detno,
  68. </if>
  69. <if test="pbd_ym != null" >
  70. pbd_ym,
  71. </if>
  72. <if test="pbd_sild != null" >
  73. pbd_sild,
  74. </if>
  75. <if test="pbd_slcode != null" >
  76. pbd_slcode,
  77. </if>
  78. <if test="pbd_slkind != null" >
  79. pbd_slkind,
  80. </if>
  81. <if test="pbd_sldate != null" >
  82. pbd_sldate,
  83. </if>
  84. <if test="pbd_amount != null" >
  85. pbd_amount,
  86. </if>
  87. <if test="pbd_nowbalance != null" >
  88. pbd_nowbalance,
  89. </if>
  90. <if test="pbd_remark != null" >
  91. pbd_remark,
  92. </if>
  93. <if test="companyId != null" >
  94. companyId,
  95. </if>
  96. <if test="updaterId != null" >
  97. updaterId,
  98. </if>
  99. <if test="updatedate != null" >
  100. updatedate,
  101. </if>
  102. <if test="pbd_text1 != null" >
  103. pbd_text1,
  104. </if>
  105. <if test="pbd_text2 != null" >
  106. pbd_text2,
  107. </if>
  108. <if test="pbd_text3 != null" >
  109. pbd_text3,
  110. </if>
  111. <if test="pbd_text4 != null" >
  112. pbd_text4,
  113. </if>
  114. <if test="pbd_text5 != null" >
  115. pbd_text5,
  116. </if>
  117. </trim>
  118. <trim prefix="values (" suffix=")" suffixOverrides="," >
  119. <if test="pbd_pbid != null" >
  120. #{pbd_pbid,jdbcType=INTEGER},
  121. </if>
  122. <if test="pbd_detno != null" >
  123. #{pbd_detno,jdbcType=INTEGER},
  124. </if>
  125. <if test="pbd_ym != null" >
  126. #{pbd_ym,jdbcType=INTEGER},
  127. </if>
  128. <if test="pbd_sild != null" >
  129. #{pbd_sild,jdbcType=INTEGER},
  130. </if>
  131. <if test="pbd_slcode != null" >
  132. #{pbd_slcode,jdbcType=VARCHAR},
  133. </if>
  134. <if test="pbd_slkind != null" >
  135. #{pbd_slkind,jdbcType=VARCHAR},
  136. </if>
  137. <if test="pbd_sldate != null" >
  138. #{pbd_sldate,jdbcType=TIMESTAMP},
  139. </if>
  140. <if test="pbd_amount != null" >
  141. #{pbd_amount,jdbcType=DOUBLE},
  142. </if>
  143. <if test="pbd_nowbalance != null" >
  144. #{pbd_nowbalance,jdbcType=DOUBLE},
  145. </if>
  146. <if test="pbd_remark != null" >
  147. #{pbd_remark,jdbcType=VARCHAR},
  148. </if>
  149. <if test="companyId != null" >
  150. #{companyId,jdbcType=INTEGER},
  151. </if>
  152. <if test="updaterId != null" >
  153. #{updaterId,jdbcType=INTEGER},
  154. </if>
  155. <if test="updatedate != null" >
  156. #{updatedate,jdbcType=TIMESTAMP},
  157. </if>
  158. <if test="pbd_text1 != null" >
  159. #{pbd_text1,jdbcType=VARCHAR},
  160. </if>
  161. <if test="pbd_text2 != null" >
  162. #{pbd_text2,jdbcType=VARCHAR},
  163. </if>
  164. <if test="pbd_text3 != null" >
  165. #{pbd_text3,jdbcType=VARCHAR},
  166. </if>
  167. <if test="pbd_text4 != null" >
  168. #{pbd_text4,jdbcType=VARCHAR},
  169. </if>
  170. <if test="pbd_text5 != null" >
  171. #{pbd_text5,jdbcType=VARCHAR},
  172. </if>
  173. </trim>
  174. </insert>
  175. <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Paybalancedetail" >
  176. update paybalancedetail
  177. <set >
  178. <if test="pbd_pbid != null" >
  179. pbd_pbid = #{pbd_pbid,jdbcType=INTEGER},
  180. </if>
  181. <if test="pbd_detno != null" >
  182. pbd_detno = #{pbd_detno,jdbcType=INTEGER},
  183. </if>
  184. <if test="pbd_ym != null" >
  185. pbd_ym = #{pbd_ym,jdbcType=INTEGER},
  186. </if>
  187. <if test="pbd_sild != null" >
  188. pbd_sild = #{pbd_sild,jdbcType=INTEGER},
  189. </if>
  190. <if test="pbd_slcode != null" >
  191. pbd_slcode = #{pbd_slcode,jdbcType=VARCHAR},
  192. </if>
  193. <if test="pbd_slkind != null" >
  194. pbd_slkind = #{pbd_slkind,jdbcType=VARCHAR},
  195. </if>
  196. <if test="pbd_sldate != null" >
  197. pbd_sldate = #{pbd_sldate,jdbcType=TIMESTAMP},
  198. </if>
  199. <if test="pbd_amount != null" >
  200. pbd_amount = #{pbd_amount,jdbcType=DOUBLE},
  201. </if>
  202. <if test="pbd_nowbalance != null" >
  203. pbd_nowbalance = #{pbd_nowbalance,jdbcType=DOUBLE},
  204. </if>
  205. <if test="pbd_remark != null" >
  206. pbd_remark = #{pbd_remark,jdbcType=VARCHAR},
  207. </if>
  208. <if test="companyId != null" >
  209. companyId = #{companyId,jdbcType=INTEGER},
  210. </if>
  211. <if test="updaterId != null" >
  212. updaterId = #{updaterId,jdbcType=INTEGER},
  213. </if>
  214. <if test="updatedate != null" >
  215. updatedate = #{updatedate,jdbcType=TIMESTAMP},
  216. </if>
  217. <if test="pbd_text1 != null" >
  218. pbd_text1 = #{pbd_text1,jdbcType=VARCHAR},
  219. </if>
  220. <if test="pbd_text2 != null" >
  221. pbd_text2 = #{pbd_text2,jdbcType=VARCHAR},
  222. </if>
  223. <if test="pbd_text3 != null" >
  224. pbd_text3 = #{pbd_text3,jdbcType=VARCHAR},
  225. </if>
  226. <if test="pbd_text4 != null" >
  227. pbd_text4 = #{pbd_text4,jdbcType=VARCHAR},
  228. </if>
  229. <if test="pbd_text5 != null" >
  230. pbd_text5 = #{pbd_text5,jdbcType=VARCHAR},
  231. </if>
  232. </set>
  233. where pbd_id = #{id,jdbcType=INTEGER}
  234. </update>
  235. </mapper>