BisInspFjwtenfKeyDao.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  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.BisInspFjwtenfKeyDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspFjwtenfKey" id="bisInspFjwtenfKeyResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="isImpXjp" column="IS_IMP_XJP"/>
  8. <result property="isAskBlack" column="IS_ASK_BLACK"/>
  9. <result property="isPblmGov" column="IS_PBLM_GOV"/>
  10. <result property="isPubBook" column="IS_PUB_BOOK"/>
  11. <result property="isMakSys" column="IS_MAK_SYS"/>
  12. <result property="isChkPers" column="IS_CHK_PERS"/>
  13. <result property="isPubOut" column="IS_PUB_OUT"/>
  14. <result property="isImageSys" column="IS_IMAGE_SYS"/>
  15. <result property="isMakOrg" column="IS_MAK_ORG"/>
  16. <result property="isPubList" column="IS_PUB_LIST"/>
  17. <result property="isSysStudy" column="IS_SYS_STUDY"/>
  18. <result property="isDistReg" column="IS_DIST_REG"/>
  19. <result property="isPblmHndl" column="IS_PBLM_HNDL"/>
  20. <result property="isPenalHndl" column="IS_PENAL_HNDL"/>
  21. <result property="isAbusePower" column="IS_ABUSE_POWER"/>
  22. <result property="isServiceLaw" column="IS_SERVICE_LAW"/>
  23. <result property="isThreeErr" column="IS_THREE_ERR"/>
  24. <result property="isCostPlan" column="IS_COST_PLAN"/>
  25. <result property="isEqpMgn" column="IS_EQP_MGN"/>
  26. <result property="isChkCrd" column="IS_CHK_CRD"/>
  27. <result property="isOrgTrn" column="IS_ORG_TRN"/>
  28. <result property="isRiverChk" column="IS_RIVER_CHK"/>
  29. <result property="isDepSys" column="IS_DEP_SYS"/>
  30. <result property="isChkUnion" column="IS_CHK_UNION"/>
  31. <result property="isRankGud" column="IS_RANK_GUD"/>
  32. <result property="persId" column="PERS_ID"/>
  33. <result property="intm" column="INTM"/>
  34. <result property="uptm" column="UPTM"/>
  35. <result property="note" column="NOTE"/>
  36. <result property="dataStat" column="DATA_STAT"/>
  37. <result property="state" column="STATE"/>
  38. </resultMap>
  39. <sql id="table_columns">
  40. ID,
  41. RGSTR_ID,
  42. IS_IMP_XJP,
  43. IS_ASK_BLACK,
  44. IS_PBLM_GOV,
  45. IS_PUB_BOOK,
  46. IS_MAK_SYS,
  47. IS_CHK_PERS,
  48. IS_PUB_OUT,
  49. IS_IMAGE_SYS,
  50. IS_MAK_ORG,
  51. IS_PUB_LIST,
  52. IS_SYS_STUDY,
  53. IS_DIST_REG,
  54. IS_PBLM_HNDL,
  55. IS_PENAL_HNDL,
  56. IS_ABUSE_POWER,
  57. IS_SERVICE_LAW,
  58. IS_THREE_ERR,
  59. IS_COST_PLAN,
  60. IS_EQP_MGN,
  61. IS_CHK_CRD,
  62. IS_ORG_TRN,
  63. IS_RIVER_CHK,
  64. IS_DEP_SYS,
  65. IS_CHK_UNION,
  66. IS_RANK_GUD,
  67. PERS_ID,
  68. INTM,
  69. UPTM,
  70. NOTE,
  71. DATA_STAT,
  72. STATE
  73. </sql>
  74. <sql id="entity_properties">
  75. #{id},
  76. #{rgstrId},
  77. #{isImpXjp},
  78. #{isAskBlack},
  79. #{isPblmGov},
  80. #{isPubBook},
  81. #{isMakSys},
  82. #{isChkPers},
  83. #{isPubOut},
  84. #{isImageSys},
  85. #{isMakOrg},
  86. #{isPubList},
  87. #{isSysStudy},
  88. #{isDistReg},
  89. #{isPblmHndl},
  90. #{isPenalHndl},
  91. #{isAbusePower},
  92. #{isServiceLaw},
  93. #{isThreeErr},
  94. #{isCostPlan},
  95. #{isEqpMgn},
  96. #{isChkCrd},
  97. #{isOrgTrn},
  98. #{isRiverChk},
  99. #{isDepSys},
  100. #{isChkUnion},
  101. #{isRankGud},
  102. #{persId},
  103. #{intm},
  104. #{uptm},
  105. #{note},
  106. #{dataStat},
  107. #{state}
  108. </sql>
  109. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  110. <sql id="page_where">
  111. <trim prefix="where" prefixOverrides="and | or ">
  112. <if test="rgstrId != null and rgstrId != ''">
  113. and RGSTR_ID = #{rgstrId}
  114. </if>
  115. <if test="isImpXjp != null and isImpXjp != ''">
  116. and IS_IMP_XJP = #{isImpXjp}
  117. </if>
  118. <if test="isAskBlack != null and isAskBlack != ''">
  119. and IS_ASK_BLACK = #{isAskBlack}
  120. </if>
  121. <if test="isPblmGov != null and isPblmGov != ''">
  122. and IS_PBLM_GOV = #{isPblmGov}
  123. </if>
  124. <if test="isPubBook != null and isPubBook != ''">
  125. and IS_PUB_BOOK = #{isPubBook}
  126. </if>
  127. <if test="isMakSys != null and isMakSys != ''">
  128. and IS_MAK_SYS = #{isMakSys}
  129. </if>
  130. <if test="isChkPers != null and isChkPers != ''">
  131. and IS_CHK_PERS = #{isChkPers}
  132. </if>
  133. <if test="isPubOut != null and isPubOut != ''">
  134. and IS_PUB_OUT = #{isPubOut}
  135. </if>
  136. <if test="isImageSys != null and isImageSys != ''">
  137. and IS_IMAGE_SYS = #{isImageSys}
  138. </if>
  139. <if test="isMakOrg != null and isMakOrg != ''">
  140. and IS_MAK_ORG = #{isMakOrg}
  141. </if>
  142. <if test="isPubList != null and isPubList != ''">
  143. and IS_PUB_LIST = #{isPubList}
  144. </if>
  145. <if test="isSysStudy != null and isSysStudy != ''">
  146. and IS_SYS_STUDY = #{isSysStudy}
  147. </if>
  148. <if test="isDistReg != null and isDistReg != ''">
  149. and IS_DIST_REG = #{isDistReg}
  150. </if>
  151. <if test="isPblmHndl != null and isPblmHndl != ''">
  152. and IS_PBLM_HNDL = #{isPblmHndl}
  153. </if>
  154. <if test="isPenalHndl != null and isPenalHndl != ''">
  155. and IS_PENAL_HNDL = #{isPenalHndl}
  156. </if>
  157. <if test="isAbusePower != null and isAbusePower != ''">
  158. and IS_ABUSE_POWER = #{isAbusePower}
  159. </if>
  160. <if test="isServiceLaw != null and isServiceLaw != ''">
  161. and IS_SERVICE_LAW = #{isServiceLaw}
  162. </if>
  163. <if test="isThreeErr != null and isThreeErr != ''">
  164. and IS_THREE_ERR = #{isThreeErr}
  165. </if>
  166. <if test="isCostPlan != null and isCostPlan != ''">
  167. and IS_COST_PLAN = #{isCostPlan}
  168. </if>
  169. <if test="isEqpMgn != null and isEqpMgn != ''">
  170. and IS_EQP_MGN = #{isEqpMgn}
  171. </if>
  172. <if test="isChkCrd != null and isChkCrd != ''">
  173. and IS_CHK_CRD = #{isChkCrd}
  174. </if>
  175. <if test="isOrgTrn != null and isOrgTrn != ''">
  176. and IS_ORG_TRN = #{isOrgTrn}
  177. </if>
  178. <if test="isRiverChk != null and isRiverChk != ''">
  179. and IS_RIVER_CHK = #{isRiverChk}
  180. </if>
  181. <if test="isDepSys != null and isDepSys != ''">
  182. and IS_DEP_SYS = #{isDepSys}
  183. </if>
  184. <if test="isChkUnion != null and isChkUnion != ''">
  185. and IS_CHK_UNION = #{isChkUnion}
  186. </if>
  187. <if test="isRankGud != null and isRankGud != ''">
  188. and IS_RANK_GUD = #{isRankGud}
  189. </if>
  190. <if test="persId != null and persId != ''">
  191. and PERS_ID = #{persId}
  192. </if>
  193. <if test="intm != null">
  194. and INTM = #{intm}
  195. </if>
  196. <if test="uptm != null">
  197. and UPTM = #{uptm}
  198. </if>
  199. <if test="note != null and note != ''">
  200. and NOTE = #{note}
  201. </if>
  202. <if test="dataStat != null and dataStat != ''">
  203. and DATA_STAT = #{dataStat}
  204. </if>
  205. <if test="state != null and state != ''">
  206. and STATE = #{state}
  207. </if>
  208. and DATA_STAT='0'
  209. </trim>
  210. </sql>
  211. <select id="get" resultMap="bisInspFjwtenfKeyResultMap" parameterType="String">
  212. select
  213. <include refid="table_columns"/>
  214. from BIS_INSP_FJWTENF_KEY where RGSTR_ID = #{id}
  215. </select>
  216. <select id="getBy" resultMap="bisInspFjwtenfKeyResultMap">
  217. select
  218. <include refid="table_columns"/>
  219. from BIS_INSP_FJWTENF_KEY
  220. <include refid="page_where"/>
  221. </select>
  222. <select id="findAll" resultMap="bisInspFjwtenfKeyResultMap">
  223. select
  224. <include refid="table_columns"/>
  225. from BIS_INSP_FJWTENF_KEY
  226. </select>
  227. <select id="findList" resultMap="bisInspFjwtenfKeyResultMap">
  228. select
  229. <include refid="table_columns"/>
  230. from BIS_INSP_FJWTENF_KEY
  231. <include refid="page_where"/>
  232. </select>
  233. <select id="selectCount" resultType="int">
  234. select count(ID) from BIS_INSP_FJWTENF_KEY
  235. <include refid="page_where"/>
  236. </select>
  237. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjwtenfKey">
  238. insert into BIS_INSP_FJWTENF_KEY(
  239. <include refid="table_columns"/>
  240. )
  241. values (
  242. <include refid="entity_properties"/>
  243. )
  244. </insert>
  245. <delete id="delete" parameterType="java.lang.String">
  246. update BIS_INSP_FJWTENF_KEY set DATA_STAT='9' where ID = #{id}
  247. </delete>
  248. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjwtenfKey">
  249. update BIS_INSP_FJWTENF_KEY set DATA_STAT='9'
  250. <include refid="page_where"/>
  251. </delete>
  252. <update id="deleteInFlag" parameterType="java.lang.String">
  253. update BIS_INSP_FJWTENF_KEY set DATA_STAT = '9' where ID = #{id}
  254. </update>
  255. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjwtenfKey">
  256. update BIS_INSP_FJWTENF_KEY
  257. <trim prefix="set" suffixOverrides=",">
  258. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  259. = #{rgstrId},
  260. </if>
  261. <if test="isImpXjp != null and isImpXjp != ''">IS_IMP_XJP
  262. = #{isImpXjp},
  263. </if>
  264. <if test="isAskBlack != null and isAskBlack != ''">IS_ASK_BLACK
  265. = #{isAskBlack},
  266. </if>
  267. <if test="isPblmGov != null and isPblmGov != ''">IS_PBLM_GOV
  268. = #{isPblmGov},
  269. </if>
  270. <if test="isPubBook != null and isPubBook != ''">IS_PUB_BOOK
  271. = #{isPubBook},
  272. </if>
  273. <if test="isMakSys != null and isMakSys != ''">IS_MAK_SYS
  274. = #{isMakSys},
  275. </if>
  276. <if test="isChkPers != null and isChkPers != ''">IS_CHK_PERS
  277. = #{isChkPers},
  278. </if>
  279. <if test="isPubOut != null and isPubOut != ''">IS_PUB_OUT
  280. = #{isPubOut},
  281. </if>
  282. <if test="isImageSys != null and isImageSys != ''">IS_IMAGE_SYS
  283. = #{isImageSys},
  284. </if>
  285. <if test="isMakOrg != null and isMakOrg != ''">IS_MAK_ORG
  286. = #{isMakOrg},
  287. </if>
  288. <if test="isPubList != null and isPubList != ''">IS_PUB_LIST
  289. = #{isPubList},
  290. </if>
  291. <if test="isSysStudy != null and isSysStudy != ''">IS_SYS_STUDY
  292. = #{isSysStudy},
  293. </if>
  294. <if test="isDistReg != null and isDistReg != ''">IS_DIST_REG
  295. = #{isDistReg},
  296. </if>
  297. <if test="isPblmHndl != null and isPblmHndl != ''">IS_PBLM_HNDL
  298. = #{isPblmHndl},
  299. </if>
  300. <if test="isPenalHndl != null and isPenalHndl != ''">IS_PENAL_HNDL
  301. = #{isPenalHndl},
  302. </if>
  303. <if test="isAbusePower != null and isAbusePower != ''">IS_ABUSE_POWER
  304. = #{isAbusePower},
  305. </if>
  306. <if test="isServiceLaw != null and isServiceLaw != ''">IS_SERVICE_LAW
  307. = #{isServiceLaw},
  308. </if>
  309. <if test="isThreeErr != null and isThreeErr != ''">IS_THREE_ERR
  310. = #{isThreeErr},
  311. </if>
  312. <if test="isCostPlan != null and isCostPlan != ''">IS_COST_PLAN
  313. = #{isCostPlan},
  314. </if>
  315. <if test="isEqpMgn != null and isEqpMgn != ''">IS_EQP_MGN
  316. = #{isEqpMgn},
  317. </if>
  318. <if test="isChkCrd != null and isChkCrd != ''">IS_CHK_CRD
  319. = #{isChkCrd},
  320. </if>
  321. <if test="isOrgTrn != null and isOrgTrn != ''">IS_ORG_TRN
  322. = #{isOrgTrn},
  323. </if>
  324. <if test="isRiverChk != null and isRiverChk != ''">IS_RIVER_CHK
  325. = #{isRiverChk},
  326. </if>
  327. <if test="isDepSys != null and isDepSys != ''">IS_DEP_SYS
  328. = #{isDepSys},
  329. </if>
  330. <if test="isChkUnion != null and isChkUnion != ''">IS_CHK_UNION
  331. = #{isChkUnion},
  332. </if>
  333. <if test="isRankGud != null and isRankGud != ''">IS_RANK_GUD
  334. = #{isRankGud},
  335. </if>
  336. <if test="persId != null and persId != ''">PERS_ID
  337. = #{persId},
  338. </if>
  339. <if test="intm != null">INTM
  340. = #{intm},
  341. </if>
  342. <if test="uptm != null">UPTM
  343. = #{uptm},
  344. </if>
  345. <if test="note != null and note != ''">NOTE
  346. = #{note},
  347. </if>
  348. <if test="dataStat != null and dataStat != ''">DATA_STAT
  349. = #{dataStat},
  350. </if>
  351. <if test="state != null and state != ''">STATE
  352. = #{state},
  353. </if>
  354. </trim>
  355. <where>ID = #{id}</where>
  356. </update>
  357. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspFjwtenfKey">
  358. update BIS_INSP_FJWTENF_KEY
  359. <trim prefix="set" suffixOverrides=",">
  360. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  361. = #{rgstrId},
  362. </if>
  363. <if test="isImpXjp != null and isImpXjp != ''">IS_IMP_XJP
  364. = #{isImpXjp},
  365. </if>
  366. <if test="isAskBlack != null and isAskBlack != ''">IS_ASK_BLACK
  367. = #{isAskBlack},
  368. </if>
  369. <if test="isPblmGov != null and isPblmGov != ''">IS_PBLM_GOV
  370. = #{isPblmGov},
  371. </if>
  372. <if test="isPubBook != null and isPubBook != ''">IS_PUB_BOOK
  373. = #{isPubBook},
  374. </if>
  375. <if test="isMakSys != null and isMakSys != ''">IS_MAK_SYS
  376. = #{isMakSys},
  377. </if>
  378. <if test="isChkPers != null and isChkPers != ''">IS_CHK_PERS
  379. = #{isChkPers},
  380. </if>
  381. <if test="isPubOut != null and isPubOut != ''">IS_PUB_OUT
  382. = #{isPubOut},
  383. </if>
  384. <if test="isImageSys != null and isImageSys != ''">IS_IMAGE_SYS
  385. = #{isImageSys},
  386. </if>
  387. <if test="isMakOrg != null and isMakOrg != ''">IS_MAK_ORG
  388. = #{isMakOrg},
  389. </if>
  390. <if test="isPubList != null and isPubList != ''">IS_PUB_LIST
  391. = #{isPubList},
  392. </if>
  393. <if test="isSysStudy != null and isSysStudy != ''">IS_SYS_STUDY
  394. = #{isSysStudy},
  395. </if>
  396. <if test="isDistReg != null and isDistReg != ''">IS_DIST_REG
  397. = #{isDistReg},
  398. </if>
  399. <if test="isPblmHndl != null and isPblmHndl != ''">IS_PBLM_HNDL
  400. = #{isPblmHndl},
  401. </if>
  402. <if test="isPenalHndl != null and isPenalHndl != ''">IS_PENAL_HNDL
  403. = #{isPenalHndl},
  404. </if>
  405. <if test="isAbusePower != null and isAbusePower != ''">IS_ABUSE_POWER
  406. = #{isAbusePower},
  407. </if>
  408. <if test="isServiceLaw != null and isServiceLaw != ''">IS_SERVICE_LAW
  409. = #{isServiceLaw},
  410. </if>
  411. <if test="isThreeErr != null and isThreeErr != ''">IS_THREE_ERR
  412. = #{isThreeErr},
  413. </if>
  414. <if test="isCostPlan != null and isCostPlan != ''">IS_COST_PLAN
  415. = #{isCostPlan},
  416. </if>
  417. <if test="isEqpMgn != null and isEqpMgn != ''">IS_EQP_MGN
  418. = #{isEqpMgn},
  419. </if>
  420. <if test="isChkCrd != null and isChkCrd != ''">IS_CHK_CRD
  421. = #{isChkCrd},
  422. </if>
  423. <if test="isOrgTrn != null and isOrgTrn != ''">IS_ORG_TRN
  424. = #{isOrgTrn},
  425. </if>
  426. <if test="isRiverChk != null and isRiverChk != ''">IS_RIVER_CHK
  427. = #{isRiverChk},
  428. </if>
  429. <if test="isDepSys != null and isDepSys != ''">IS_DEP_SYS
  430. = #{isDepSys},
  431. </if>
  432. <if test="isChkUnion != null and isChkUnion != ''">IS_CHK_UNION
  433. = #{isChkUnion},
  434. </if>
  435. <if test="isRankGud != null and isRankGud != ''">IS_RANK_GUD
  436. = #{isRankGud},
  437. </if>
  438. <if test="persId != null and persId != ''">PERS_ID
  439. = #{persId},
  440. </if>
  441. <if test="intm != null">INTM
  442. = #{intm},
  443. </if>
  444. <if test="uptm != null">UPTM
  445. = #{uptm},
  446. </if>
  447. <if test="note != null and note != ''">NOTE
  448. = #{note},
  449. </if>
  450. <if test="dataStat != null and dataStat != ''">DATA_STAT
  451. = #{dataStat},
  452. </if>
  453. <if test="state != null and state != ''">STATE
  454. = #{state},
  455. </if>
  456. </trim>
  457. <include refid="page_where"/>
  458. </update>
  459. <!-- 其他自定义SQL -->
  460. </mapper>