PLXGZSFS_Mapper.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
  4. "http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
  5. <mapper namespace="PLXGZSFS">
  6. <!-- 通用配置 -->
  7. <!-- ** YS_TEMP_PLXGZSFS 批量修改征收方式临时资料 ******-->
  8. <!-- begin YS_TEMP_PLXGZSFS -->
  9. <!-- *** 所有字段 -->
  10. <sql id="YS_TEMP_PLXGZSFS_COL">
  11. YWLSH, DRPH, GRSXH, DWSXH,
  12. GRBH, GMSFHM, XM, BGQZ, BGHZ,
  13. JFYHHH, JFYHHM, JFYHZH, JFYHMC, JYZT,
  14. JYSM, TJFHBZ
  15. </sql>
  16. <!-- *** 选择字段 -->
  17. <sql id="YS_TEMP_PLXGZSFS_COLSEL">
  18. <trim suffixOverrides=",">
  19. <if test="YWLSH != null"> YWLSH ,</if>
  20. <if test="DRPH != null"> DRPH ,</if>
  21. <if test="GRSXH != null"> GRSXH ,</if>
  22. <if test="GRBH != null"> GRBH ,</if>
  23. <if test="GMSFHM != null"> GMSFHM ,</if>
  24. <if test="XM != null"> XM ,</if>
  25. <if test="BGQZ != null"> BGQZ ,</if>
  26. <if test="BGHZ != null"> BGHZ ,</if>
  27. <if test="JFYHHH != null"> JFYHHH ,</if>
  28. <if test="JFYHHM != null"> JFYHHM ,</if>
  29. <if test="JFYHZH != null"> JFYHZH ,</if>
  30. <if test="JFYHMC != null"> JFYHMC ,</if>
  31. <if test="JYZT != null"> JYZT ,</if>
  32. <if test="JYSM != null"> JYSM ,</if>
  33. <if test="TJFHBZ != null"> TJFHBZ ,</if>
  34. </trim>
  35. </sql>
  36. <!-- *** 记录数 -->
  37. <select id="YS_TEMP_PLXGZSFS_CNT" resultType="long" parameterType="hashmap">
  38. select count(1)
  39. from YS_TEMP_PLXGZSFS
  40. <where>
  41. YWLSH = #{W_YWLSH}
  42. <if test="W_JYZT != null">
  43. and JYZT = #{W_JYZT}
  44. </if>
  45. <if test="W_TJFHBZ != null">
  46. and TJFHBZ = #{W_TJFHBZ}
  47. </if>
  48. <if test="W_DRPH != null">
  49. and DRPH = #{W_DRPH}
  50. </if>
  51. </where>
  52. </select>
  53. <!-- *** 全字段查询 -->
  54. <select id="YS_TEMP_PLXGZSFS_Q" parameterType="hashmap" resultType="hashmap">
  55. select
  56. <include refid="YS_TEMP_PLXGZSFS_COL" /> <!-- 引用前边定义的所有字段 -->
  57. from YS_TEMP_PLXGZSFS
  58. <where>
  59. YWLSH = #{W_YWLSH}
  60. <if test="W_JYZT != null">
  61. and JYZT = #{W_JYZT}
  62. </if>
  63. <if test="W_TJFHBZ != null">
  64. and TJFHBZ = #{W_TJFHBZ}
  65. </if>
  66. <if test="W_DRPH != null">
  67. and DRPH = #{W_DRPH}
  68. </if>
  69. </where>
  70. </select>
  71. <!-- *** 选择修改 -->
  72. <update id="YS_TEMP_PLXGZSFS_US" parameterType="hashmap">
  73. update YS_TEMP_PLXGZSFS
  74. <set>
  75. <if test="YWLSH != null"> YWLSH =#{YWLSH } ,</if>
  76. <if test="DRPH != null"> DRPH =#{DRPH } ,</if>
  77. <if test="GRSXH != null"> GRSXH =#{GRSXH } ,</if>
  78. <if test="DWSXH != null"> DWSXH =#{DWSXH } ,</if>
  79. <if test="GRBH != null"> GRBH =#{GRBH } ,</if>
  80. <if test="GMSFHM != null"> GMSFHM =#{GMSFHM } ,</if>
  81. <if test="XM != null"> XM =#{XM } ,</if>
  82. <if test="BGQZ != null"> BGQZ =#{BGQZ } ,</if>
  83. <if test="BGHZ != null"> BGHZ =#{BGHZ } ,</if>
  84. <if test="JFYHHH != null"> JFYHHH =#{JFYHHH } ,</if>
  85. <if test="JFYHHM != null"> JFYHHM =#{JFYHHM } ,</if>
  86. <if test="JFYHZH != null"> JFYHZH =#{JFYHZH } ,</if>
  87. <if test="JFYHMC != null"> JFYHMC =#{JFYHMC } ,</if>
  88. <if test="JYZT != null"> JYZT =#{JYZT } ,</if>
  89. <if test="JYSM != null"> JYSM =#{JYSM } ,</if>
  90. <if test="TJFHBZ != null"> TJFHBZ =#{TJFHBZ }</if>
  91. </set>
  92. <where>
  93. <choose>
  94. <when test="W_YWLSH != null">
  95. YWLSH = #{W_YWLSH}
  96. </when>
  97. <otherwise>
  98. DRPH = #{W_DRPH}
  99. </otherwise>
  100. </choose>
  101. <if test="W_GRBH != null">
  102. and GRBH = #{W_GRBH}
  103. </if>
  104. </where>
  105. </update>
  106. <!-- 根据导入批号选择更新 -->
  107. <update id="YS_TEMP_PLXGZSFS_YWLSH_US" parameterType="hashmap">
  108. update YS_TEMP_PLXGZSFS
  109. <set>
  110. <if test="YWLSH != null"> YWLSH =#{YWLSH } ,</if>
  111. <if test="GRSXH != null"> GRSXH =#{GRSXH } ,</if>
  112. <if test="DWSXH != null"> DWSXH =#{DWSXH } ,</if>
  113. <if test="GRBH != null"> GRBH =#{GRBH } ,</if>
  114. <if test="GMSFHM != null"> GMSFHM =#{GMSFHM } ,</if>
  115. <if test="XM != null"> XM =#{XM } ,</if>
  116. <if test="BGQZ != null"> BGQZ =#{BGQZ } ,</if>
  117. <if test="BGHZ != null"> BGHZ =#{BGHZ } ,</if>
  118. <if test="JFYHHH != null"> JFYHHH =#{JFYHHH } ,</if>
  119. <if test="JFYHHM != null"> JFYHHM =#{JFYHHM } ,</if>
  120. <if test="JFYHZH != null"> JFYHZH =#{JFYHZH } ,</if>
  121. <if test="JFYHMC != null"> JFYHMC =#{JFYHMC } ,</if>
  122. <if test="JYZT != null"> JYZT =#{JYZT } ,</if>
  123. <if test="JYSM != null"> JYSM =#{JYSM } ,</if>
  124. <if test="TJFHBZ != null"> TJFHBZ =#{TJFHBZ }</if>
  125. </set>
  126. <where>
  127. DRPH = #{W_DRPH}
  128. </where>
  129. </update>
  130. <!-- end YS_TEMP_PLXGZSFS-->
  131. <!-- ** YS_TEMP_PLXGZSFS_HZ 批量修改征收方式临时汇总资料 ******-->
  132. <!-- begin YS_TEMP_PLXGZSFS_HZ -->
  133. <!-- *** 所有字段 -->
  134. <sql id="YS_TEMP_PLXGZSFS_HZ_COL">
  135. YWLSH, SBND, DRPH, DRZRS, DRCGRS,
  136. DRSBRS, DWSXH, DWMC, DWBH, ZSFS,
  137. SPR, SPBZ, BAE001, BAE002, BAE003,
  138. BAE004, BAE005, BAE006, CHTGRS
  139. </sql>
  140. <!-- *** 选择字段 -->
  141. <sql id="YS_TEMP_PLXGZSFS_HZ_COLSEL">
  142. <trim suffixOverrides=",">
  143. <if test="YWLSH != null"> YWLSH ,</if>
  144. <if test="DRPH != null"> DRPH ,</if>
  145. <if test="SBND != null"> SBND ,</if>
  146. <if test="DRZRS != null"> DRZRS ,</if>
  147. <if test="DRCGRS != null"> DRCGRS ,</if>
  148. <if test="DRSBRS != null"> DRSBRS ,</if>
  149. <if test="DWSXH != null"> DWSXH ,</if>
  150. <if test="DWMC != null"> DWMC ,</if>
  151. <if test="DWBH != null"> DWBH ,</if>
  152. <if test="ZSFS != null"> ZSFS ,</if>
  153. <if test="SPR != null"> SPR ,</if>
  154. <if test="SPBZ != null"> SPBZ ,</if>
  155. <if test="BAE001 != null"> BAE001 ,</if>
  156. <if test="BAE002 != null"> BAE002 ,</if>
  157. <if test="BAE003 != null"> BAE003 ,</if>
  158. <if test="BAE004 != null"> BAE004 ,</if>
  159. <if test="BAE005 != null"> BAE005 ,</if>
  160. <if test="BAE006 != null"> BAE006 ,</if>
  161. <if test="CHTGRS != null"> CHTGRS </if>
  162. </trim>
  163. </sql>
  164. <!-- *** 全字段查询 -->
  165. <select id="YS_TEMP_PLXGZSFS_HZ_Q" parameterType="hashmap" resultType="hashmap">
  166. select
  167. <include refid="YS_TEMP_PLXGZSFS_HZ_COL" /> <!-- 引用前边定义的所有字段 -->
  168. from YS_TEMP_PLXGZSFS_HZ
  169. <where>
  170. YWLSH = #{W_YWLSH}
  171. <if test="W_DRPH != null">
  172. and DRPH = #{W_DRPH}
  173. </if>
  174. </where>
  175. </select>
  176. <!-- *** 插入 -->
  177. <insert id="YS_TEMP_PLXGZSFS_HZ_I" parameterType="hashmap">
  178. insert into YS_TEMP_PLXGZSFS_HZ(
  179. YWLSH, SBND, DRPH, DRZRS, DRCGRS,
  180. DRSBRS, DWSXH, DWMC, DWBH, ZSFS,
  181. SPR, SPBZ, BAE001, BAE002, BAE003,
  182. BAE004, BAE005, BAE006, CHTGRS
  183. )values(
  184. #{YWLSH}, #{SBND}, #{DRPH},
  185. #{DRZRS,javaType=long,jdbcType=NUMERIC},
  186. #{DRCGRS,javaType=long,jdbcType=NUMERIC},
  187. #{DRSBRS,javaType=long,jdbcType=NUMERIC},
  188. #{DWSXH,javaType=long,jdbcType=NUMERIC},
  189. #{DWMC}, #{DWBH}, #{ZSFS},#{SPR},
  190. #{SPBZ}, #{BAE001}, #{BAE002}, #{BAE003},
  191. #{BAE004}, #{BAE005}, #{BAE006}, #{CHTGRS}
  192. )
  193. </insert>
  194. <!-- *** 根据DRPH 选择修改 -->
  195. <update id="YS_TEMP_PLXGZSFS_HZ_US" parameterType="hashmap">
  196. update YS_TEMP_PLXGZSFS_HZ
  197. <set>
  198. <if test="YWLSH != null"> YWLSH =#{YWLSH } ,</if>
  199. <if test="SBND != null"> SBND =#{SBND } ,</if>
  200. <if test="DRZRS != null"> DRZRS =#{DRZRS } ,</if>
  201. <if test="DRCGRS != null"> DRCGRS =#{DRCGRS } ,</if>
  202. <if test="DRSBRS != null"> DRSBRS =#{DRSBRS } ,</if>
  203. <if test="DWSXH != null"> DWSXH =#{DWSXH } ,</if>
  204. <if test="DWMC != null"> DWMC =#{DWMC } ,</if>
  205. <if test="DWBH != null"> DWBH =#{DWBH } ,</if>
  206. <if test="ZSFS != null"> ZSFS =#{ZSFS } ,</if>
  207. <if test="SPR != null"> SPR =#{SPR } ,</if>
  208. <if test="SPBZ != null"> SPBZ =#{SPBZ } ,</if>
  209. <if test="BAE001 != null"> BAE001 =#{BAE001 } ,</if>
  210. <if test="BAE002 != null"> BAE002 =#{BAE002 } ,</if>
  211. <if test="BAE003 != null"> BAE003 =#{BAE003 } ,</if>
  212. <if test="BAE004 != null"> BAE004 =#{BAE004 } ,</if>
  213. <if test="BAE005 != null"> BAE005 =#{BAE005 } ,</if>
  214. <if test="BAE006 != null"> BAE006 =#{BAE006 } ,</if>
  215. <if test="CHTGRS != null"> CHTGRS =#{CHTGRS } </if>
  216. </set>
  217. <where>
  218. DRPH = #{W_DRPH}
  219. </where>
  220. </update>
  221. <!-- *** 根据YWLSH 选择修改 -->
  222. <update id="YS_TEMP_PLXGZSFS_HZ_FH_US" parameterType="hashmap">
  223. update YS_TEMP_PLXGZSFS_HZ
  224. <set>
  225. <if test="SBND != null"> SBND =#{SBND } ,</if>
  226. <if test="DRZRS != null"> DRZRS =#{DRZRS } ,</if>
  227. <if test="DRCGRS != null"> DRCGRS =#{DRCGRS } ,</if>
  228. <if test="DRSBRS != null"> DRSBRS =#{DRSBRS } ,</if>
  229. <if test="DWSXH != null"> DWSXH =#{DWSXH } ,</if>
  230. <if test="DWMC != null"> DWMC =#{DWMC } ,</if>
  231. <if test="DWBH != null"> DWBH =#{DWBH } ,</if>
  232. <if test="ZSFS != null"> ZSFS =#{ZSFS } ,</if>
  233. <if test="SPR != null"> SPR =#{SPR } ,</if>
  234. <if test="SPBZ != null"> SPBZ =#{SPBZ } ,</if>
  235. <if test="BAE001 != null"> BAE001 =#{BAE001 } ,</if>
  236. <if test="BAE002 != null"> BAE002 =#{BAE002 } ,</if>
  237. <if test="BAE003 != null"> BAE003 =#{BAE003 } ,</if>
  238. <if test="BAE004 != null"> BAE004 =#{BAE004 } ,</if>
  239. <if test="BAE005 != null"> BAE005 =#{BAE005 } ,</if>
  240. <if test="BAE006 != null"> BAE006 =#{BAE006 } ,</if>
  241. <if test="CHTGRS != null"> CHTGRS =#{CHTGRS } </if>
  242. </set>
  243. <where>
  244. YWLSH = #{W_YWLSH}
  245. </where>
  246. </update>
  247. <!-- end YS_TPMP_PLXGZSFS_HZ-->
  248. <!-- ** YS_PLXGZSFS 批量修改征收方式资料 ******-->
  249. <!-- begin PLXGZSFS -->
  250. <!-- *** 所有字段 -->
  251. <sql id="YS_PLXGZSFS_COL">
  252. YWLSH, SBND, DWSXH, GRSXH, BGQZ,
  253. BGHZ, JFYHHH, JFYHHM, JFYHZH, JFYHMC,
  254. CLBZ, BAE001, BAE002, BAE003, BAE004,
  255. BAE005, BAE006
  256. </sql>
  257. <!-- *** 插入 -->
  258. <insert id="YS_PLXGZSFS_I" parameterType="hashmap">
  259. insert into YS_PLXGZSFS (
  260. YWLSH, SBND, DWSXH, GRSXH, BGQZ,
  261. BGHZ, JFYHHH, JFYHHM, JFYHZH, JFYHMC,
  262. CLBZ, BAE001, BAE002, BAE003, BAE004,
  263. BAE005, BAE006
  264. ) values (
  265. #{YWLSH,
  266. javaType=string,jdbcType=VARCHAR},
  267. #{SBND},
  268. #{DWSXH,
  269. javaType=BigDecimal,jdbcType=NUMERIC},
  270. #{GRSXH,
  271. javaType=BigDecimal,jdbcType=NUMERIC},
  272. #{BGQZ,
  273. javaType=string,jdbcType=VARCHAR},
  274. #{BGHZ,
  275. javaType=string,jdbcType=VARCHAR},
  276. #{JFYHHH,
  277. javaType=string,jdbcType=VARCHAR},
  278. #{JFYHHM,
  279. javaType=string,jdbcType=VARCHAR},
  280. #{JFYHZH,
  281. javaType=string,jdbcType=VARCHAR},
  282. #{JFYHMC,
  283. javaType=string,jdbcType=VARCHAR},
  284. #{CLBZ,
  285. javaType=string,jdbcType=VARCHAR},
  286. #{BAE001,
  287. javaType=string,jdbcType=VARCHAR},
  288. #{BAE002,
  289. javaType=string,jdbcType=VARCHAR},
  290. #{BAE003,
  291. javaType=string,jdbcType=VARCHAR},
  292. #{BAE004,
  293. javaType=string,jdbcType=VARCHAR},
  294. #{BAE005,
  295. javaType=string,jdbcType=VARCHAR},
  296. #{BAE006,
  297. javaType=string,jdbcType=VARCHAR}
  298. )
  299. </insert>
  300. <!-- end YS_PLXGZSFS-->
  301. <!-- ** YS_GRJBZL 参保人员资料 ******-->
  302. <!-- begin YS_GRJBZL -->
  303. <!-- *** 所有字段 -->
  304. <sql id="YS_GRJBZL_COL">
  305. GRSXH, GRBH, DWSXH, GMSFHM, XM,
  306. XB, ZSFS, JFYHHH, JFYHHM, JFYHZH,
  307. JFYHMC, BZ
  308. </sql>
  309. <!-- *** 选择字段 -->
  310. <sql id="YS_GRJBZL_COLSEL">
  311. <trim suffixOverrides=",">
  312. <if test="GRSXH != null"> GRSXH ,</if>
  313. <if test="DWSXH != null"> DWSXH ,</if>
  314. <if test="GRBH != null"> GRBH ,</if>
  315. <if test="GMSFHM != null"> GMSFHM ,</if>
  316. <if test="XM != null"> XM ,</if>
  317. <if test="XB != null"> XB ,</if>
  318. <if test="ZSFS != null"> ZSFS ,</if>
  319. <if test="JFYHHH != null"> JFYHHH ,</if>
  320. <if test="JFYHHM != null"> JFYHHM ,</if>
  321. <if test="JFYHZH != null"> JFYHZH ,</if>
  322. <if test="JFYHMC != null"> JFYHMC ,</if>
  323. <if test="BZ != null">BZ </if>
  324. </trim>
  325. </sql>
  326. <!-- *** 全字段查询 -->
  327. <select id="E_YS_GRJBZL_Q" parameterType="hashmap" resultType="hashmap">
  328. select
  329. <include refid="YS_GRJBZL_COL" /> <!-- 引用前边定义的所有字段 -->
  330. from E_YS_GRJBZL
  331. <where>
  332. <choose>
  333. <when test="W_GRSXH != null">
  334. GRSXH = #{W_GRSXH}
  335. </when>
  336. <otherwise>
  337. GRBH = #{W_GRBH}
  338. </otherwise>
  339. </choose>
  340. </where>
  341. </select>
  342. <!-- *** 选择修改 -->
  343. <update id="E_YS_GRJBZL_US" parameterType="hashmap">
  344. update E_YS_GRJBZL
  345. <set>
  346. <if test="GRSXH != null">GRSXH =#{GRSXH } ,</if>
  347. <if test="DWSXH != null">DWSXH =#{DWSXH } ,</if>
  348. <if test="GRBH != null">GRBH =#{GRBH } ,</if>
  349. <if test="GMSFHM != null">GMSFHM =#{GMSFHM } ,</if>
  350. <if test="XM != null">XM =#{XM } ,</if>
  351. <if test="XB != null">XB =#{XB } ,</if>
  352. <if test="ZSFS != null">ZSFS =#{ZSFS } ,</if>
  353. <if test="JFYHHH != null">JFYHHH =#{JFYHHH } ,</if>
  354. <if test="JFYHHM != null">JFYHHM =#{JFYHHM } ,</if>
  355. <if test="JFYHZH != null">JFYHZH =#{JFYHZH } ,</if>
  356. <if test="JFYHMC != null">JFYHMC =#{JFYHMC } ,</if>
  357. <if test="BZ != null">BZ =#{BZ }</if>
  358. </set>
  359. <where>
  360. GRSXH = #{W_GRSXH}
  361. </where>
  362. </update>
  363. <!-- end YS_DWJBZL-->
  364. <!-- ** YS_DWJBZL 参保人员资料 ******-->
  365. <!-- begin YS_DWJBZL -->
  366. <!-- *** 所有字段 -->
  367. <sql id="YS_DWJBZL_COL">
  368. DWSXH, DWBH, DWMC, ZSFS, BZ,
  369. JFYHHH, JFYHHM, JFYHZH, JFYHMC
  370. </sql>
  371. <!-- *** 选择字段 -->
  372. <sql id="YS_DWJBZL_COLSEL">
  373. <trim suffixOverrides=",">
  374. <if test="DWSXH != null"> DWSXH ,</if>
  375. <if test="DWBH != null"> DWBH ,</if>
  376. <if test="DWMC != null"> DWMC ,</if>
  377. <if test="ZSFS != null"> ZSFS ,</if>
  378. <if test="JFYHHH != null"> JFYHHH ,</if>
  379. <if test="JFYHHM != null"> JFYHHM ,</if>
  380. <if test="JFYHZH != null"> JFYHZH ,</if>
  381. <if test="JFYHMC != null"> JFYHMC ,</if>
  382. <if test="BZ != null">BZ </if>
  383. </trim>
  384. </sql>
  385. <!-- *** 记录数 -->
  386. <select id="E_YS_DWJBZL_CNT" resultType="long" parameterType="hashmap">
  387. select count(1)
  388. from E_YS_DWJBZL
  389. where DWBH = #{W_DWBH}
  390. </select>
  391. <!-- *** 全字段查询 -->
  392. <select id="E_YS_DWJBZL_Q" parameterType="hashmap" resultType="hashmap">
  393. select
  394. <include refid="YS_DWJBZL_COL" /> <!-- 引用前边定义的所有字段 -->
  395. from E_YS_DWJBZL
  396. where DWBH = #{W_DWBH}
  397. </select>
  398. <!-- end YS_DWJBZL-->
  399. </mapper>