BisInspFjpjlglImgrDao.xml 13 KB

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