TgjjKjhzbMapper2.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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.sooka.mapper.TgjjKjhzbMappe2r">
  6. <sql id="global_name">
  7. ID,create_time,cd_time,cd_batch,cd_operation,cd_source,
  8. </sql>
  9. <sql id="global_value">
  10. #{ID},now(),#{cd_time},#{cd_batch},#{cd_operation},#{cd_source},
  11. </sql>
  12. <sql id="update_sql">
  13. create_time = now(),cd_batch = #{cd_batch},cd_operation = #{cd_operation},cd_source =#{cd_source},
  14. </sql>
  15. <resultMap type="com.sooka.model.bo.TgjjKjhzb" id="TgjjKjhzbResult">
  16. </resultMap>
  17. <parameterMap id="TgjjKjhzb" type="com.sooka.model.bo.TgjjKjhzb"></parameterMap>
  18. <sql id="selectTgjjKjhzbVo">
  19. select ID, ZXBH, BBQC, ZFGJJCK, ZZSYCK, YSLX, QTYSK, WTDK, GRDK, XMDK, YQDK, GRYQDK, XMYQDK, GJZQ, ZFGJJ, YFLX, ZXYFK, ZFGJJGLZXGLFY, CSLZFJSBCZJZXYF, QTYFK, DKFXZB, GRDKFXZB, XMDKFXZB, ZZSY, ZZSYFP, TQDKFXZB, TQGRDKFXZB, TQXMDKFXZB, TQGJJZXGLFY, CSLZZFJSBCZJ, DFPZZSY, YWSR, ZFGJJLXSR, ZZSYLXSR, WTDKLXSR, GRDKLXSR, XMDKLXSR, GJZQLXSR, QTSR, GRDKYQFXSR, XMDKYQFXSR, YWZC, ZFGJJLXZC, ZFGJJGJSXFZC, WTDKSXFZC, GRDKSXFZC, XMDKSXFZC, XMDKQTZC, QTZC, LAST_UPDATE_TIME lastUpdateTime, CLLX from tgjj_kjhzb
  20. </sql>
  21. <select id="selectTgjjKjhzbList" parameterMap="TgjjKjhzb" resultMap="TgjjKjhzbResult">
  22. <include refid="selectTgjjKjhzbVo"/>
  23. <where>
  24. <if test="ZXBH != null and ZXBH != ''"> and ZXBH = #{ZXBH}</if>
  25. <if test="BBQC != null and BBQC != ''"> and BBQC = #{BBQC}</if>
  26. <if test="ZFGJJCK != null "> and ZFGJJCK = #{ZFGJJCK}</if>
  27. <if test="ZZSYCK != null "> and ZZSYCK = #{ZZSYCK}</if>
  28. <if test="YSLX != null "> and YSLX = #{YSLX}</if>
  29. <if test="QTYSK != null "> and QTYSK = #{QTYSK}</if>
  30. <if test="WTDK != null "> and WTDK = #{WTDK}</if>
  31. <if test="GRDK != null "> and GRDK = #{GRDK}</if>
  32. <if test="XMDK != null "> and XMDK = #{XMDK}</if>
  33. <if test="YQDK != null "> and YQDK = #{YQDK}</if>
  34. <if test="GRYQDK != null "> and GRYQDK = #{GRYQDK}</if>
  35. <if test="XMYQDK != null "> and XMYQDK = #{XMYQDK}</if>
  36. <if test="GJZQ != null "> and GJZQ = #{GJZQ}</if>
  37. <if test="ZFGJJ != null "> and ZFGJJ = #{ZFGJJ}</if>
  38. <if test="YFLX != null "> and YFLX = #{YFLX}</if>
  39. <if test="ZXYFK != null "> and ZXYFK = #{ZXYFK}</if>
  40. <if test="ZFGJJGLZXGLFY != null "> and ZFGJJGLZXGLFY = #{ZFGJJGLZXGLFY}</if>
  41. <if test="CSLZFJSBCZJZXYF != null "> and CSLZFJSBCZJZXYF = #{CSLZFJSBCZJZXYF}</if>
  42. <if test="QTYFK != null "> and QTYFK = #{QTYFK}</if>
  43. <if test="DKFXZB != null "> and DKFXZB = #{DKFXZB}</if>
  44. <if test="GRDKFXZB != null "> and GRDKFXZB = #{GRDKFXZB}</if>
  45. <if test="XMDKFXZB != null "> and XMDKFXZB = #{XMDKFXZB}</if>
  46. <if test="ZZSY != null "> and ZZSY = #{ZZSY}</if>
  47. <if test="ZZSYFP != null "> and ZZSYFP = #{ZZSYFP}</if>
  48. <if test="TQDKFXZB != null "> and TQDKFXZB = #{TQDKFXZB}</if>
  49. <if test="TQGRDKFXZB != null "> and TQGRDKFXZB = #{TQGRDKFXZB}</if>
  50. <if test="TQXMDKFXZB != null "> and TQXMDKFXZB = #{TQXMDKFXZB}</if>
  51. <if test="TQGJJZXGLFY != null "> and TQGJJZXGLFY = #{TQGJJZXGLFY}</if>
  52. <if test="CSLZZFJSBCZJ != null "> and CSLZZFJSBCZJ = #{CSLZZFJSBCZJ}</if>
  53. <if test="DFPZZSY != null "> and DFPZZSY = #{DFPZZSY}</if>
  54. <if test="YWSR != null "> and YWSR = #{YWSR}</if>
  55. <if test="ZFGJJLXSR != null "> and ZFGJJLXSR = #{ZFGJJLXSR}</if>
  56. <if test="ZZSYLXSR != null "> and ZZSYLXSR = #{ZZSYLXSR}</if>
  57. <if test="WTDKLXSR != null "> and WTDKLXSR = #{WTDKLXSR}</if>
  58. <if test="GRDKLXSR != null "> and GRDKLXSR = #{GRDKLXSR}</if>
  59. <if test="XMDKLXSR != null "> and XMDKLXSR = #{XMDKLXSR}</if>
  60. <if test="GJZQLXSR != null "> and GJZQLXSR = #{GJZQLXSR}</if>
  61. <if test="QTSR != null "> and QTSR = #{QTSR}</if>
  62. <if test="GRDKYQFXSR != null "> and GRDKYQFXSR = #{GRDKYQFXSR}</if>
  63. <if test="XMDKYQFXSR != null "> and XMDKYQFXSR = #{XMDKYQFXSR}</if>
  64. <if test="YWZC != null "> and YWZC = #{YWZC}</if>
  65. <if test="ZFGJJLXZC != null "> and ZFGJJLXZC = #{ZFGJJLXZC}</if>
  66. <if test="ZFGJJGJSXFZC != null "> and ZFGJJGJSXFZC = #{ZFGJJGJSXFZC}</if>
  67. <if test="WTDKSXFZC != null "> and WTDKSXFZC = #{WTDKSXFZC}</if>
  68. <if test="GRDKSXFZC != null "> and GRDKSXFZC = #{GRDKSXFZC}</if>
  69. <if test="XMDKSXFZC != null "> and XMDKSXFZC = #{XMDKSXFZC}</if>
  70. <if test="XMDKQTZC != null "> and XMDKQTZC = #{XMDKQTZC}</if>
  71. <if test="QTZC != null "> and QTZC = #{QTZC}</if>
  72. <if test="lastUpdateTime != null "> and LAST_UPDATE_TIME = #{lastUpdateTime}</if>
  73. <if test="CLLX != null "> and CLLX = #{CLLX}</if>
  74. <if test="search_begintime != null"> and LAST_UPDATE_TIME >= #{search_begintime}</if>
  75. <if test="search_endtime != null"> and LAST_UPDATE_TIME &lt; #{search_endtime}</if>
  76. </where>
  77. </select>
  78. <select id="selectTgjjKjhzbById" parameterType="Long" resultMap="TgjjKjhzbResult">
  79. <include refid="selectTgjjKjhzbVo"/>
  80. where ID = #{ID}
  81. </select>
  82. <insert id="insertTgjjKjhzb" parameterMap="TgjjKjhzb" useGeneratedKeys="true" keyProperty="ID">
  83. insert into tgjj_kjhzb
  84. <trim prefix="(" suffix=")" suffixOverrides=",">
  85. <include refid="global_name"></include>
  86. <if test="ZXBH != null">ZXBH,</if>
  87. <if test="BBQC != null">BBQC,</if>
  88. <if test="ZFGJJCK != null">ZFGJJCK,</if>
  89. <if test="ZZSYCK != null">ZZSYCK,</if>
  90. <if test="YSLX != null">YSLX,</if>
  91. <if test="QTYSK != null">QTYSK,</if>
  92. <if test="WTDK != null">WTDK,</if>
  93. <if test="GRDK != null">GRDK,</if>
  94. <if test="XMDK != null">XMDK,</if>
  95. <if test="YQDK != null">YQDK,</if>
  96. <if test="GRYQDK != null">GRYQDK,</if>
  97. <if test="XMYQDK != null">XMYQDK,</if>
  98. <if test="GJZQ != null">GJZQ,</if>
  99. <if test="ZFGJJ != null">ZFGJJ,</if>
  100. <if test="YFLX != null">YFLX,</if>
  101. <if test="ZXYFK != null">ZXYFK,</if>
  102. <if test="ZFGJJGLZXGLFY != null">ZFGJJGLZXGLFY,</if>
  103. <if test="CSLZFJSBCZJZXYF != null">CSLZFJSBCZJZXYF,</if>
  104. <if test="QTYFK != null">QTYFK,</if>
  105. <if test="DKFXZB != null">DKFXZB,</if>
  106. <if test="GRDKFXZB != null">GRDKFXZB,</if>
  107. <if test="XMDKFXZB != null">XMDKFXZB,</if>
  108. <if test="ZZSY != null">ZZSY,</if>
  109. <if test="ZZSYFP != null">ZZSYFP,</if>
  110. <if test="TQDKFXZB != null">TQDKFXZB,</if>
  111. <if test="TQGRDKFXZB != null">TQGRDKFXZB,</if>
  112. <if test="TQXMDKFXZB != null">TQXMDKFXZB,</if>
  113. <if test="TQGJJZXGLFY != null">TQGJJZXGLFY,</if>
  114. <if test="CSLZZFJSBCZJ != null">CSLZZFJSBCZJ,</if>
  115. <if test="DFPZZSY != null">DFPZZSY,</if>
  116. <if test="YWSR != null">YWSR,</if>
  117. <if test="ZFGJJLXSR != null">ZFGJJLXSR,</if>
  118. <if test="ZZSYLXSR != null">ZZSYLXSR,</if>
  119. <if test="WTDKLXSR != null">WTDKLXSR,</if>
  120. <if test="GRDKLXSR != null">GRDKLXSR,</if>
  121. <if test="XMDKLXSR != null">XMDKLXSR,</if>
  122. <if test="GJZQLXSR != null">GJZQLXSR,</if>
  123. <if test="QTSR != null">QTSR,</if>
  124. <if test="GRDKYQFXSR != null">GRDKYQFXSR,</if>
  125. <if test="XMDKYQFXSR != null">XMDKYQFXSR,</if>
  126. <if test="YWZC != null">YWZC,</if>
  127. <if test="ZFGJJLXZC != null">ZFGJJLXZC,</if>
  128. <if test="ZFGJJGJSXFZC != null">ZFGJJGJSXFZC,</if>
  129. <if test="WTDKSXFZC != null">WTDKSXFZC,</if>
  130. <if test="GRDKSXFZC != null">GRDKSXFZC,</if>
  131. <if test="XMDKSXFZC != null">XMDKSXFZC,</if>
  132. <if test="XMDKQTZC != null">XMDKQTZC,</if>
  133. <if test="QTZC != null">QTZC,</if>
  134. <if test="lastUpdateTime != null">LAST_UPDATE_TIME,</if>
  135. <if test="CLLX != null">CLLX,</if>
  136. </trim>
  137. <trim prefix="values (" suffix=")" suffixOverrides=",">
  138. <include refid="global_value"></include>
  139. <if test="ZXBH != null">#{ZXBH},</if>
  140. <if test="BBQC != null">#{BBQC},</if>
  141. <if test="ZFGJJCK != null">#{ZFGJJCK},</if>
  142. <if test="ZZSYCK != null">#{ZZSYCK},</if>
  143. <if test="YSLX != null">#{YSLX},</if>
  144. <if test="QTYSK != null">#{QTYSK},</if>
  145. <if test="WTDK != null">#{WTDK},</if>
  146. <if test="GRDK != null">#{GRDK},</if>
  147. <if test="XMDK != null">#{XMDK},</if>
  148. <if test="YQDK != null">#{YQDK},</if>
  149. <if test="GRYQDK != null">#{GRYQDK},</if>
  150. <if test="XMYQDK != null">#{XMYQDK},</if>
  151. <if test="GJZQ != null">#{GJZQ},</if>
  152. <if test="ZFGJJ != null">#{ZFGJJ},</if>
  153. <if test="YFLX != null">#{YFLX},</if>
  154. <if test="ZXYFK != null">#{ZXYFK},</if>
  155. <if test="ZFGJJGLZXGLFY != null">#{ZFGJJGLZXGLFY},</if>
  156. <if test="CSLZFJSBCZJZXYF != null">#{CSLZFJSBCZJZXYF},</if>
  157. <if test="QTYFK != null">#{QTYFK},</if>
  158. <if test="DKFXZB != null">#{DKFXZB},</if>
  159. <if test="GRDKFXZB != null">#{GRDKFXZB},</if>
  160. <if test="XMDKFXZB != null">#{XMDKFXZB},</if>
  161. <if test="ZZSY != null">#{ZZSY},</if>
  162. <if test="ZZSYFP != null">#{ZZSYFP},</if>
  163. <if test="TQDKFXZB != null">#{TQDKFXZB},</if>
  164. <if test="TQGRDKFXZB != null">#{TQGRDKFXZB},</if>
  165. <if test="TQXMDKFXZB != null">#{TQXMDKFXZB},</if>
  166. <if test="TQGJJZXGLFY != null">#{TQGJJZXGLFY},</if>
  167. <if test="CSLZZFJSBCZJ != null">#{CSLZZFJSBCZJ},</if>
  168. <if test="DFPZZSY != null">#{DFPZZSY},</if>
  169. <if test="YWSR != null">#{YWSR},</if>
  170. <if test="ZFGJJLXSR != null">#{ZFGJJLXSR},</if>
  171. <if test="ZZSYLXSR != null">#{ZZSYLXSR},</if>
  172. <if test="WTDKLXSR != null">#{WTDKLXSR},</if>
  173. <if test="GRDKLXSR != null">#{GRDKLXSR},</if>
  174. <if test="XMDKLXSR != null">#{XMDKLXSR},</if>
  175. <if test="GJZQLXSR != null">#{GJZQLXSR},</if>
  176. <if test="QTSR != null">#{QTSR},</if>
  177. <if test="GRDKYQFXSR != null">#{GRDKYQFXSR},</if>
  178. <if test="XMDKYQFXSR != null">#{XMDKYQFXSR},</if>
  179. <if test="YWZC != null">#{YWZC},</if>
  180. <if test="ZFGJJLXZC != null">#{ZFGJJLXZC},</if>
  181. <if test="ZFGJJGJSXFZC != null">#{ZFGJJGJSXFZC},</if>
  182. <if test="WTDKSXFZC != null">#{WTDKSXFZC},</if>
  183. <if test="GRDKSXFZC != null">#{GRDKSXFZC},</if>
  184. <if test="XMDKSXFZC != null">#{XMDKSXFZC},</if>
  185. <if test="XMDKQTZC != null">#{XMDKQTZC},</if>
  186. <if test="QTZC != null">#{QTZC},</if>
  187. <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
  188. <if test="CLLX != null">#{CLLX},</if>
  189. </trim>
  190. </insert>
  191. <update id="updateTgjjKjhzb" parameterMap="TgjjKjhzb">
  192. update tgjj_kjhzb
  193. <trim prefix="SET" suffixOverrides=",">
  194. <include refid="update_sql"></include>
  195. <if test="ZXBH != null">ZXBH = #{ZXBH},</if>
  196. <if test="BBQC != null">BBQC = #{BBQC},</if>
  197. <if test="ZFGJJCK != null">ZFGJJCK = #{ZFGJJCK},</if>
  198. <if test="ZZSYCK != null">ZZSYCK = #{ZZSYCK},</if>
  199. <if test="YSLX != null">YSLX = #{YSLX},</if>
  200. <if test="QTYSK != null">QTYSK = #{QTYSK},</if>
  201. <if test="WTDK != null">WTDK = #{WTDK},</if>
  202. <if test="GRDK != null">GRDK = #{GRDK},</if>
  203. <if test="XMDK != null">XMDK = #{XMDK},</if>
  204. <if test="YQDK != null">YQDK = #{YQDK},</if>
  205. <if test="GRYQDK != null">GRYQDK = #{GRYQDK},</if>
  206. <if test="XMYQDK != null">XMYQDK = #{XMYQDK},</if>
  207. <if test="GJZQ != null">GJZQ = #{GJZQ},</if>
  208. <if test="ZFGJJ != null">ZFGJJ = #{ZFGJJ},</if>
  209. <if test="YFLX != null">YFLX = #{YFLX},</if>
  210. <if test="ZXYFK != null">ZXYFK = #{ZXYFK},</if>
  211. <if test="ZFGJJGLZXGLFY != null">ZFGJJGLZXGLFY = #{ZFGJJGLZXGLFY},</if>
  212. <if test="CSLZFJSBCZJZXYF != null">CSLZFJSBCZJZXYF = #{CSLZFJSBCZJZXYF},</if>
  213. <if test="QTYFK != null">QTYFK = #{QTYFK},</if>
  214. <if test="DKFXZB != null">DKFXZB = #{DKFXZB},</if>
  215. <if test="GRDKFXZB != null">GRDKFXZB = #{GRDKFXZB},</if>
  216. <if test="XMDKFXZB != null">XMDKFXZB = #{XMDKFXZB},</if>
  217. <if test="ZZSY != null">ZZSY = #{ZZSY},</if>
  218. <if test="ZZSYFP != null">ZZSYFP = #{ZZSYFP},</if>
  219. <if test="TQDKFXZB != null">TQDKFXZB = #{TQDKFXZB},</if>
  220. <if test="TQGRDKFXZB != null">TQGRDKFXZB = #{TQGRDKFXZB},</if>
  221. <if test="TQXMDKFXZB != null">TQXMDKFXZB = #{TQXMDKFXZB},</if>
  222. <if test="TQGJJZXGLFY != null">TQGJJZXGLFY = #{TQGJJZXGLFY},</if>
  223. <if test="CSLZZFJSBCZJ != null">CSLZZFJSBCZJ = #{CSLZZFJSBCZJ},</if>
  224. <if test="DFPZZSY != null">DFPZZSY = #{DFPZZSY},</if>
  225. <if test="YWSR != null">YWSR = #{YWSR},</if>
  226. <if test="ZFGJJLXSR != null">ZFGJJLXSR = #{ZFGJJLXSR},</if>
  227. <if test="ZZSYLXSR != null">ZZSYLXSR = #{ZZSYLXSR},</if>
  228. <if test="WTDKLXSR != null">WTDKLXSR = #{WTDKLXSR},</if>
  229. <if test="GRDKLXSR != null">GRDKLXSR = #{GRDKLXSR},</if>
  230. <if test="XMDKLXSR != null">XMDKLXSR = #{XMDKLXSR},</if>
  231. <if test="GJZQLXSR != null">GJZQLXSR = #{GJZQLXSR},</if>
  232. <if test="QTSR != null">QTSR = #{QTSR},</if>
  233. <if test="GRDKYQFXSR != null">GRDKYQFXSR = #{GRDKYQFXSR},</if>
  234. <if test="XMDKYQFXSR != null">XMDKYQFXSR = #{XMDKYQFXSR},</if>
  235. <if test="YWZC != null">YWZC = #{YWZC},</if>
  236. <if test="ZFGJJLXZC != null">ZFGJJLXZC = #{ZFGJJLXZC},</if>
  237. <if test="ZFGJJGJSXFZC != null">ZFGJJGJSXFZC = #{ZFGJJGJSXFZC},</if>
  238. <if test="WTDKSXFZC != null">WTDKSXFZC = #{WTDKSXFZC},</if>
  239. <if test="GRDKSXFZC != null">GRDKSXFZC = #{GRDKSXFZC},</if>
  240. <if test="XMDKSXFZC != null">XMDKSXFZC = #{XMDKSXFZC},</if>
  241. <if test="XMDKQTZC != null">XMDKQTZC = #{XMDKQTZC},</if>
  242. <if test="QTZC != null">QTZC = #{QTZC},</if>
  243. <if test="lastUpdateTime != null">LAST_UPDATE_TIME = #{lastUpdateTime},</if>
  244. <if test="CLLX != null">CLLX = #{CLLX},</if>
  245. </trim>
  246. where ID = #{ID}
  247. </update>
  248. </mapper>