BisInspVillgdQqeDao.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  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.BisInspVillgdQqeDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspVillgdQqe" id="bisInspVillgdQqeResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="isPkx" column="IS_PKX"/>
  8. <result property="zcWaterIsMake" column="ZC_WATER_IS_MAKE"/>
  9. <result property="zcWaterFilename" column="ZC_WATER_FILENAME"/>
  10. <result property="zcWaterFilenum" column="ZC_WATER_FILENUM"/>
  11. <result property="zcWaterDepart" column="ZC_WATER_DEPART"/>
  12. <result property="zcWaterTime" column="ZC_WATER_TIME"/>
  13. <result property="zcWaterNote" column="ZC_WATER_NOTE"/>
  14. <result property="zcBuzhuIsMake" column="ZC_BUZHU_IS_MAKE"/>
  15. <result property="zcBuzhuFilename" column="ZC_BUZHU_FILENAME"/>
  16. <result property="zcBuzhuFilenum" column="ZC_BUZHU_FILENUM"/>
  17. <result property="zcBuzhuDepart" column="ZC_BUZHU_DEPART"/>
  18. <result property="zcBuzhuTime" column="ZC_BUZHU_TIME"/>
  19. <result property="zcBuzhuNote" column="ZC_BUZHU_NOTE"/>
  20. <result property="zcOtherIsMake" column="ZC_OTHER_IS_MAKE"/>
  21. <result property="zcOtherIsFilename" column="ZC_OTHER_IS_FILENAME"/>
  22. <result property="zcOtherIsFilenum" column="ZC_OTHER_IS_FILENUM"/>
  23. <result property="zcOtherIsDepart" column="ZC_OTHER_IS_DEPART"/>
  24. <result property="zcOtherIsTime" column="ZC_OTHER_IS_TIME"/>
  25. <result property="zcOtherIsNote" column="ZC_OTHER_IS_NOTE"/>
  26. <result property="persId" column="PERS_ID"/>
  27. <result property="intm" column="INTM"/>
  28. <result property="uptm" column="UPTM"/>
  29. <result property="note" column="NOTE"/>
  30. <result property="dataStat" column="DATA_STAT"/>
  31. </resultMap>
  32. <sql id="table_columns">
  33. ID,
  34. RGSTR_ID,
  35. IS_PKX,
  36. ZC_WATER_IS_MAKE,
  37. ZC_WATER_FILENAME,
  38. ZC_WATER_FILENUM,
  39. ZC_WATER_DEPART,
  40. ZC_WATER_TIME,
  41. ZC_WATER_NOTE,
  42. ZC_BUZHU_IS_MAKE,
  43. ZC_BUZHU_FILENAME,
  44. ZC_BUZHU_FILENUM,
  45. ZC_BUZHU_DEPART,
  46. ZC_BUZHU_TIME,
  47. ZC_BUZHU_NOTE,
  48. ZC_OTHER_IS_MAKE,
  49. ZC_OTHER_IS_FILENAME,
  50. ZC_OTHER_IS_FILENUM,
  51. ZC_OTHER_IS_DEPART,
  52. ZC_OTHER_IS_TIME,
  53. ZC_OTHER_IS_NOTE,
  54. PERS_ID,
  55. INTM,
  56. UPTM,
  57. NOTE,
  58. DATA_STAT
  59. </sql>
  60. <sql id="entity_properties">
  61. #{id},
  62. #{rgstrId},
  63. #{isPkx},
  64. #{zcWaterIsMake},
  65. #{zcWaterFilename},
  66. #{zcWaterFilenum},
  67. #{zcWaterDepart},
  68. #{zcWaterTime},
  69. #{zcWaterNote},
  70. #{zcBuzhuIsMake},
  71. #{zcBuzhuFilename},
  72. #{zcBuzhuFilenum},
  73. #{zcBuzhuDepart},
  74. #{zcBuzhuTime},
  75. #{zcBuzhuNote},
  76. #{zcOtherIsMake},
  77. #{zcOtherIsFilename},
  78. #{zcOtherIsFilenum},
  79. #{zcOtherIsDepart},
  80. #{zcOtherIsTime},
  81. #{zcOtherIsNote},
  82. #{persId},
  83. #{intm},
  84. #{uptm},
  85. #{note},
  86. #{dataStat}
  87. </sql>
  88. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  89. <sql id="page_where">
  90. <trim prefix="where" prefixOverrides="and | or ">
  91. <if test="rgstrId != null and rgstrId != ''">
  92. and RGSTR_ID = #{rgstrId}
  93. </if>
  94. <if test="isPkx != null and isPkx != ''">
  95. and IS_PKX = #{isPkx}
  96. </if>
  97. <if test="zcWaterIsMake != null and zcWaterIsMake != ''">
  98. and ZC_WATER_IS_MAKE = #{zcWaterIsMake}
  99. </if>
  100. <if test="zcWaterFilename != null and zcWaterFilename != ''">
  101. and ZC_WATER_FILENAME = #{zcWaterFilename}
  102. </if>
  103. <if test="zcWaterFilenum != null and zcWaterFilenum != ''">
  104. and ZC_WATER_FILENUM = #{zcWaterFilenum}
  105. </if>
  106. <if test="zcWaterDepart != null and zcWaterDepart != ''">
  107. and ZC_WATER_DEPART = #{zcWaterDepart}
  108. </if>
  109. <if test="zcWaterTime != null and zcWaterTime != ''">
  110. and ZC_WATER_TIME = #{zcWaterTime}
  111. </if>
  112. <if test="zcWaterNote != null and zcWaterNote != ''">
  113. and ZC_WATER_NOTE = #{zcWaterNote}
  114. </if>
  115. <if test="zcBuzhuIsMake != null and zcBuzhuIsMake != ''">
  116. and ZC_BUZHU_IS_MAKE = #{zcBuzhuIsMake}
  117. </if>
  118. <if test="zcBuzhuFilename != null and zcBuzhuFilename != ''">
  119. and ZC_BUZHU_FILENAME = #{zcBuzhuFilename}
  120. </if>
  121. <if test="zcBuzhuFilenum != null and zcBuzhuFilenum != ''">
  122. and ZC_BUZHU_FILENUM = #{zcBuzhuFilenum}
  123. </if>
  124. <if test="zcBuzhuDepart != null and zcBuzhuDepart != ''">
  125. and ZC_BUZHU_DEPART = #{zcBuzhuDepart}
  126. </if>
  127. <if test="zcBuzhuTime != null and zcBuzhuTime != ''">
  128. and ZC_BUZHU_TIME = #{zcBuzhuTime}
  129. </if>
  130. <if test="zcBuzhuNote != null and zcBuzhuNote != ''">
  131. and ZC_BUZHU_NOTE = #{zcBuzhuNote}
  132. </if>
  133. <if test="zcOtherIsMake != null and zcOtherIsMake != ''">
  134. and ZC_OTHER_IS_MAKE = #{zcOtherIsMake}
  135. </if>
  136. <if test="zcOtherIsFilename != null and zcOtherIsFilename != ''">
  137. and ZC_OTHER_IS_FILENAME = #{zcOtherIsFilename}
  138. </if>
  139. <if test="zcOtherIsFilenum != null and zcOtherIsFilenum != ''">
  140. and ZC_OTHER_IS_FILENUM = #{zcOtherIsFilenum}
  141. </if>
  142. <if test="zcOtherIsDepart != null and zcOtherIsDepart != ''">
  143. and ZC_OTHER_IS_DEPART = #{zcOtherIsDepart}
  144. </if>
  145. <if test="zcOtherIsTime != null and zcOtherIsTime != ''">
  146. and ZC_OTHER_IS_TIME = #{zcOtherIsTime}
  147. </if>
  148. <if test="zcOtherIsNote != null and zcOtherIsNote != ''">
  149. and ZC_OTHER_IS_NOTE = #{zcOtherIsNote}
  150. </if>
  151. <if test="persId != null and persId != ''">
  152. and PERS_ID = #{persId}
  153. </if>
  154. <if test="intm != null">
  155. and INTM = #{intm}
  156. </if>
  157. <if test="uptm != null">
  158. and UPTM = #{uptm}
  159. </if>
  160. <if test="note != null and note != ''">
  161. and NOTE = #{note}
  162. </if>
  163. <if test="dataStat != null and dataStat != ''">
  164. and DATA_STAT = #{dataStat}
  165. </if>
  166. and DATA_STAT='0'
  167. </trim>
  168. </sql>
  169. <select id="get" resultMap="bisInspVillgdQqeResultMap" parameterType="String">
  170. select
  171. <include refid="table_columns"/>
  172. from BIS_INSP_VILLGD_QQE where RGSTR_ID = #{id}
  173. </select>
  174. <select id="getBy" resultMap="bisInspVillgdQqeResultMap">
  175. select
  176. <include refid="table_columns"/>
  177. from BIS_INSP_VILLGD_QQE
  178. <include refid="page_where"/>
  179. </select>
  180. <select id="findAll" resultMap="bisInspVillgdQqeResultMap">
  181. select
  182. <include refid="table_columns"/>
  183. from BIS_INSP_VILLGD_QQE
  184. </select>
  185. <select id="findList" resultMap="bisInspVillgdQqeResultMap">
  186. select
  187. <include refid="table_columns"/>
  188. from BIS_INSP_VILLGD_QQE
  189. <include refid="page_where"/>
  190. </select>
  191. <select id="selectCount" resultType="int">
  192. select count(ID) from BIS_INSP_VILLGD_QQE
  193. <include refid="page_where"/>
  194. </select>
  195. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdQqe">
  196. insert into BIS_INSP_VILLGD_QQE(
  197. <include refid="table_columns"/>
  198. )
  199. values (
  200. <include refid="entity_properties"/>
  201. )
  202. </insert>
  203. <delete id="delete" parameterType="java.lang.String">
  204. update BIS_INSP_VILLGD_QQE set DATA_STAT='9' where ID = #{id}
  205. </delete>
  206. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdQqe">
  207. update BIS_INSP_VILLGD_QQE set DATA_STAT='9'
  208. <include refid="page_where"/>
  209. </delete>
  210. <update id="deleteInFlag" parameterType="java.lang.String">
  211. update BIS_INSP_VILLGD_QQE set DATA_STAT = '9' where ID = #{id}
  212. </update>
  213. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdQqe">
  214. update BIS_INSP_VILLGD_QQE
  215. <trim prefix="set" suffixOverrides=",">
  216. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  217. = #{rgstrId},
  218. </if>
  219. <if test="isPkx != null and isPkx != ''">IS_PKX
  220. = #{isPkx},
  221. </if>
  222. <if test="zcWaterIsMake != null and zcWaterIsMake != ''">ZC_WATER_IS_MAKE
  223. = #{zcWaterIsMake},
  224. </if>
  225. <if test="zcWaterFilename != null and zcWaterFilename != ''">ZC_WATER_FILENAME
  226. = #{zcWaterFilename},
  227. </if>
  228. <if test="zcWaterFilenum != null and zcWaterFilenum != ''">ZC_WATER_FILENUM
  229. = #{zcWaterFilenum},
  230. </if>
  231. <if test="zcWaterDepart != null and zcWaterDepart != ''">ZC_WATER_DEPART
  232. = #{zcWaterDepart},
  233. </if>
  234. <if test="zcWaterTime != null and zcWaterTime != ''">ZC_WATER_TIME
  235. = #{zcWaterTime},
  236. </if>
  237. <if test="zcWaterNote != null and zcWaterNote != ''">ZC_WATER_NOTE
  238. = #{zcWaterNote},
  239. </if>
  240. <if test="zcBuzhuIsMake != null and zcBuzhuIsMake != ''">ZC_BUZHU_IS_MAKE
  241. = #{zcBuzhuIsMake},
  242. </if>
  243. <if test="zcBuzhuFilename != null and zcBuzhuFilename != ''">ZC_BUZHU_FILENAME
  244. = #{zcBuzhuFilename},
  245. </if>
  246. <if test="zcBuzhuFilenum != null and zcBuzhuFilenum != ''">ZC_BUZHU_FILENUM
  247. = #{zcBuzhuFilenum},
  248. </if>
  249. <if test="zcBuzhuDepart != null and zcBuzhuDepart != ''">ZC_BUZHU_DEPART
  250. = #{zcBuzhuDepart},
  251. </if>
  252. <if test="zcBuzhuTime != null and zcBuzhuTime != ''">ZC_BUZHU_TIME
  253. = #{zcBuzhuTime},
  254. </if>
  255. <if test="zcBuzhuNote != null and zcBuzhuNote != ''">ZC_BUZHU_NOTE
  256. = #{zcBuzhuNote},
  257. </if>
  258. <if test="zcOtherIsMake != null and zcOtherIsMake != ''">ZC_OTHER_IS_MAKE
  259. = #{zcOtherIsMake},
  260. </if>
  261. <if test="zcOtherIsFilename != null and zcOtherIsFilename != ''">ZC_OTHER_IS_FILENAME
  262. = #{zcOtherIsFilename},
  263. </if>
  264. <if test="zcOtherIsFilenum != null and zcOtherIsFilenum != ''">ZC_OTHER_IS_FILENUM
  265. = #{zcOtherIsFilenum},
  266. </if>
  267. <if test="zcOtherIsDepart != null and zcOtherIsDepart != ''">ZC_OTHER_IS_DEPART
  268. = #{zcOtherIsDepart},
  269. </if>
  270. <if test="zcOtherIsTime != null and zcOtherIsTime != ''">ZC_OTHER_IS_TIME
  271. = #{zcOtherIsTime},
  272. </if>
  273. <if test="zcOtherIsNote != null and zcOtherIsNote != ''">ZC_OTHER_IS_NOTE
  274. = #{zcOtherIsNote},
  275. </if>
  276. <if test="persId != null and persId != ''">PERS_ID
  277. = #{persId},
  278. </if>
  279. <if test="intm != null">INTM
  280. = #{intm},
  281. </if>
  282. <if test="uptm != null">UPTM
  283. = #{uptm},
  284. </if>
  285. <if test="note != null and note != ''">NOTE
  286. = #{note},
  287. </if>
  288. <if test="dataStat != null and dataStat != ''">DATA_STAT
  289. = #{dataStat},
  290. </if>
  291. </trim>
  292. <where>ID = #{id}</where>
  293. </update>
  294. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVillgdQqe">
  295. update BIS_INSP_VILLGD_QQE
  296. <trim prefix="set" suffixOverrides=",">
  297. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  298. = #{rgstrId},
  299. </if>
  300. <if test="isPkx != null and isPkx != ''">IS_PKX
  301. = #{isPkx},
  302. </if>
  303. <if test="zcWaterIsMake != null and zcWaterIsMake != ''">ZC_WATER_IS_MAKE
  304. = #{zcWaterIsMake},
  305. </if>
  306. <if test="zcWaterFilename != null and zcWaterFilename != ''">ZC_WATER_FILENAME
  307. = #{zcWaterFilename},
  308. </if>
  309. <if test="zcWaterFilenum != null and zcWaterFilenum != ''">ZC_WATER_FILENUM
  310. = #{zcWaterFilenum},
  311. </if>
  312. <if test="zcWaterDepart != null and zcWaterDepart != ''">ZC_WATER_DEPART
  313. = #{zcWaterDepart},
  314. </if>
  315. <if test="zcWaterTime != null and zcWaterTime != ''">ZC_WATER_TIME
  316. = #{zcWaterTime},
  317. </if>
  318. <if test="zcWaterNote != null and zcWaterNote != ''">ZC_WATER_NOTE
  319. = #{zcWaterNote},
  320. </if>
  321. <if test="zcBuzhuIsMake != null and zcBuzhuIsMake != ''">ZC_BUZHU_IS_MAKE
  322. = #{zcBuzhuIsMake},
  323. </if>
  324. <if test="zcBuzhuFilename != null and zcBuzhuFilename != ''">ZC_BUZHU_FILENAME
  325. = #{zcBuzhuFilename},
  326. </if>
  327. <if test="zcBuzhuFilenum != null and zcBuzhuFilenum != ''">ZC_BUZHU_FILENUM
  328. = #{zcBuzhuFilenum},
  329. </if>
  330. <if test="zcBuzhuDepart != null and zcBuzhuDepart != ''">ZC_BUZHU_DEPART
  331. = #{zcBuzhuDepart},
  332. </if>
  333. <if test="zcBuzhuTime != null and zcBuzhuTime != ''">ZC_BUZHU_TIME
  334. = #{zcBuzhuTime},
  335. </if>
  336. <if test="zcBuzhuNote != null and zcBuzhuNote != ''">ZC_BUZHU_NOTE
  337. = #{zcBuzhuNote},
  338. </if>
  339. <if test="zcOtherIsMake != null and zcOtherIsMake != ''">ZC_OTHER_IS_MAKE
  340. = #{zcOtherIsMake},
  341. </if>
  342. <if test="zcOtherIsFilename != null and zcOtherIsFilename != ''">ZC_OTHER_IS_FILENAME
  343. = #{zcOtherIsFilename},
  344. </if>
  345. <if test="zcOtherIsFilenum != null and zcOtherIsFilenum != ''">ZC_OTHER_IS_FILENUM
  346. = #{zcOtherIsFilenum},
  347. </if>
  348. <if test="zcOtherIsDepart != null and zcOtherIsDepart != ''">ZC_OTHER_IS_DEPART
  349. = #{zcOtherIsDepart},
  350. </if>
  351. <if test="zcOtherIsTime != null and zcOtherIsTime != ''">ZC_OTHER_IS_TIME
  352. = #{zcOtherIsTime},
  353. </if>
  354. <if test="zcOtherIsNote != null and zcOtherIsNote != ''">ZC_OTHER_IS_NOTE
  355. = #{zcOtherIsNote},
  356. </if>
  357. <if test="persId != null and persId != ''">PERS_ID
  358. = #{persId},
  359. </if>
  360. <if test="intm != null">INTM
  361. = #{intm},
  362. </if>
  363. <if test="uptm != null">UPTM
  364. = #{uptm},
  365. </if>
  366. <if test="note != null and note != ''">NOTE
  367. = #{note},
  368. </if>
  369. <if test="dataStat != null and dataStat != ''">DATA_STAT
  370. = #{dataStat},
  371. </if>
  372. </trim>
  373. <include refid="page_where"/>
  374. </update>
  375. <!-- 其他自定义SQL -->
  376. </mapper>