BisInspWrm2021SpotaDao.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  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.BisInspWrm2021SpotaDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWrm2021Spota" id="bisInspWrm2021SpotaResultMap">
  5. <result property="dataStat" column="DATA_STAT"/>
  6. <result property="id" column="ID"/>
  7. <result property="rgstrId" column="RGSTR_ID"/>
  8. <result property="bchkDep" column="BCHK_DEP"/>
  9. <result property="bchkDepCon" column="BCHK_DEP_CON"/>
  10. <result property="bchkDepDuy" column="BCHK_DEP_DUY"/>
  11. <result property="bchkDepDuyTel" column="BCHK_DEP_DUY_TEL"/>
  12. <result property="chkDep" column="CHK_DEP"/>
  13. <result property="chkDepPers" column="CHK_DEP_PERS"/>
  14. <result property="chkTm" column="CHK_TM"/>
  15. <result property="isWtAssg" column="IS_WT_ASSG"/>
  16. <result property="isOverCassg" column="IS_OVER_CASSG"/>
  17. <result property="isOverAssg" column="IS_OVER_ASSG"/>
  18. <result property="isOverAckCassg" column="IS_OVER_ACK_CASSG"/>
  19. <result property="isOverAckAssg" column="IS_OVER_ACK_ASSG"/>
  20. <result property="isOverAppCassg" column="IS_OVER_APP_CASSG"/>
  21. <result property="isOverAppAssg" column="IS_OVER_APP_ASSG"/>
  22. <result property="isBuldBook" column="IS_BULD_BOOK"/>
  23. <result property="isAppAck" column="IS_APP_ACK"/>
  24. <result property="isChkAppAck" column="IS_CHK_APP_ACK"/>
  25. <result property="isChkUsr" column="IS_CHK_USR"/>
  26. <result property="isChkUsrReport" column="IS_CHK_USR_REPORT"/>
  27. <result property="isBreachAdd" column="IS_BREACH_ADD"/>
  28. <result property="isBuldGov" column="IS_BULD_GOV"/>
  29. <result property="isChkIn" column="IS_CHK_IN"/>
  30. <result property="isMendBook" column="IS_MEND_BOOK"/>
  31. <result property="persId" column="PERS_ID"/>
  32. <result property="intm" column="INTM"/>
  33. <result property="uptm" column="UPTM"/>
  34. <result property="status" column="STATUS"/>
  35. </resultMap>
  36. <sql id="table_columns">
  37. DATA_STAT,
  38. ID,
  39. RGSTR_ID,
  40. BCHK_DEP,
  41. BCHK_DEP_CON,
  42. BCHK_DEP_DUY,
  43. BCHK_DEP_DUY_TEL,
  44. CHK_DEP,
  45. CHK_DEP_PERS,
  46. CHK_TM,
  47. IS_WT_ASSG,
  48. IS_OVER_CASSG,
  49. IS_OVER_ASSG,
  50. IS_OVER_ACK_CASSG,
  51. IS_OVER_ACK_ASSG,
  52. IS_OVER_APP_CASSG,
  53. IS_OVER_APP_ASSG,
  54. IS_BULD_BOOK,
  55. IS_APP_ACK,
  56. IS_CHK_APP_ACK,
  57. IS_CHK_USR,
  58. IS_CHK_USR_REPORT,
  59. IS_BREACH_ADD,
  60. IS_BULD_GOV,
  61. IS_CHK_IN,
  62. IS_MEND_BOOK,
  63. PERS_ID,
  64. INTM,
  65. UPTM,
  66. STATUS
  67. </sql>
  68. <sql id="entity_properties">
  69. #{dataStat},
  70. #{id},
  71. #{rgstrId},
  72. #{bchkDep},
  73. #{bchkDepCon},
  74. #{bchkDepDuy},
  75. #{bchkDepDuyTel},
  76. #{chkDep},
  77. #{chkDepPers},
  78. #{chkTm},
  79. #{isWtAssg},
  80. #{isOverCassg},
  81. #{isOverAssg},
  82. #{isOverAckCassg},
  83. #{isOverAckAssg},
  84. #{isOverAppCassg},
  85. #{isOverAppAssg},
  86. #{isBuldBook},
  87. #{isAppAck},
  88. #{isChkAppAck},
  89. #{isChkUsr},
  90. #{isChkUsrReport},
  91. #{isBreachAdd},
  92. #{isBuldGov},
  93. #{isChkIn},
  94. #{isMendBook},
  95. #{persId},
  96. #{intm},
  97. #{uptm},
  98. #{status}
  99. </sql>
  100. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  101. <sql id="page_where">
  102. <trim prefix="where" prefixOverrides="and | or ">
  103. <if test="dataStat != null and dataStat != ''">
  104. and DATA_STAT = #{dataStat}
  105. </if>
  106. <if test="rgstrId != null and rgstrId != ''">
  107. and RGSTR_ID = #{rgstrId}
  108. </if>
  109. <if test="bchkDep != null and bchkDep != ''">
  110. and BCHK_DEP = #{bchkDep}
  111. </if>
  112. <if test="bchkDepCon != null and bchkDepCon != ''">
  113. and BCHK_DEP_CON = #{bchkDepCon}
  114. </if>
  115. <if test="bchkDepDuy != null and bchkDepDuy != ''">
  116. and BCHK_DEP_DUY = #{bchkDepDuy}
  117. </if>
  118. <if test="bchkDepDuyTel != null and bchkDepDuyTel != ''">
  119. and BCHK_DEP_DUY_TEL = #{bchkDepDuyTel}
  120. </if>
  121. <if test="chkDep != null and chkDep != ''">
  122. and CHK_DEP = #{chkDep}
  123. </if>
  124. <if test="chkDepPers != null and chkDepPers != ''">
  125. and CHK_DEP_PERS = #{chkDepPers}
  126. </if>
  127. <if test="chkTm != null">
  128. and CHK_TM = #{chkTm}
  129. </if>
  130. <if test="isWtAssg != null and isWtAssg != ''">
  131. and IS_WT_ASSG = #{isWtAssg}
  132. </if>
  133. <if test="isOverCassg != null and isOverCassg != ''">
  134. and IS_OVER_CASSG = #{isOverCassg}
  135. </if>
  136. <if test="isOverAssg != null and isOverAssg != ''">
  137. and IS_OVER_ASSG = #{isOverAssg}
  138. </if>
  139. <if test="isOverAckCassg != null and isOverAckCassg != ''">
  140. and IS_OVER_ACK_CASSG = #{isOverAckCassg}
  141. </if>
  142. <if test="isOverAckAssg != null and isOverAckAssg != ''">
  143. and IS_OVER_ACK_ASSG = #{isOverAckAssg}
  144. </if>
  145. <if test="isOverAppCassg != null and isOverAppCassg != ''">
  146. and IS_OVER_APP_CASSG = #{isOverAppCassg}
  147. </if>
  148. <if test="isOverAppAssg != null and isOverAppAssg != ''">
  149. and IS_OVER_APP_ASSG = #{isOverAppAssg}
  150. </if>
  151. <if test="isBuldBook != null and isBuldBook != ''">
  152. and IS_BULD_BOOK = #{isBuldBook}
  153. </if>
  154. <if test="isAppAck != null and isAppAck != ''">
  155. and IS_APP_ACK = #{isAppAck}
  156. </if>
  157. <if test="isChkAppAck != null and isChkAppAck != ''">
  158. and IS_CHK_APP_ACK = #{isChkAppAck}
  159. </if>
  160. <if test="isChkUsr != null and isChkUsr != ''">
  161. and IS_CHK_USR = #{isChkUsr}
  162. </if>
  163. <if test="isChkUsrReport != null and isChkUsrReport != ''">
  164. and IS_CHK_USR_REPORT = #{isChkUsrReport}
  165. </if>
  166. <if test="isBreachAdd != null and isBreachAdd != ''">
  167. and IS_BREACH_ADD = #{isBreachAdd}
  168. </if>
  169. <if test="isBuldGov != null and isBuldGov != ''">
  170. and IS_BULD_GOV = #{isBuldGov}
  171. </if>
  172. <if test="isChkIn != null and isChkIn != ''">
  173. and IS_CHK_IN = #{isChkIn}
  174. </if>
  175. <if test="isMendBook != null and isMendBook != ''">
  176. and IS_MEND_BOOK = #{isMendBook}
  177. </if>
  178. <if test="persId != null and persId != ''">
  179. and PERS_ID = #{persId}
  180. </if>
  181. <if test="intm != null">
  182. and INTM = #{intm}
  183. </if>
  184. <if test="uptm != null">
  185. and UPTM = #{uptm}
  186. </if>
  187. <if test="status != null and status != ''">
  188. and STATUS = #{status}
  189. </if>
  190. and DATA_STAT='0'
  191. </trim>
  192. </sql>
  193. <select id="get" resultMap="bisInspWrm2021SpotaResultMap" parameterType="String">
  194. select
  195. <include refid="table_columns"/>
  196. from BIS_INSP_WRM2021_SPOTA where RGSTR_ID = #{id}
  197. </select>
  198. <select id="getBy" resultMap="bisInspWrm2021SpotaResultMap">
  199. select
  200. <include refid="table_columns"/>
  201. from BIS_INSP_WRM2021_SPOTA
  202. <include refid="page_where"/>
  203. </select>
  204. <select id="findAll" resultMap="bisInspWrm2021SpotaResultMap">
  205. select
  206. <include refid="table_columns"/>
  207. from BIS_INSP_WRM2021_SPOTA
  208. </select>
  209. <select id="findList" resultMap="bisInspWrm2021SpotaResultMap">
  210. select
  211. <include refid="table_columns"/>
  212. from BIS_INSP_WRM2021_SPOTA
  213. <include refid="page_where"/>
  214. </select>
  215. <select id="selectCount" resultType="int">
  216. select count(ID) from BIS_INSP_WRM2021_SPOTA
  217. <include refid="page_where"/>
  218. </select>
  219. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrm2021Spota">
  220. insert into BIS_INSP_WRM2021_SPOTA(
  221. <include refid="table_columns"/>
  222. )
  223. values (
  224. <include refid="entity_properties"/>
  225. )
  226. </insert>
  227. <delete id="delete" parameterType="java.lang.String">
  228. update BIS_INSP_WRM2021_SPOTA set DATA_STAT='9' where ID = #{id}
  229. </delete>
  230. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrm2021Spota">
  231. update BIS_INSP_WRM2021_SPOTA set DATA_STAT='9'
  232. <include refid="page_where"/>
  233. </delete>
  234. <update id="deleteInFlag" parameterType="java.lang.String">
  235. update BIS_INSP_WRM2021_SPOTA set DATA_STAT = '9' where ID = #{id}
  236. </update>
  237. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrm2021Spota">
  238. update BIS_INSP_WRM2021_SPOTA
  239. <trim prefix="set" suffixOverrides=",">
  240. <if test="dataStat != null and dataStat != ''">DATA_STAT
  241. = #{dataStat},
  242. </if>
  243. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  244. = #{rgstrId},
  245. </if>
  246. <if test="bchkDep != null and bchkDep != ''">BCHK_DEP
  247. = #{bchkDep},
  248. </if>
  249. <if test="bchkDepCon != null and bchkDepCon != ''">BCHK_DEP_CON
  250. = #{bchkDepCon},
  251. </if>
  252. <if test="bchkDepDuy != null and bchkDepDuy != ''">BCHK_DEP_DUY
  253. = #{bchkDepDuy},
  254. </if>
  255. <if test="bchkDepDuyTel != null and bchkDepDuyTel != ''">BCHK_DEP_DUY_TEL
  256. = #{bchkDepDuyTel},
  257. </if>
  258. <if test="chkDep != null and chkDep != ''">CHK_DEP
  259. = #{chkDep},
  260. </if>
  261. <if test="chkDepPers != null and chkDepPers != ''">CHK_DEP_PERS
  262. = #{chkDepPers},
  263. </if>
  264. <if test="chkTm != null">CHK_TM
  265. = #{chkTm},
  266. </if>
  267. <if test="isWtAssg != null and isWtAssg != ''">IS_WT_ASSG
  268. = #{isWtAssg},
  269. </if>
  270. <if test="isOverCassg != null and isOverCassg != ''">IS_OVER_CASSG
  271. = #{isOverCassg},
  272. </if>
  273. <if test="isOverAssg != null and isOverAssg != ''">IS_OVER_ASSG
  274. = #{isOverAssg},
  275. </if>
  276. <if test="isOverAckCassg != null and isOverAckCassg != ''">IS_OVER_ACK_CASSG
  277. = #{isOverAckCassg},
  278. </if>
  279. <if test="isOverAckAssg != null and isOverAckAssg != ''">IS_OVER_ACK_ASSG
  280. = #{isOverAckAssg},
  281. </if>
  282. <if test="isOverAppCassg != null and isOverAppCassg != ''">IS_OVER_APP_CASSG
  283. = #{isOverAppCassg},
  284. </if>
  285. <if test="isOverAppAssg != null and isOverAppAssg != ''">IS_OVER_APP_ASSG
  286. = #{isOverAppAssg},
  287. </if>
  288. <if test="isBuldBook != null and isBuldBook != ''">IS_BULD_BOOK
  289. = #{isBuldBook},
  290. </if>
  291. <if test="isAppAck != null and isAppAck != ''">IS_APP_ACK
  292. = #{isAppAck},
  293. </if>
  294. <if test="isChkAppAck != null and isChkAppAck != ''">IS_CHK_APP_ACK
  295. = #{isChkAppAck},
  296. </if>
  297. <if test="isChkUsr != null and isChkUsr != ''">IS_CHK_USR
  298. = #{isChkUsr},
  299. </if>
  300. <if test="isChkUsrReport != null and isChkUsrReport != ''">IS_CHK_USR_REPORT
  301. = #{isChkUsrReport},
  302. </if>
  303. <if test="isBreachAdd != null and isBreachAdd != ''">IS_BREACH_ADD
  304. = #{isBreachAdd},
  305. </if>
  306. <if test="isBuldGov != null and isBuldGov != ''">IS_BULD_GOV
  307. = #{isBuldGov},
  308. </if>
  309. <if test="isChkIn != null and isChkIn != ''">IS_CHK_IN
  310. = #{isChkIn},
  311. </if>
  312. <if test="isMendBook != null and isMendBook != ''">IS_MEND_BOOK
  313. = #{isMendBook},
  314. </if>
  315. <if test="persId != null and persId != ''">PERS_ID
  316. = #{persId},
  317. </if>
  318. <if test="intm != null">INTM
  319. = #{intm},
  320. </if>
  321. <if test="uptm != null">UPTM
  322. = #{uptm},
  323. </if>
  324. <if test="status != null and status != ''">STATUS
  325. = #{status},
  326. </if>
  327. </trim>
  328. <where>ID = #{id}</where>
  329. </update>
  330. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWrm2021Spota">
  331. update BIS_INSP_WRM2021_SPOTA
  332. <trim prefix="set" suffixOverrides=",">
  333. <if test="dataStat != null and dataStat != ''">DATA_STAT
  334. = #{dataStat},
  335. </if>
  336. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  337. = #{rgstrId},
  338. </if>
  339. <if test="bchkDep != null and bchkDep != ''">BCHK_DEP
  340. = #{bchkDep},
  341. </if>
  342. <if test="bchkDepCon != null and bchkDepCon != ''">BCHK_DEP_CON
  343. = #{bchkDepCon},
  344. </if>
  345. <if test="bchkDepDuy != null and bchkDepDuy != ''">BCHK_DEP_DUY
  346. = #{bchkDepDuy},
  347. </if>
  348. <if test="bchkDepDuyTel != null and bchkDepDuyTel != ''">BCHK_DEP_DUY_TEL
  349. = #{bchkDepDuyTel},
  350. </if>
  351. <if test="chkDep != null and chkDep != ''">CHK_DEP
  352. = #{chkDep},
  353. </if>
  354. <if test="chkDepPers != null and chkDepPers != ''">CHK_DEP_PERS
  355. = #{chkDepPers},
  356. </if>
  357. <if test="chkTm != null">CHK_TM
  358. = #{chkTm},
  359. </if>
  360. <if test="isWtAssg != null and isWtAssg != ''">IS_WT_ASSG
  361. = #{isWtAssg},
  362. </if>
  363. <if test="isOverCassg != null and isOverCassg != ''">IS_OVER_CASSG
  364. = #{isOverCassg},
  365. </if>
  366. <if test="isOverAssg != null and isOverAssg != ''">IS_OVER_ASSG
  367. = #{isOverAssg},
  368. </if>
  369. <if test="isOverAckCassg != null and isOverAckCassg != ''">IS_OVER_ACK_CASSG
  370. = #{isOverAckCassg},
  371. </if>
  372. <if test="isOverAckAssg != null and isOverAckAssg != ''">IS_OVER_ACK_ASSG
  373. = #{isOverAckAssg},
  374. </if>
  375. <if test="isOverAppCassg != null and isOverAppCassg != ''">IS_OVER_APP_CASSG
  376. = #{isOverAppCassg},
  377. </if>
  378. <if test="isOverAppAssg != null and isOverAppAssg != ''">IS_OVER_APP_ASSG
  379. = #{isOverAppAssg},
  380. </if>
  381. <if test="isBuldBook != null and isBuldBook != ''">IS_BULD_BOOK
  382. = #{isBuldBook},
  383. </if>
  384. <if test="isAppAck != null and isAppAck != ''">IS_APP_ACK
  385. = #{isAppAck},
  386. </if>
  387. <if test="isChkAppAck != null and isChkAppAck != ''">IS_CHK_APP_ACK
  388. = #{isChkAppAck},
  389. </if>
  390. <if test="isChkUsr != null and isChkUsr != ''">IS_CHK_USR
  391. = #{isChkUsr},
  392. </if>
  393. <if test="isChkUsrReport != null and isChkUsrReport != ''">IS_CHK_USR_REPORT
  394. = #{isChkUsrReport},
  395. </if>
  396. <if test="isBreachAdd != null and isBreachAdd != ''">IS_BREACH_ADD
  397. = #{isBreachAdd},
  398. </if>
  399. <if test="isBuldGov != null and isBuldGov != ''">IS_BULD_GOV
  400. = #{isBuldGov},
  401. </if>
  402. <if test="isChkIn != null and isChkIn != ''">IS_CHK_IN
  403. = #{isChkIn},
  404. </if>
  405. <if test="isMendBook != null and isMendBook != ''">IS_MEND_BOOK
  406. = #{isMendBook},
  407. </if>
  408. <if test="persId != null and persId != ''">PERS_ID
  409. = #{persId},
  410. </if>
  411. <if test="intm != null">INTM
  412. = #{intm},
  413. </if>
  414. <if test="uptm != null">UPTM
  415. = #{uptm},
  416. </if>
  417. <if test="status != null and status != ''">STATUS
  418. = #{status},
  419. </if>
  420. </trim>
  421. <include refid="page_where"/>
  422. </update>
  423. <!-- 其他自定义SQL -->
  424. </mapper>