BisInspFjpjmgdpImgrDao.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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="cn.com.goldenwater.dcproj.dao.BisInspFjpjmgdpImgrDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspFjpjmgdpImgr" id="bisInspFjpjmgdpImgrResultMap">
  5. <result property="f441" column="F_4_4_1"/>
  6. <result property="note" column="NOTE"/>
  7. <result property="persId" column="PERS_ID"/>
  8. <result property="intm" column="INTM"/>
  9. <result property="uptm" column="UPTM"/>
  10. <result property="dataStat" column="DATA_STAT"/>
  11. <result property="state" column="STATE"/>
  12. <result property="id" column="ID"/>
  13. <result property="rgstrId" column="RGSTR_ID"/>
  14. <result property="f411" column="F_4_1_1"/>
  15. <result property="f412" column="F_4_1_2"/>
  16. <result property="f413" column="F_4_1_3"/>
  17. <result property="f414" column="F_4_1_4"/>
  18. <result property="f415" column="F_4_1_5"/>
  19. <result property="f416" column="F_4_1_6"/>
  20. <result property="f417" column="F_4_1_7"/>
  21. <result property="f418" column="F_4_1_8"/>
  22. <result property="f419" column="F_4_1_9"/>
  23. <result property="f4110" column="F_4_1_10"/>
  24. <result property="f4111" column="F_4_1_11"/>
  25. <result property="f4112" column="F_4_1_12"/>
  26. <result property="f4113" column="F_4_1_13"/>
  27. <result property="f4114" column="F_4_1_14"/>
  28. <result property="f421" column="F_4_2_1"/>
  29. <result property="f422" column="F_4_2_2"/>
  30. <result property="f423" column="F_4_2_3"/>
  31. <result property="f424" column="F_4_2_4"/>
  32. <result property="f425" column="F_4_2_5"/>
  33. <result property="f426" column="F_4_2_6"/>
  34. <result property="f427" column="F_4_2_7"/>
  35. <result property="f428" column="F_4_2_8"/>
  36. <result property="f429" column="F_4_2_9"/>
  37. <result property="f4210" column="F_4_2_10"/>
  38. <result property="f4211" column="F_4_2_11"/>
  39. <result property="f4212" column="F_4_2_12"/>
  40. <result property="f4213" column="F_4_2_13"/>
  41. <result property="f4214" column="F_4_2_14"/>
  42. <result property="f4215" column="F_4_2_15"/>
  43. <result property="f4216" column="F_4_2_16"/>
  44. <result property="f4217" column="F_4_2_17"/>
  45. <result property="f431" column="F_4_3_1"/>
  46. <result property="f432" column="F_4_3_2"/>
  47. <result property="f433" column="F_4_3_3"/>
  48. <result property="f434" column="F_4_3_4"/>
  49. <result property="f435" column="F_4_3_5"/>
  50. <result property="f436" column="F_4_3_6"/>
  51. <result property="f437" column="F_4_3_7"/>
  52. <result property="f438" column="F_4_3_8"/>
  53. </resultMap>
  54. <sql id="table_columns">
  55. F_4_4_1,
  56. NOTE,
  57. PERS_ID,
  58. INTM,
  59. UPTM,
  60. DATA_STAT,
  61. STATE,
  62. ID,
  63. RGSTR_ID,
  64. F_4_1_1,
  65. F_4_1_2,
  66. F_4_1_3,
  67. F_4_1_4,
  68. F_4_1_5,
  69. F_4_1_6,
  70. F_4_1_7,
  71. F_4_1_8,
  72. F_4_1_9,
  73. F_4_1_10,
  74. F_4_1_11,
  75. F_4_1_12,
  76. F_4_1_13,
  77. F_4_1_14,
  78. F_4_2_1,
  79. F_4_2_2,
  80. F_4_2_3,
  81. F_4_2_4,
  82. F_4_2_5,
  83. F_4_2_6,
  84. F_4_2_7,
  85. F_4_2_8,
  86. F_4_2_9,
  87. F_4_2_10,
  88. F_4_2_11,
  89. F_4_2_12,
  90. F_4_2_13,
  91. F_4_2_14,
  92. F_4_2_15,
  93. F_4_2_16,
  94. F_4_2_17,
  95. F_4_3_1,
  96. F_4_3_2,
  97. F_4_3_3,
  98. F_4_3_4,
  99. F_4_3_5,
  100. F_4_3_6,
  101. F_4_3_7,
  102. F_4_3_8
  103. </sql>
  104. <sql id="entity_properties">
  105. #{f441},
  106. #{note},
  107. #{persId},
  108. #{intm},
  109. #{uptm},
  110. #{dataStat},
  111. #{state},
  112. #{id},
  113. #{rgstrId},
  114. #{f411},
  115. #{f412},
  116. #{f413},
  117. #{f414},
  118. #{f415},
  119. #{f416},
  120. #{f417},
  121. #{f418},
  122. #{f419},
  123. #{f4110},
  124. #{f4111},
  125. #{f4112},
  126. #{f4113},
  127. #{f4114},
  128. #{f421},
  129. #{f422},
  130. #{f423},
  131. #{f424},
  132. #{f425},
  133. #{f426},
  134. #{f427},
  135. #{f428},
  136. #{f429},
  137. #{f4210},
  138. #{f4211},
  139. #{f4212},
  140. #{f4213},
  141. #{f4214},
  142. #{f4215},
  143. #{f4216},
  144. #{f4217},
  145. #{f431},
  146. #{f432},
  147. #{f433},
  148. #{f434},
  149. #{f435},
  150. #{f436},
  151. #{f437},
  152. #{f438}
  153. </sql>
  154. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  155. <sql id="page_where">
  156. <trim prefix="where" prefixOverrides="and | or ">
  157. <if test="note != null and note != ''">and NOTE = #{note}</if>
  158. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  159. <if test="intm != null">and INTM = #{intm}</if>
  160. <if test="uptm != null">and UPTM = #{uptm}</if>
  161. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  162. <if test="state != null and state != ''">and STATE = #{state}</if>
  163. <if test="id != null and id != ''">and ID = #{id}</if>
  164. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  165. <if test="f411 != null and f411 != ''">and F_4_1_1 = #{f411}</if>
  166. <if test="f412 != null and f412 != ''">and F_4_1_2 = #{f412}</if>
  167. <if test="f413 != null and f413 != ''">and F_4_1_3 = #{f413}</if>
  168. <if test="f414 != null and f414 != ''">and F_4_1_4 = #{f414}</if>
  169. <if test="f415 != null and f415 != ''">and F_4_1_5 = #{f415}</if>
  170. <if test="f416 != null and f416 != ''">and F_4_1_6 = #{f416}</if>
  171. <if test="f417 != null and f417 != ''">and F_4_1_7 = #{f417}</if>
  172. <if test="f418 != null and f418 != ''">and F_4_1_8 = #{f418}</if>
  173. <if test="f419 != null and f419 != ''">and F_4_1_9 = #{f419}</if>
  174. <if test="f4110 != null and f4110 != ''">and F_4_1_10 = #{f4110}</if>
  175. <if test="f4111 != null and f4111 != ''">and F_4_1_11 = #{f4111}</if>
  176. <if test="f4112 != null and f4112 != ''">and F_4_1_12 = #{f4112}</if>
  177. <if test="f4113 != null and f4113 != ''">and F_4_1_13 = #{f4113}</if>
  178. <if test="f4114 != null and f4114 != ''">and F_4_1_14 = #{f4114}</if>
  179. <if test="f421 != null and f421 != ''">and F_4_2_1 = #{f421}</if>
  180. <if test="f422 != null and f422 != ''">and F_4_2_2 = #{f422}</if>
  181. <if test="f423 != null and f423 != ''">and F_4_2_3 = #{f423}</if>
  182. <if test="f424 != null and f424 != ''">and F_4_2_4 = #{f424}</if>
  183. <if test="f425 != null and f425 != ''">and F_4_2_5 = #{f425}</if>
  184. <if test="f426 != null and f426 != ''">and F_4_2_6 = #{f426}</if>
  185. <if test="f427 != null and f427 != ''">and F_4_2_7 = #{f427}</if>
  186. <if test="f428 != null and f428 != ''">and F_4_2_8 = #{f428}</if>
  187. <if test="f429 != null and f429 != ''">and F_4_2_9 = #{f429}</if>
  188. <if test="f4210 != null and f4210 != ''">and F_4_2_10 = #{f4210}</if>
  189. <if test="f4211 != null and f4211 != ''">and F_4_2_11 = #{f4211}</if>
  190. <if test="f4212 != null and f4212 != ''">and F_4_2_12 = #{f4212}</if>
  191. <if test="f4213 != null and f4213 != ''">and F_4_2_13 = #{f4213}</if>
  192. <if test="f4214 != null and f4214 != ''">and F_4_2_14 = #{f4214}</if>
  193. <if test="f4215 != null and f4215 != ''">and F_4_2_15 = #{f4215}</if>
  194. <if test="f4216 != null and f4216 != ''">and F_4_2_16 = #{f4216}</if>
  195. <if test="f4217 != null and f4217 != ''">and F_4_2_17 = #{f4217}</if>
  196. <if test="f431 != null and f431 != ''">and F_4_3_1 = #{f431}</if>
  197. <if test="f432 != null and f432 != ''">and F_4_3_2 = #{f432}</if>
  198. <if test="f433 != null and f433 != ''">and F_4_3_3 = #{f433}</if>
  199. <if test="f434 != null and f434 != ''">and F_4_3_4 = #{f434}</if>
  200. <if test="f435 != null and f435 != ''">and F_4_3_5 = #{f435}</if>
  201. <if test="f436 != null and f436 != ''">and F_4_3_6 = #{f436}</if>
  202. <if test="f437 != null and f437 != ''">and F_4_3_7 = #{f437}</if>
  203. <if test="f438 != null and f438 != ''">and F_4_3_8 = #{f438}</if>
  204. </trim>
  205. </sql>
  206. <select id="get" resultMap="bisInspFjpjmgdpImgrResultMap" parameterType="String" >
  207. select <include refid="table_columns" /> from BIS_INSP_FJPJMGDP_IMGR where RGSTR_ID = #{id}
  208. </select>
  209. <select id="getBy" resultMap="bisInspFjpjmgdpImgrResultMap">
  210. select <include refid="table_columns" /> from BIS_INSP_FJPJMGDP_IMGR <include refid="page_where" />
  211. </select>
  212. <select id="findAll" resultMap="bisInspFjpjmgdpImgrResultMap">
  213. select <include refid="table_columns" /> from BIS_INSP_FJPJMGDP_IMGR
  214. </select>
  215. <select id="findList" resultMap="bisInspFjpjmgdpImgrResultMap">
  216. select <include refid="table_columns" /> from BIS_INSP_FJPJMGDP_IMGR <include refid="page_where" />
  217. </select>
  218. <select id="selectCount" resultType="int" >
  219. select count(ID) from BIS_INSP_FJPJMGDP_IMGR <include refid="page_where" />
  220. </select>
  221. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjpjmgdpImgr">
  222. insert into BIS_INSP_FJPJMGDP_IMGR( <include refid="table_columns" /> )
  223. values ( <include refid="entity_properties" /> )
  224. </insert>
  225. <delete id="delete" parameterType="java.lang.String">
  226. update BIS_INSP_FJPJMGDP_IMGR set DATA_STAT='9' where ID = #{id}
  227. </delete>
  228. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjpjmgdpImgr">
  229. delete from BIS_INSP_FJPJMGDP_IMGR <include refid="page_where" />
  230. </delete>
  231. <update id="deleteInFlag" parameterType="java.lang.String">
  232. update BIS_INSP_FJPJMGDP_IMGR set flag_valid = 0 where ID = #{id}
  233. </update>
  234. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjpjmgdpImgr">
  235. update BIS_INSP_FJPJMGDP_IMGR
  236. <trim prefix="set" suffixOverrides=",">
  237. F_4_4_1 = #{f441},
  238. <if test="note != null and note != ''">NOTE = #{note},</if>
  239. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  240. <if test="intm != null">INTM = #{intm},</if>
  241. <if test="uptm != null">UPTM = #{uptm},</if>
  242. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  243. <if test="state != null and state != ''">STATE = #{state},</if>
  244. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  245. F_4_1_1 = #{f411},
  246. F_4_1_2 = #{f412},
  247. F_4_1_3 = #{f413},
  248. F_4_1_4 = #{f414},
  249. F_4_1_5 = #{f415},
  250. F_4_1_6 = #{f416},
  251. F_4_1_7 = #{f417},
  252. F_4_1_8 = #{f418},
  253. F_4_1_9 = #{f419},
  254. F_4_1_10 = #{f4110},
  255. F_4_1_11 = #{f4111},
  256. F_4_1_12 = #{f4112},
  257. F_4_1_13 = #{f4113},
  258. F_4_1_14 = #{f4114},
  259. F_4_2_1 = #{f421},
  260. F_4_2_2 = #{f422},
  261. F_4_2_3 = #{f423},
  262. F_4_2_4 = #{f424},
  263. F_4_2_5 = #{f425},
  264. F_4_2_6 = #{f426},
  265. F_4_2_7 = #{f427},
  266. F_4_2_8 = #{f428},
  267. F_4_2_9 = #{f429},
  268. F_4_2_10 = #{f4210},
  269. F_4_2_11 = #{f4211},
  270. F_4_2_12 = #{f4212},
  271. F_4_2_13 = #{f4213},
  272. F_4_2_14 = #{f4214},
  273. F_4_2_15 = #{f4215},
  274. F_4_2_16 = #{f4216},
  275. F_4_2_17 = #{f4217},
  276. F_4_3_1 = #{f431},
  277. F_4_3_2 = #{f432},
  278. F_4_3_3 = #{f433},
  279. F_4_3_4 = #{f434},
  280. F_4_3_5 = #{f435},
  281. F_4_3_6 = #{f436},
  282. F_4_3_7 = #{f437},
  283. F_4_3_8 = #{f438},
  284. </trim>
  285. <where>ID = #{id}</where>
  286. </update>
  287. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjpjmgdpImgr">
  288. update BIS_INSP_FJPJMGDP_IMGR
  289. <trim prefix="set" suffixOverrides=",">
  290. F_4_4_1 = #{f441},
  291. <if test="note != null and note != ''">NOTE = #{note},</if>
  292. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  293. <if test="intm != null">INTM = #{intm},</if>
  294. <if test="uptm != null">UPTM = #{uptm},</if>
  295. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  296. <if test="state != null and state != ''">STATE = #{state},</if>
  297. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  298. F_4_1_1 = #{f411},
  299. F_4_1_2 = #{f412},
  300. F_4_1_3 = #{f413},
  301. F_4_1_4 = #{f414},
  302. F_4_1_5 = #{f415},
  303. F_4_1_6 = #{f416},
  304. F_4_1_7 = #{f417},
  305. F_4_1_8 = #{f418},
  306. F_4_1_9 = #{f419},
  307. F_4_1_10 = #{f4110},
  308. F_4_1_11 = #{f4111},
  309. F_4_1_12 = #{f4112},
  310. F_4_1_13 = #{f4113},
  311. F_4_1_14 = #{f4114},
  312. F_4_2_1 = #{f421},
  313. F_4_2_2 = #{f422},
  314. F_4_2_3 = #{f423},
  315. F_4_2_4 = #{f424},
  316. F_4_2_5 = #{f425},
  317. F_4_2_6 = #{f426},
  318. F_4_2_7 = #{f427},
  319. F_4_2_8 = #{f428},
  320. F_4_2_9 = #{f429},
  321. F_4_2_10 = #{f4210},
  322. F_4_2_11 = #{f4211},
  323. F_4_2_12 = #{f4212},
  324. F_4_2_13 = #{f4213},
  325. F_4_2_14 = #{f4214},
  326. F_4_2_15 = #{f4215},
  327. F_4_2_16 = #{f4216},
  328. F_4_2_17 = #{f4217},
  329. F_4_3_1 = #{f431},
  330. F_4_3_2 = #{f432},
  331. F_4_3_3 = #{f433},
  332. F_4_3_4 = #{f434},
  333. F_4_3_5 = #{f435},
  334. F_4_3_6 = #{f436},
  335. F_4_3_7 = #{f437},
  336. F_4_3_8 = #{f438},
  337. </trim>
  338. <include refid="page_where" />
  339. </update>
  340. <!-- 其他自定义SQL -->
  341. </mapper>