BisInspWintuRgstrDao.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  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.BisInspWintuRgstrDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr" id="bisInspWintuRgstrResultMap">
  5. <result property="jlssazwzms" column="JLSSAZWZMS"/>
  6. <result property="jcxm" column="JCXM"/>
  7. <result property="jcssglhzywdw" column="JCSSGLHZYWDW"/>
  8. <result property="jcxxsfjrcjw" column="JCXXSFJRCJW"/>
  9. <result property="qsjlssazqk" column="QSJLSSAZQK"/>
  10. <result property="csblljts" column="CSBLLJTS"/>
  11. <result property="dclljts" column="DCLLJTS"/>
  12. <result property="sbts" column="SBTS"/>
  13. <result property="qtts" column="QTTS"/>
  14. <result property="jlsssfdqjdjz" column="JLSSSFDQJDJZ"/>
  15. <result property="zjycjdjzsj" column="ZJYCJDJZSJ"/>
  16. <result property="qsl2016" column="QSL2016"/>
  17. <result property="qsl2017" column="QSL2017"/>
  18. <result property="qsl2018" column="QSL2018"/>
  19. <result property="qsl2019" column="QSL2019"/>
  20. <result property="id" column="ID"/>
  21. <result property="objId" column="OBJ_ID"/>
  22. <result property="winId" column="WIN_ID"/>
  23. <result property="winName" column="WIN_NAME"/>
  24. <result property="adName" column="AD_NAME"/>
  25. <result property="adCode" column="AD_CODE"/>
  26. <result property="wiuLoc" column="WIU_LOC"/>
  27. <result property="centerX" column="CENTER_X"/>
  28. <result property="centerY" column="CENTER_Y"/>
  29. <result property="gdX" column="GD_X"/>
  30. <result property="gdY" column="GD_Y"/>
  31. <result property="wiuName" column="WIU_NAME"/>
  32. <result property="wiuContact" column="WIU_CONTACT"/>
  33. <result property="wiuContactTel" column="WIU_CONTACT_TEL"/>
  34. <result property="wiuPrincipal" column="WIU_PRINCIPAL"/>
  35. <result property="wiuPrincipalTel" column="WIU_PRINCIPAL_TEL"/>
  36. <result property="note" column="NOTE"/>
  37. <result property="state" column="STATE"/>
  38. <result property="dataStat" column="DATA_STAT"/>
  39. <result property="chkInStat" column="CHK_IN_STAT"/>
  40. <result property="mendLiftStat" column="MEND_LIFT_STAT"/>
  41. <result property="persId" column="PERS_ID"/>
  42. <result property="groupId" column="GROUP_ID"/>
  43. <result property="inTm" column="IN_TM"/>
  44. <result property="upTm" column="UP_TM"/>
  45. <result property="cwId" column="CW_ID"/>
  46. <result property="ssxtdm" column="SSXTDM"/>
  47. <result property="ssgcdm" column="SSGCDM"/>
  48. <result property="ssxmid" column="SSXMID"/>
  49. <result property="szyfqdm" column="SZYFQDM"/>
  50. <result property="sslydm" column="SSLYDM"/>
  51. <result property="jsyxzt" column="JSYXZT"/>
  52. <result property="sfazjcjlss" column="SFAZJCJLSS"/>
  53. <result property="jcjlsslx" column="JCJLSSLX"/>
  54. <result property="jcjlsssfzcyx" column="JCJLSSSFZCYX"/>
  55. <result property="sfsxzxjc" column="SFSXZXJC"/>
  56. <result property="sfdqjdhjz" column="SFDQJDHJZ"/>
  57. <result property="sfdkdj" column="SFDKDJ"/>
  58. <result property="qsksl" column="QSKSL"/>
  59. <result property="sfbjsc" column="SFBJSC"/>
  60. <result property="qskjbxxbz" column="QSKJBXXBZ"/>
  61. <result property="jcjlbz" column="JCJLBZ"/>
  62. <result property="column1" column="COLUMN1"/>
  63. <result property="column2" column="COLUMN2"/>
  64. <result property="column3" column="COLUMN3"/>
  65. <result property="column4" column="COLUMN4"/>
  66. <result property="column5" column="COLUMN5"/>
  67. <result property="wainIntType" column="WAIN_INT_TYPE"/>
  68. <result property="desYearQ" column="DES_YEAR_Q"/>
  69. </resultMap>
  70. <sql id="table_columns">
  71. JLSSAZWZMS,
  72. JCXM,
  73. JCSSGLHZYWDW,
  74. JCXXSFJRCJW,
  75. QSJLSSAZQK,
  76. CSBLLJTS,
  77. DCLLJTS,
  78. SBTS,
  79. QTTS,
  80. JLSSSFDQJDJZ,
  81. ZJYCJDJZSJ,
  82. QSL2016,
  83. QSL2017,
  84. QSL2018,
  85. QSL2019,
  86. ID,
  87. OBJ_ID,
  88. WIN_ID,
  89. WIN_NAME,
  90. AD_NAME,
  91. AD_CODE,
  92. WIU_LOC,
  93. CENTER_X,
  94. CENTER_Y,
  95. GD_X,
  96. GD_Y,
  97. WIU_NAME,
  98. WIU_CONTACT,
  99. WIU_CONTACT_TEL,
  100. WIU_PRINCIPAL,
  101. WIU_PRINCIPAL_TEL,
  102. NOTE,
  103. STATE,
  104. DATA_STAT,
  105. CHK_IN_STAT,
  106. MEND_LIFT_STAT,
  107. PERS_ID,
  108. GROUP_ID,
  109. IN_TM,
  110. UP_TM,
  111. CW_ID,
  112. SSXTDM,
  113. SSGCDM,
  114. SSXMID,
  115. SZYFQDM,
  116. SSLYDM,
  117. JSYXZT,
  118. SFAZJCJLSS,
  119. JCJLSSLX,
  120. JCJLSSSFZCYX,
  121. SFSXZXJC,
  122. SFDQJDHJZ,
  123. SFDKDJ,
  124. QSKSL,
  125. SFBJSC,
  126. QSKJBXXBZ,
  127. JCJLBZ,
  128. COLUMN1,
  129. COLUMN2,
  130. COLUMN3,
  131. COLUMN4,
  132. COLUMN5,
  133. WAIN_INT_TYPE,
  134. DES_YEAR_Q
  135. </sql>
  136. <sql id="entity_properties">
  137. #{jlssazwzms},
  138. #{jcxm},
  139. #{jcssglhzywdw},
  140. #{jcxxsfjrcjw},
  141. #{qsjlssazqk},
  142. #{csblljts},
  143. #{dclljts},
  144. #{sbts},
  145. #{qtts},
  146. #{jlsssfdqjdjz},
  147. #{zjycjdjzsj},
  148. #{qsl2016},
  149. #{qsl2017},
  150. #{qsl2018},
  151. #{qsl2019},
  152. #{id},
  153. #{objId},
  154. #{winId},
  155. #{winName},
  156. #{adName},
  157. #{adCode},
  158. #{wiuLoc},
  159. #{centerX},
  160. #{centerY},
  161. #{gdX},
  162. #{gdY},
  163. #{wiuName},
  164. #{wiuContact},
  165. #{wiuContactTel},
  166. #{wiuPrincipal},
  167. #{wiuPrincipalTel},
  168. #{note},
  169. #{state},
  170. #{dataStat},
  171. #{chkInStat},
  172. #{mendLiftStat},
  173. #{persId},
  174. #{groupId},
  175. #{inTm},
  176. #{upTm},
  177. #{cwId},
  178. #{ssxtdm},
  179. #{ssgcdm},
  180. #{ssxmid},
  181. #{szyfqdm},
  182. #{sslydm},
  183. #{jsyxzt},
  184. #{sfazjcjlss},
  185. #{jcjlsslx},
  186. #{jcjlsssfzcyx},
  187. #{sfsxzxjc},
  188. #{sfdqjdhjz},
  189. #{sfdkdj},
  190. #{qsksl},
  191. #{sfbjsc},
  192. #{qskjbxxbz},
  193. #{jcjlbz},
  194. #{column1},
  195. #{column2},
  196. #{column3},
  197. #{column4},
  198. #{column5},
  199. #{wainIntType},
  200. #{desYearQ}
  201. </sql>
  202. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  203. <sql id="page_where">
  204. <trim prefix="where" prefixOverrides="and | or ">
  205. <if test="jcxm != null and jcxm != ''">and JCXM = #{jcxm}</if>
  206. <if test="jcssglhzywdw != null and jcssglhzywdw != ''">and JCSSGLHZYWDW = #{jcssglhzywdw}</if>
  207. <if test="jcxxsfjrcjw != null and jcxxsfjrcjw != ''">and JCXXSFJRCJW = #{jcxxsfjrcjw}</if>
  208. <if test="qsjlssazqk != null and qsjlssazqk != ''">and QSJLSSAZQK = #{qsjlssazqk}</if>
  209. <if test="csblljts != null and csblljts != ''">and CSBLLJTS = #{csblljts}</if>
  210. <if test="dclljts != null and dclljts != ''">and DCLLJTS = #{dclljts}</if>
  211. <if test="sbts != null and sbts != ''">and SBTS = #{sbts}</if>
  212. <if test="qtts != null and qtts != ''">and QTTS = #{qtts}</if>
  213. <if test="jlsssfdqjdjz != null and jlsssfdqjdjz != ''">and JLSSSFDQJDJZ = #{jlsssfdqjdjz}</if>
  214. <if test="zjycjdjzsj != null and zjycjdjzsj != ''">and ZJYCJDJZSJ = #{zjycjdjzsj}</if>
  215. <if test="qsl2016 != null and qsl2016 != ''">and QSL2016 = #{qsl2016}</if>
  216. <if test="qsl2017 != null and qsl2017 != ''">and QSL2017 = #{qsl2017}</if>
  217. <if test="qsl2018 != null and qsl2018 != ''">and QSL2018 = #{qsl2018}</if>
  218. <if test="qsl2019 != null and qsl2019 != ''">and QSL2019 = #{qsl2019}</if>
  219. <if test="id != null and id != ''">and ID = #{id}</if>
  220. <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
  221. <if test="winId != null and winId != ''">and WIN_ID = #{winId}</if>
  222. <if test="winName != null and winName != ''">and WIN_NAME = #{winName}</if>
  223. <if test="adName != null and adName != ''">and AD_NAME = #{adName}</if>
  224. <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
  225. <if test="wiuLoc != null and wiuLoc != ''">and WIU_LOC = #{wiuLoc}</if>
  226. <if test="centerX != null and centerX != ''">and CENTER_X = #{centerX}</if>
  227. <if test="centerY != null and centerY != ''">and CENTER_Y = #{centerY}</if>
  228. <if test="gdX != null and gdX != ''">and GD_X = #{gdX}</if>
  229. <if test="gdY != null and gdY != ''">and GD_Y = #{gdY}</if>
  230. <if test="wiuName != null and wiuName != ''">and WIU_NAME = #{wiuName}</if>
  231. <if test="wiuContact != null and wiuContact != ''">and WIU_CONTACT = #{wiuContact}</if>
  232. <if test="wiuContactTel != null and wiuContactTel != ''">and WIU_CONTACT_TEL = #{wiuContactTel}</if>
  233. <if test="wiuPrincipal != null and wiuPrincipal != ''">and WIU_PRINCIPAL = #{wiuPrincipal}</if>
  234. <if test="wiuPrincipalTel != null and wiuPrincipalTel != ''">and WIU_PRINCIPAL_TEL = #{wiuPrincipalTel}</if>
  235. <if test="note != null and note != ''">and NOTE = #{note}</if>
  236. <if test="state != null and state != ''">and STATE = #{state}</if>
  237. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  238. <if test="chkInStat != null and chkInStat != ''">and CHK_IN_STAT = #{chkInStat}</if>
  239. <if test="mendLiftStat != null and mendLiftStat != ''">and MEND_LIFT_STAT = #{mendLiftStat}</if>
  240. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  241. <if test="groupId != null and groupId != ''">and GROUP_ID = #{groupId}</if>
  242. <if test="inTm != null">and IN_TM = #{inTm}</if>
  243. <if test="upTm != null">and UP_TM = #{upTm}</if>
  244. <if test="cwId != null and cwId != ''">and CW_ID = #{cwId}</if>
  245. <if test="ssxtdm != null and ssxtdm != ''">and SSXTDM = #{ssxtdm}</if>
  246. <if test="ssgcdm != null and ssgcdm != ''">and SSGCDM = #{ssgcdm}</if>
  247. <if test="ssxmid != null and ssxmid != ''">and SSXMID = #{ssxmid}</if>
  248. <if test="szyfqdm != null and szyfqdm != ''">and SZYFQDM = #{szyfqdm}</if>
  249. <if test="sslydm != null and sslydm != ''">and SSLYDM = #{sslydm}</if>
  250. <if test="jsyxzt != null and jsyxzt != ''">and JSYXZT = #{jsyxzt}</if>
  251. <if test="sfazjcjlss != null and sfazjcjlss != ''">and SFAZJCJLSS = #{sfazjcjlss}</if>
  252. <if test="jcjlsslx != null and jcjlsslx != ''">and JCJLSSLX = #{jcjlsslx}</if>
  253. <if test="jcjlsssfzcyx != null and jcjlsssfzcyx != ''">and JCJLSSSFZCYX = #{jcjlsssfzcyx}</if>
  254. <if test="sfsxzxjc != null and sfsxzxjc != ''">and SFSXZXJC = #{sfsxzxjc}</if>
  255. <if test="sfdqjdhjz != null and sfdqjdhjz != ''">and SFDQJDHJZ = #{sfdqjdhjz}</if>
  256. <if test="sfdkdj != null and sfdkdj != ''">and SFDKDJ = #{sfdkdj}</if>
  257. <if test="qsksl != null and qsksl != ''">and QSKSL = #{qsksl}</if>
  258. <if test="sfbjsc != null and sfbjsc != ''">and SFBJSC = #{sfbjsc}</if>
  259. <if test="qskjbxxbz != null and qskjbxxbz != ''">and QSKJBXXBZ = #{qskjbxxbz}</if>
  260. <if test="jcjlbz != null and jcjlbz != ''">and JCJLBZ = #{jcjlbz}</if>
  261. <if test="column1 != null and column1 != ''">and COLUMN1 = #{column1}</if>
  262. <if test="column2 != null and column2 != ''">and COLUMN2 = #{column2}</if>
  263. <if test="column3 != null and column3 != ''">and COLUMN3 = #{column3}</if>
  264. <if test="column4 != null and column4 != ''">and COLUMN4 = #{column4}</if>
  265. <if test="column5 != null and column5 != ''">and COLUMN5 = #{column5}</if>
  266. <if test="wainIntType != null and wainIntType != ''">and WAIN_INT_TYPE = #{wainIntType}</if>
  267. <if test="desYearQ != null and desYearQ != ''">and DES_YEAR_Q = #{desYearQ}</if>
  268. </trim>
  269. </sql>
  270. <select id="get" resultMap="bisInspWintuRgstrResultMap" parameterType="String">
  271. select
  272. <include refid="table_columns"/>
  273. from BIS_INSP_WINTU_RGSTR where ID = #{id}
  274. </select>
  275. <select id="getBy" resultMap="bisInspWintuRgstrResultMap">
  276. select
  277. <include refid="table_columns"/>
  278. from BIS_INSP_WINTU_RGSTR
  279. <include refid="page_where"/>
  280. </select>
  281. <select id="findAll" resultMap="bisInspWintuRgstrResultMap">
  282. select
  283. <include refid="table_columns"/>
  284. from BIS_INSP_WINTU_RGSTR
  285. </select>
  286. <select id="findList" resultMap="bisInspWintuRgstrResultMap">
  287. select
  288. <include refid="table_columns"/>
  289. from BIS_INSP_WINTU_RGSTR
  290. <include refid="page_where"/>
  291. </select>
  292. <select id="selectCount" resultType="int">
  293. select count(ID) from BIS_INSP_WINTU_RGSTR
  294. <include refid="page_where"/>
  295. </select>
  296. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr">
  297. insert into BIS_INSP_WINTU_RGSTR(
  298. <include refid="table_columns"/>
  299. )
  300. values (
  301. <include refid="entity_properties"/>
  302. )
  303. </insert>
  304. <delete id="delete" parameterType="java.lang.String">
  305. delete from BIS_INSP_WINTU_RGSTR where ID = #{id}
  306. </delete>
  307. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr">
  308. delete from BIS_INSP_WINTU_RGSTR
  309. <include refid="page_where"/>
  310. </delete>
  311. <update id="deleteInFlag" parameterType="java.lang.String">
  312. update BIS_INSP_WINTU_RGSTR set flag_valid = 0 where>ID = #{id}
  313. </update>
  314. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr">
  315. update BIS_INSP_WINTU_RGSTR
  316. <trim prefix="set" suffixOverrides=",">
  317. <if test="jcxm != null and jcxm != ''">JCXM = #{jcxm},</if>
  318. <if test="jcssglhzywdw != null and jcssglhzywdw != ''">JCSSGLHZYWDW = #{jcssglhzywdw},</if>
  319. <if test="jcxxsfjrcjw != null and jcxxsfjrcjw != ''">JCXXSFJRCJW = #{jcxxsfjrcjw},</if>
  320. <if test="qsjlssazqk != null and qsjlssazqk != ''">QSJLSSAZQK = #{qsjlssazqk},</if>
  321. <if test="csblljts != null and csblljts != ''">CSBLLJTS = #{csblljts},</if>
  322. <if test="dclljts != null and dclljts != ''">DCLLJTS = #{dclljts},</if>
  323. <if test="sbts != null and sbts != ''">SBTS = #{sbts},</if>
  324. <if test="qtts != null and qtts != ''">QTTS = #{qtts},</if>
  325. <if test="jlsssfdqjdjz != null and jlsssfdqjdjz != ''">JLSSSFDQJDJZ = #{jlsssfdqjdjz},</if>
  326. <if test="zjycjdjzsj != null and zjycjdjzsj != ''">ZJYCJDJZSJ = #{zjycjdjzsj},</if>
  327. <if test="qsl2016 != null and qsl2016 != ''">QSL2016 = #{qsl2016},</if>
  328. <if test="qsl2017 != null and qsl2017 != ''">QSL2017 = #{qsl2017},</if>
  329. <if test="qsl2018 != null and qsl2018 != ''">QSL2018 = #{qsl2018},</if>
  330. <if test="qsl2019 != null and qsl2019 != ''">QSL2019 = #{qsl2019},</if>
  331. <if test="id != null and id != ''">ID = #{id},</if>
  332. <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
  333. <if test="winId != null and winId != ''">WIN_ID = #{winId},</if>
  334. <if test="winName != null and winName != ''">WIN_NAME = #{winName},</if>
  335. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  336. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  337. <if test="wiuLoc != null and wiuLoc != ''">WIU_LOC = #{wiuLoc},</if>
  338. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  339. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  340. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  341. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  342. <if test="wiuName != null and wiuName != ''">WIU_NAME = #{wiuName},</if>
  343. <if test="wiuContact != null and wiuContact != ''">WIU_CONTACT = #{wiuContact},</if>
  344. <if test="wiuContactTel != null and wiuContactTel != ''">WIU_CONTACT_TEL = #{wiuContactTel},</if>
  345. <if test="wiuPrincipal != null and wiuPrincipal != ''">WIU_PRINCIPAL = #{wiuPrincipal},</if>
  346. <if test="wiuPrincipalTel != null and wiuPrincipalTel != ''">WIU_PRINCIPAL_TEL = #{wiuPrincipalTel},</if>
  347. <if test="note != null and note != ''">NOTE = #{note},</if>
  348. <if test="state != null and state != ''">STATE = #{state},</if>
  349. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  350. <if test="chkInStat != null and chkInStat != ''">CHK_IN_STAT = #{chkInStat},</if>
  351. <if test="mendLiftStat != null and mendLiftStat != ''">MEND_LIFT_STAT = #{mendLiftStat},</if>
  352. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  353. <if test="groupId != null and groupId != ''">GROUP_ID = #{groupId},</if>
  354. <if test="inTm != null">IN_TM = #{inTm},</if>
  355. <if test="upTm != null">UP_TM = #{upTm},</if>
  356. <if test="cwId != null and cwId != ''">CW_ID = #{cwId},</if>
  357. <if test="ssxtdm != null and ssxtdm != ''">SSXTDM = #{ssxtdm},</if>
  358. <if test="ssgcdm != null and ssgcdm != ''">SSGCDM = #{ssgcdm},</if>
  359. <if test="ssxmid != null and ssxmid != ''">SSXMID = #{ssxmid},</if>
  360. <if test="szyfqdm != null and szyfqdm != ''">SZYFQDM = #{szyfqdm},</if>
  361. <if test="sslydm != null and sslydm != ''">SSLYDM = #{sslydm},</if>
  362. <if test="jsyxzt != null and jsyxzt != ''">JSYXZT = #{jsyxzt},</if>
  363. <if test="sfazjcjlss != null and sfazjcjlss != ''">SFAZJCJLSS = #{sfazjcjlss},</if>
  364. <if test="jcjlsslx != null and jcjlsslx != ''">JCJLSSLX = #{jcjlsslx},</if>
  365. <if test="jcjlsssfzcyx != null and jcjlsssfzcyx != ''">JCJLSSSFZCYX = #{jcjlsssfzcyx},</if>
  366. <if test="sfsxzxjc != null and sfsxzxjc != ''">SFSXZXJC = #{sfsxzxjc},</if>
  367. <if test="sfdqjdhjz != null and sfdqjdhjz != ''">SFDQJDHJZ = #{sfdqjdhjz},</if>
  368. <if test="sfdkdj != null and sfdkdj != ''">SFDKDJ = #{sfdkdj},</if>
  369. <if test="qsksl != null and qsksl != ''">QSKSL = #{qsksl},</if>
  370. <if test="sfbjsc != null and sfbjsc != ''">SFBJSC = #{sfbjsc},</if>
  371. <if test="qskjbxxbz != null and qskjbxxbz != ''">QSKJBXXBZ = #{qskjbxxbz},</if>
  372. <if test="jcjlbz != null and jcjlbz != ''">JCJLBZ = #{jcjlbz},</if>
  373. <if test="column1 != null and column1 != ''">COLUMN1 = #{column1},</if>
  374. <if test="column2 != null and column2 != ''">COLUMN2 = #{column2},</if>
  375. <if test="column3 != null and column3 != ''">COLUMN3 = #{column3},</if>
  376. <if test="column4 != null and column4 != ''">COLUMN4 = #{column4},</if>
  377. <if test="column5 != null and column5 != ''">COLUMN5 = #{column5},</if>
  378. <if test="wainIntType != null and wainIntType != ''">WAIN_INT_TYPE = #{wainIntType},</if>
  379. <if test="desYearQ != null and desYearQ != ''">DES_YEAR_Q = #{desYearQ},</if>
  380. </trim>
  381. <where>ID = #{id}</where>
  382. </update>
  383. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr">
  384. update BIS_INSP_WINTU_RGSTR
  385. <trim prefix="set" suffixOverrides=",">
  386. <if test="jcxm != null and jcxm != ''">JCXM = #{jcxm},</if>
  387. <if test="jcssglhzywdw != null and jcssglhzywdw != ''">JCSSGLHZYWDW = #{jcssglhzywdw},</if>
  388. <if test="jcxxsfjrcjw != null and jcxxsfjrcjw != ''">JCXXSFJRCJW = #{jcxxsfjrcjw},</if>
  389. <if test="qsjlssazqk != null and qsjlssazqk != ''">QSJLSSAZQK = #{qsjlssazqk},</if>
  390. <if test="csblljts != null and csblljts != ''">CSBLLJTS = #{csblljts},</if>
  391. <if test="dclljts != null and dclljts != ''">DCLLJTS = #{dclljts},</if>
  392. <if test="sbts != null and sbts != ''">SBTS = #{sbts},</if>
  393. <if test="qtts != null and qtts != ''">QTTS = #{qtts},</if>
  394. <if test="jlsssfdqjdjz != null and jlsssfdqjdjz != ''">JLSSSFDQJDJZ = #{jlsssfdqjdjz},</if>
  395. <if test="zjycjdjzsj != null and zjycjdjzsj != ''">ZJYCJDJZSJ = #{zjycjdjzsj},</if>
  396. <if test="qsl2016 != null and qsl2016 != ''">QSL2016 = #{qsl2016},</if>
  397. <if test="qsl2017 != null and qsl2017 != ''">QSL2017 = #{qsl2017},</if>
  398. <if test="qsl2018 != null and qsl2018 != ''">QSL2018 = #{qsl2018},</if>
  399. <if test="qsl2019 != null and qsl2019 != ''">QSL2019 = #{qsl2019},</if>
  400. <if test="id != null and id != ''">ID = #{id},</if>
  401. <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
  402. <if test="winId != null and winId != ''">WIN_ID = #{winId},</if>
  403. <if test="winName != null and winName != ''">WIN_NAME = #{winName},</if>
  404. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  405. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  406. <if test="wiuLoc != null and wiuLoc != ''">WIU_LOC = #{wiuLoc},</if>
  407. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  408. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  409. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  410. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  411. <if test="wiuName != null and wiuName != ''">WIU_NAME = #{wiuName},</if>
  412. <if test="wiuContact != null and wiuContact != ''">WIU_CONTACT = #{wiuContact},</if>
  413. <if test="wiuContactTel != null and wiuContactTel != ''">WIU_CONTACT_TEL = #{wiuContactTel},</if>
  414. <if test="wiuPrincipal != null and wiuPrincipal != ''">WIU_PRINCIPAL = #{wiuPrincipal},</if>
  415. <if test="wiuPrincipalTel != null and wiuPrincipalTel != ''">WIU_PRINCIPAL_TEL = #{wiuPrincipalTel},</if>
  416. <if test="note != null and note != ''">NOTE = #{note},</if>
  417. <if test="state != null and state != ''">STATE = #{state},</if>
  418. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  419. <if test="chkInStat != null and chkInStat != ''">CHK_IN_STAT = #{chkInStat},</if>
  420. <if test="mendLiftStat != null and mendLiftStat != ''">MEND_LIFT_STAT = #{mendLiftStat},</if>
  421. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  422. <if test="groupId != null and groupId != ''">GROUP_ID = #{groupId},</if>
  423. <if test="inTm != null">IN_TM = #{inTm},</if>
  424. <if test="upTm != null">UP_TM = #{upTm},</if>
  425. <if test="cwId != null and cwId != ''">CW_ID = #{cwId},</if>
  426. <if test="ssxtdm != null and ssxtdm != ''">SSXTDM = #{ssxtdm},</if>
  427. <if test="ssgcdm != null and ssgcdm != ''">SSGCDM = #{ssgcdm},</if>
  428. <if test="ssxmid != null and ssxmid != ''">SSXMID = #{ssxmid},</if>
  429. <if test="szyfqdm != null and szyfqdm != ''">SZYFQDM = #{szyfqdm},</if>
  430. <if test="sslydm != null and sslydm != ''">SSLYDM = #{sslydm},</if>
  431. <if test="jsyxzt != null and jsyxzt != ''">JSYXZT = #{jsyxzt},</if>
  432. <if test="sfazjcjlss != null and sfazjcjlss != ''">SFAZJCJLSS = #{sfazjcjlss},</if>
  433. <if test="jcjlsslx != null and jcjlsslx != ''">JCJLSSLX = #{jcjlsslx},</if>
  434. <if test="jcjlsssfzcyx != null and jcjlsssfzcyx != ''">JCJLSSSFZCYX = #{jcjlsssfzcyx},</if>
  435. <if test="sfsxzxjc != null and sfsxzxjc != ''">SFSXZXJC = #{sfsxzxjc},</if>
  436. <if test="sfdqjdhjz != null and sfdqjdhjz != ''">SFDQJDHJZ = #{sfdqjdhjz},</if>
  437. <if test="sfdkdj != null and sfdkdj != ''">SFDKDJ = #{sfdkdj},</if>
  438. <if test="qsksl != null and qsksl != ''">QSKSL = #{qsksl},</if>
  439. <if test="sfbjsc != null and sfbjsc != ''">SFBJSC = #{sfbjsc},</if>
  440. <if test="qskjbxxbz != null and qskjbxxbz != ''">QSKJBXXBZ = #{qskjbxxbz},</if>
  441. <if test="jcjlbz != null and jcjlbz != ''">JCJLBZ = #{jcjlbz},</if>
  442. <if test="column1 != null and column1 != ''">COLUMN1 = #{column1},</if>
  443. <if test="column2 != null and column2 != ''">COLUMN2 = #{column2},</if>
  444. <if test="column3 != null and column3 != ''">COLUMN3 = #{column3},</if>
  445. <if test="column4 != null and column4 != ''">COLUMN4 = #{column4},</if>
  446. <if test="column5 != null and column5 != ''">COLUMN5 = #{column5},</if>
  447. <if test="wainIntType != null and wainIntType != ''">WAIN_INT_TYPE = #{wainIntType},</if>
  448. <if test="desYearQ != null and desYearQ != ''">DES_YEAR_Q = #{desYearQ},</if>
  449. </trim>
  450. <include refid="page_where"/>
  451. </update>
  452. <!-- 其他自定义SQL -->
  453. <select id="findWintuPage" resultType="cn.com.goldenwater.dcproj.dto.BisInspRgstrDto">
  454. SELECT * FROM (
  455. select
  456. A.CODE,ia.INTM,ia.ENTM,
  457. A.ID nodeId,
  458. A.NM,
  459. #{pType} pType,
  460. A.OBJ_ID,
  461. B.ID ID,
  462. b.id as rgstrId,
  463. aw.id as baseId,
  464. aw.ssxmid as ssxMid,
  465. B.column1 as column1,
  466. (case when b.State is null then '0' else b.state end) STATE,
  467. B.IN_TM,B.UP_TM,
  468. b.AD_CODE,
  469. b.AD_NAME as adName,
  470. b.CHK_IN_STAT as chkInStat,
  471. b.MEND_LIFT_STAT as mendLiftStat,
  472. ia.pnm groupName,
  473. b.wain_Int_Type as wainIntType
  474. from BIS_INSP_ALL_OBJ
  475. A LEFT JOIN BIS_INSP_WINTU_RGSTR B ON A.OBJ_ID=B.OBJ_ID
  476. LEFT JOIN BIS_INSP_ALL ia on A.ID = ia.id
  477. LEFT JOIN ATT_WINT_BASE aw on B.win_id = aw.id
  478. where A.ptype= #{pType}
  479. <if test="adCodes ==null or adCodes ==''">
  480. <choose>
  481. <when test='isAll =="1"'>
  482. </when>
  483. <otherwise>
  484. and
  485. A.Id in (
  486. select distinct id from (
  487. SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
  488. WHERE A.PERSID = #{presId} and TYPE = #{pType} and length(id) in (3,6,9))
  489. CONNECT BY P.PID = PRIOR P.ID
  490. union all
  491. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  492. WHERE A.PERSID =#{presId} and TYPE = #{pType} and length(id)=12 )
  493. )
  494. )
  495. </otherwise>
  496. </choose>
  497. </if>
  498. <if test="adCodes !=null and adCodes !=''">
  499. and
  500. <foreach item="item" index="index" collection="adCodes.split(',')" open="(" separator="or" close=")">
  501. b.ad_code like concat('${item}','%')
  502. </foreach>
  503. </if>
  504. ) A WHERE a.PTYPE=#{pType}
  505. <if test="adCode != null and adCode != '' ">
  506. and a.AD_CODE like '${adCode}%'
  507. </if>
  508. <if test="plnaId !=null and plnaId !=''">
  509. and a.nodeId like '${plnaId}%'
  510. </if>
  511. <if test="state !=null and state !=''">
  512. and STATE in (${state})
  513. </if>
  514. <if test="rsName !=null and rsName !=''">
  515. and a.nm like '%${rsName}%'
  516. </if>
  517. <if test="code !=null and code !=''">
  518. and a.code = #{code}
  519. </if>
  520. <if test="adName != null and adName != ''">and a.adName like '%${adName}%'</if>
  521. <if test="sttm != null and sttm != ''">and a.Intm&gt;= TO_DATE(#{sttm},'YYYY-MM-DD')</if>
  522. <if test="entm != null and entm != ''">and a.Intm &lt; To_DATE(#{entm},'yyyy-MM-dd') + 1</if>
  523. <if test="groupId != null and groupId != ''">and a.nodeId = #{groupId}</if>
  524. order by nodeId asc
  525. <if test="orderBy != null and orderBy != ''">
  526. ,nlssort(nm,'NLS_SORT=SCHINESE_PINYIN_M')
  527. </if>
  528. </select>
  529. <select id="findPermissionInfo" resultType="cn.com.goldenwater.dcproj.model.Aqsxkspqk">
  530. SELECT
  531. QSXKSPLX AS qsxksplx,
  532. QSXKZH qsxkzh,
  533. QSXKZYXQKSSJ qsxkzyxqkssj,
  534. QSXKZYXQJSSJ qsxkzyxqjssj,
  535. QSSPJG qsspjg,
  536. QSQRMC qsqrmc,
  537. QSDD qsdd,
  538. TSDD tsdd,
  539. QSFS qsfs,
  540. TSFS tsfs,
  541. SPNQSL spnqsl,
  542. SPNTSL spntsl,
  543. QSYT qsyt,
  544. SYLX sylx
  545. from A_QSXKSPQK
  546. where ssxmid =#{id}
  547. </select>
  548. <select id="findIssueInfo" resultType="cn.com.goldenwater.dcproj.model.Aqsxkspqk">
  549. select zgdxfl,qyswtqx,qsxksxzgjhnr,qsxksxzgjhwcsj,zgjhbz from A_QSXMZGJHJJZ where ssxmid = #{id}
  550. </select>
  551. <select id="getListByInspGroupIdObjType" resultType="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr"
  552. parameterType="cn.com.goldenwater.dcproj.param.PagePersObjParam">
  553. SELECT
  554. T.WINT_NAME winName, T.AD_NAME , T.AD_CODE, C.ID GROUPID, C.PNM GROUPNAME, B.OBJ_ID
  555. FROM ATT_WINT_BASE T
  556. LEFT JOIN BIS_INSP_ALL_OBJ B ON B.CODE = T.ID
  557. LEFT JOIN BIS_INSP_ALL C ON B.ID = C.ID
  558. WHERE B.ptype = #{objType}
  559. <if test='isAll == "0"'>and B.ID = #{inspGroupId}</if>
  560. <if test='isAll == "1"'>and B.ID LIKE '${inspGroupId}%'</if>
  561. <if test="adCode != null and adCode != ''">
  562. and t.AD_CODE like '${adCode}%'
  563. </if>
  564. <if test="wtdstNm != null and wtdstNm != ''">
  565. and t.WINT_NAME like '${wtdstNm}%'
  566. </if>
  567. <choose>
  568. <when test="province != null and province != ''">
  569. and B.AD_CODE LIKE '${province}%'
  570. </when>
  571. <otherwise>
  572. and B.AD_CODE is null
  573. </otherwise>
  574. </choose>
  575. </select>
  576. </mapper>