BisInspFjaccpImgrDao.xml 15 KB

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