BisInspFjpjcsuImgrDao.xml 11 KB

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