BisInspVill2021CwsDao.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  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.BisInspVill2021CwsDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspVill2021Cws" id="bisInspVill2021CwsResultMap">
  5. <result property="cwsCode" column="CWS_CODE"/>
  6. <result property="cwsNm" column="CWS_NM"/>
  7. <result property="id" column="ID"/>
  8. <result property="adCode" column="AD_CODE"/>
  9. <result property="adName" column="AD_NAME"/>
  10. <result property="rgstrId" column="RGSTR_ID"/>
  11. <result property="cwsLoc" column="CWS_LOC"/>
  12. <result property="cwsVill" column="CWS_VILL"/>
  13. <result property="centerX" column="CENTER_X"/>
  14. <result property="centerY" column="CENTER_Y"/>
  15. <result property="gdX" column="GD_X"/>
  16. <result property="gdY" column="GD_Y"/>
  17. <result property="isOvpvCounty" column="IS_OVPV_COUNTY"/>
  18. <result property="isOvyfCounty" column="IS_OVYF_COUNTY"/>
  19. <result property="isOvslyCounty" column="IS_OVSLY_COUNTY"/>
  20. <result property="villType" column="VILL_TYPE"/>
  21. <result property="isOvyfCws" column="IS_OVYF_CWS"/>
  22. <result property="isOvslyCws" column="IS_OVSLY_CWS"/>
  23. <result property="isRunCws" column="IS_RUN_CWS"/>
  24. <result property="nrunNote" column="NRUN_NOTE"/>
  25. <result property="isFix" column="IS_FIX"/>
  26. <result property="wtType" column="WT_TYPE"/>
  27. <result property="singCost" column="SING_COST"/>
  28. <result property="twoCost" column="TWO_COST"/>
  29. <result property="twoCostLimt" column="TWO_COST_LIMT"/>
  30. <result property="step1Cost" column="STEP1_COST"/>
  31. <result property="step1CostLimt" column="STEP1_COST_LIMT"/>
  32. <result property="step2Cost" column="STEP2_COST"/>
  33. <result property="step2CostLimt" column="STEP2_COST_LIMT"/>
  34. <result property="step3Cost" column="STEP3_COST"/>
  35. <result property="step3CostLimt" column="STEP3_COST_LIMT"/>
  36. <result property="fixCost" column="FIX_COST"/>
  37. <result property="fixCostUnit" column="FIX_COST_UNIT"/>
  38. <result property="isCost" column="IS_COST"/>
  39. <result property="isCostSub" column="IS_COST_SUB"/>
  40. <result property="isCleanEq" column="IS_CLEAN_EQ"/>
  41. <result property="isCleanRun" column="IS_CLEAN_RUN"/>
  42. <result property="isWipeEq" column="IS_WIPE_EQ"/>
  43. <result property="isWipeRun" column="IS_WIPE_RUN"/>
  44. <result property="isChkRpt" column="IS_CHK_RPT"/>
  45. <result property="isChkRptPass" column="IS_CHK_RPT_PASS"/>
  46. <result property="chkRptPassNote" column="CHK_RPT_PASS_NOTE"/>
  47. <result property="unitType" column="UNIT_TYPE"/>
  48. <result property="isSetAdmin" column="IS_SET_ADMIN"/>
  49. <result property="isWatrSour" column="IS_WATR_SOUR"/>
  50. <result property="swhsType" column="SWHS_TYPE"/>
  51. <result property="isMeet" column="IS_MEET"/>
  52. <result property="evltType" column="EVLT_TYPE"/>
  53. <result property="isRange" column="IS_RANGE"/>
  54. <result property="note" column="NOTE"/>
  55. <result property="persId" column="PERS_ID"/>
  56. <result property="intm" column="INTM"/>
  57. <result property="uptm" column="UPTM"/>
  58. <result property="dataStat" column="DATA_STAT"/>
  59. <result property="meaCost" column="MEA_COST"/>
  60. </resultMap>
  61. <sql id="table_columns">
  62. CWS_CODE,
  63. CWS_NM,
  64. ID,
  65. AD_CODE,
  66. AD_NAME,
  67. RGSTR_ID,
  68. CWS_LOC,
  69. CWS_VILL,
  70. CENTER_X,
  71. CENTER_Y,
  72. GD_X,
  73. GD_Y,
  74. IS_OVPV_COUNTY,
  75. IS_OVYF_COUNTY,
  76. IS_OVSLY_COUNTY,
  77. VILL_TYPE,
  78. IS_OVYF_CWS,
  79. IS_OVSLY_CWS,
  80. IS_RUN_CWS,
  81. NRUN_NOTE,
  82. IS_FIX,
  83. WT_TYPE,
  84. SING_COST,
  85. TWO_COST,
  86. TWO_COST_LIMT,
  87. STEP1_COST,
  88. STEP1_COST_LIMT,
  89. STEP2_COST,
  90. STEP2_COST_LIMT,
  91. STEP3_COST,
  92. STEP3_COST_LIMT,
  93. FIX_COST,
  94. FIX_COST_UNIT,
  95. IS_COST,
  96. IS_COST_SUB,
  97. IS_CLEAN_EQ,
  98. IS_CLEAN_RUN,
  99. IS_WIPE_EQ,
  100. IS_WIPE_RUN,
  101. IS_CHK_RPT,
  102. IS_CHK_RPT_PASS,
  103. CHK_RPT_PASS_NOTE,
  104. UNIT_TYPE,
  105. IS_SET_ADMIN,
  106. IS_WATR_SOUR,
  107. SWHS_TYPE,
  108. IS_MEET,
  109. EVLT_TYPE,
  110. IS_RANGE,
  111. NOTE,
  112. PERS_ID,
  113. INTM,
  114. UPTM,
  115. DATA_STAT,
  116. MEA_COST
  117. </sql>
  118. <sql id="entity_properties">
  119. #{cwsCode},
  120. #{cwsNm},
  121. #{id},
  122. #{adCode},
  123. #{adName},
  124. #{rgstrId},
  125. #{cwsLoc},
  126. #{cwsVill},
  127. #{centerX},
  128. #{centerY},
  129. #{gdX},
  130. #{gdY},
  131. #{isOvpvCounty},
  132. #{isOvyfCounty},
  133. #{isOvslyCounty},
  134. #{villType},
  135. #{isOvyfCws},
  136. #{isOvslyCws},
  137. #{isRunCws},
  138. #{nrunNote},
  139. #{isFix},
  140. #{wtType},
  141. #{singCost},
  142. #{twoCost},
  143. #{twoCostLimt},
  144. #{step1Cost},
  145. #{step1CostLimt},
  146. #{step2Cost},
  147. #{step2CostLimt},
  148. #{step3Cost},
  149. #{step3CostLimt},
  150. #{fixCost},
  151. #{fixCostUnit},
  152. #{isCost},
  153. #{isCostSub},
  154. #{isCleanEq},
  155. #{isCleanRun},
  156. #{isWipeEq},
  157. #{isWipeRun},
  158. #{isChkRpt},
  159. #{isChkRptPass},
  160. #{chkRptPassNote},
  161. #{unitType},
  162. #{isSetAdmin},
  163. #{isWatrSour},
  164. #{swhsType},
  165. #{isMeet},
  166. #{evltType},
  167. #{isRange},
  168. #{note},
  169. #{persId},
  170. #{intm},
  171. #{uptm},
  172. #{dataStat},
  173. #{meaCost}
  174. </sql>
  175. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  176. <sql id="page_where">
  177. <trim prefix="where" prefixOverrides="and | or ">
  178. <if test="cwsCode != null and cwsCode != ''">
  179. and CWS_CODE = #{cwsCode}
  180. </if>
  181. <if test="adCode != null and adCode != ''">
  182. and AD_CODE = #{adCode}
  183. </if>
  184. <if test="adName != null and adName != ''">
  185. and AD_NAME = #{adName}
  186. </if>
  187. <if test="cwsNm != null and cwsNm != ''">
  188. and CWS_NM = #{cwsNm}
  189. </if>
  190. <if test="rgstrId != null and rgstrId != ''">
  191. and RGSTR_ID = #{rgstrId}
  192. </if>
  193. <if test="cwsLoc != null and cwsLoc != ''">
  194. and CWS_LOC = #{cwsLoc}
  195. </if>
  196. <if test="cwsVill != null and cwsVill != ''">
  197. and CWS_VILL = #{cwsVill}
  198. </if>
  199. <if test="centerX != null and centerX != ''">
  200. and CENTER_X = #{centerX}
  201. </if>
  202. <if test="centerY != null and centerY != ''">
  203. and CENTER_Y = #{centerY}
  204. </if>
  205. <if test="gdX != null and gdX != ''">
  206. and GD_X = #{gdX}
  207. </if>
  208. <if test="gdY != null and gdY != ''">
  209. and GD_Y = #{gdY}
  210. </if>
  211. <if test="isOvpvCounty != null and isOvpvCounty != ''">
  212. and IS_OVPV_COUNTY = #{isOvpvCounty}
  213. </if>
  214. <if test="isOvyfCounty != null and isOvyfCounty != ''">
  215. and IS_OVYF_COUNTY = #{isOvyfCounty}
  216. </if>
  217. <if test="isOvslyCounty != null and isOvslyCounty != ''">
  218. and IS_OVSLY_COUNTY = #{isOvslyCounty}
  219. </if>
  220. <if test="villType != null and villType != ''">
  221. and VILL_TYPE = #{villType}
  222. </if>
  223. <if test="isOvyfCws != null and isOvyfCws != ''">
  224. and IS_OVYF_CWS = #{isOvyfCws}
  225. </if>
  226. <if test="isOvslyCws != null and isOvslyCws != ''">
  227. and IS_OVSLY_CWS = #{isOvslyCws}
  228. </if>
  229. <if test="isRunCws != null and isRunCws != ''">
  230. and IS_RUN_CWS = #{isRunCws}
  231. </if>
  232. <if test="nrunNote != null and nrunNote != ''">
  233. and NRUN_NOTE = #{nrunNote}
  234. </if>
  235. <if test="isFix != null and isFix != ''">
  236. and IS_FIX = #{isFix}
  237. </if>
  238. <if test="wtType != null and wtType != ''">
  239. and WT_TYPE = #{wtType}
  240. </if>
  241. <if test="singCost != null and singCost != ''">
  242. and SING_COST = #{singCost}
  243. </if>
  244. <if test="twoCost != null and twoCost != ''">
  245. and TWO_COST = #{twoCost}
  246. </if>
  247. <if test="twoCostLimt != null and twoCostLimt != ''">
  248. and TWO_COST_LIMT = #{twoCostLimt}
  249. </if>
  250. <if test="step1Cost != null and step1Cost != ''">
  251. and STEP1_COST = #{step1Cost}
  252. </if>
  253. <if test="step1CostLimt != null and step1CostLimt != ''">
  254. and STEP1_COST_LIMT = #{step1CostLimt}
  255. </if>
  256. <if test="step2Cost != null and step2Cost != ''">
  257. and STEP2_COST = #{step2Cost}
  258. </if>
  259. <if test="step2CostLimt != null and step2CostLimt != ''">
  260. and STEP2_COST_LIMT = #{step2CostLimt}
  261. </if>
  262. <if test="step3Cost != null and step3Cost != ''">
  263. and STEP3_COST = #{step3Cost}
  264. </if>
  265. <if test="step3CostLimt != null and step3CostLimt != ''">
  266. and STEP3_COST_LIMT = #{step3CostLimt}
  267. </if>
  268. <if test="fixCost != null and fixCost != ''">
  269. and FIX_COST = #{fixCost}
  270. </if>
  271. <if test="fixCostUnit != null and fixCostUnit != ''">
  272. and FIX_COST_UNIT = #{fixCostUnit}
  273. </if>
  274. <if test="isCost != null and isCost != ''">
  275. and IS_COST = #{isCost}
  276. </if>
  277. <if test="isCostSub != null and isCostSub != ''">
  278. and IS_COST_SUB = #{isCostSub}
  279. </if>
  280. <if test="isCleanEq != null and isCleanEq != ''">
  281. and IS_CLEAN_EQ = #{isCleanEq}
  282. </if>
  283. <if test="isCleanRun != null and isCleanRun != ''">
  284. and IS_CLEAN_RUN = #{isCleanRun}
  285. </if>
  286. <if test="isWipeEq != null and isWipeEq != ''">
  287. and IS_WIPE_EQ = #{isWipeEq}
  288. </if>
  289. <if test="isWipeRun != null and isWipeRun != ''">
  290. and IS_WIPE_RUN = #{isWipeRun}
  291. </if>
  292. <if test="isChkRpt != null and isChkRpt != ''">
  293. and IS_CHK_RPT = #{isChkRpt}
  294. </if>
  295. <if test="isChkRptPass != null and isChkRptPass != ''">
  296. and IS_CHK_RPT_PASS = #{isChkRptPass}
  297. </if>
  298. <if test="chkRptPassNote != null and chkRptPassNote != ''">
  299. and CHK_RPT_PASS_NOTE = #{chkRptPassNote}
  300. </if>
  301. <if test="unitType != null and unitType != ''">
  302. and UNIT_TYPE = #{unitType}
  303. </if>
  304. <if test="isSetAdmin != null and isSetAdmin != ''">
  305. and IS_SET_ADMIN = #{isSetAdmin}
  306. </if>
  307. <if test="isWatrSour != null and isWatrSour != ''">
  308. and IS_WATR_SOUR = #{isWatrSour}
  309. </if>
  310. <if test="swhsType != null and swhsType != ''">
  311. and SWHS_TYPE = #{swhsType}
  312. </if>
  313. <if test="isMeet != null and isMeet != ''">
  314. and IS_MEET = #{isMeet}
  315. </if>
  316. <if test="evltType != null and evltType != ''">
  317. and EVLT_TYPE = #{evltType}
  318. </if>
  319. <if test="isRange != null and isRange != ''">
  320. and IS_RANGE = #{isRange}
  321. </if>
  322. <if test="note != null and note != ''">
  323. and NOTE = #{note}
  324. </if>
  325. <if test="persId != null and persId != ''">
  326. and PERS_ID = #{persId}
  327. </if>
  328. <if test="intm != null">
  329. and INTM = #{intm}
  330. </if>
  331. <if test="uptm != null">
  332. and UPTM = #{uptm}
  333. </if>
  334. <if test="dataStat != null and dataStat != ''">
  335. and DATA_STAT = #{dataStat}
  336. </if>
  337. <if test="meaCost != null and meaCost != ''">
  338. and MEA_COST = #{meaCost}
  339. </if>
  340. and DATA_STAT='0'
  341. </trim>
  342. </sql>
  343. <select id="get" resultMap="bisInspVill2021CwsResultMap" parameterType="String">
  344. select
  345. <include refid="table_columns"/>
  346. from BIS_INSP_VILL2021_CWS where ID = #{id}
  347. </select>
  348. <select id="getBy" resultMap="bisInspVill2021CwsResultMap">
  349. select
  350. <include refid="table_columns"/>
  351. from BIS_INSP_VILL2021_CWS
  352. <include refid="page_where"/>
  353. </select>
  354. <select id="findAll" resultMap="bisInspVill2021CwsResultMap">
  355. select
  356. <include refid="table_columns"/>
  357. from BIS_INSP_VILL2021_CWS
  358. </select>
  359. <select id="findList" resultMap="bisInspVill2021CwsResultMap">
  360. select
  361. <include refid="table_columns"/>
  362. from BIS_INSP_VILL2021_CWS
  363. <include refid="page_where"/>
  364. </select>
  365. <select id="selectCount" resultType="int">
  366. select count(ID) from BIS_INSP_VILL2021_CWS
  367. <include refid="page_where"/>
  368. </select>
  369. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Cws">
  370. insert into BIS_INSP_VILL2021_CWS(
  371. <include refid="table_columns"/>
  372. )
  373. values (
  374. <include refid="entity_properties"/>
  375. )
  376. </insert>
  377. <delete id="delete" parameterType="java.lang.String">
  378. update BIS_INSP_VILL2021_CWS set DATA_STAT='9' where ID = #{id}
  379. </delete>
  380. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Cws">
  381. update BIS_INSP_VILL2021_CWS set DATA_STAT='9'
  382. <include refid="page_where"/>
  383. </delete>
  384. <update id="deleteInFlag" parameterType="java.lang.String">
  385. update BIS_INSP_VILL2021_CWS set DATA_STAT = '9' where ID = #{id}
  386. </update>
  387. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Cws">
  388. update BIS_INSP_VILL2021_CWS
  389. <trim prefix="set" suffixOverrides=",">
  390. <if test="cwsCode != null and cwsCode != ''">CWS_CODE
  391. = #{cwsCode},
  392. </if>
  393. <if test="adCode != null and adCode != ''">AD_CODE
  394. = #{adCode},
  395. </if>
  396. <if test="adName != null and adName != ''">AD_NAME
  397. = #{adName},
  398. </if>
  399. <if test="cwsNm != null and cwsNm != ''">CWS_NM
  400. = #{cwsNm},
  401. </if>
  402. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  403. = #{rgstrId},
  404. </if>
  405. <if test="cwsLoc != null and cwsLoc != ''">CWS_LOC
  406. = #{cwsLoc},
  407. </if>
  408. <if test="cwsVill != null and cwsVill != ''">CWS_VILL
  409. = #{cwsVill},
  410. </if>
  411. <if test="centerX != null and centerX != ''">CENTER_X
  412. = #{centerX},
  413. </if>
  414. <if test="centerY != null and centerY != ''">CENTER_Y
  415. = #{centerY},
  416. </if>
  417. <if test="gdX != null and gdX != ''">GD_X
  418. = #{gdX},
  419. </if>
  420. <if test="gdY != null and gdY != ''">GD_Y
  421. = #{gdY},
  422. </if>
  423. <if test="isOvpvCounty != null and isOvpvCounty != ''">IS_OVPV_COUNTY
  424. = #{isOvpvCounty},
  425. </if>
  426. <if test="isOvyfCounty != null and isOvyfCounty != ''">IS_OVYF_COUNTY
  427. = #{isOvyfCounty},
  428. </if>
  429. <if test="isOvslyCounty != null and isOvslyCounty != ''">IS_OVSLY_COUNTY
  430. = #{isOvslyCounty},
  431. </if>
  432. <if test="villType != null and villType != ''">VILL_TYPE
  433. = #{villType},
  434. </if>
  435. <if test="isOvyfCws != null and isOvyfCws != ''">IS_OVYF_CWS
  436. = #{isOvyfCws},
  437. </if>
  438. <if test="isOvslyCws != null and isOvslyCws != ''">IS_OVSLY_CWS
  439. = #{isOvslyCws},
  440. </if>
  441. <if test="isRunCws != null and isRunCws != ''">IS_RUN_CWS
  442. = #{isRunCws},
  443. </if>
  444. <if test="nrunNote != null and nrunNote != ''">NRUN_NOTE
  445. = #{nrunNote},
  446. </if>
  447. <if test="isFix != null and isFix != ''">IS_FIX
  448. = #{isFix},
  449. </if>
  450. <if test="wtType != null and wtType != ''">WT_TYPE
  451. = #{wtType},
  452. </if>
  453. <if test="singCost != null and singCost != ''">SING_COST
  454. = #{singCost},
  455. </if>
  456. <if test="twoCost != null and twoCost != ''">TWO_COST
  457. = #{twoCost},
  458. </if>
  459. <if test="twoCostLimt != null and twoCostLimt != ''">TWO_COST_LIMT
  460. = #{twoCostLimt},
  461. </if>
  462. <if test="step1Cost != null and step1Cost != ''">STEP1_COST
  463. = #{step1Cost},
  464. </if>
  465. <if test="step1CostLimt != null and step1CostLimt != ''">STEP1_COST_LIMT
  466. = #{step1CostLimt},
  467. </if>
  468. <if test="step2Cost != null and step2Cost != ''">STEP2_COST
  469. = #{step2Cost},
  470. </if>
  471. <if test="step2CostLimt != null and step2CostLimt != ''">STEP2_COST_LIMT
  472. = #{step2CostLimt},
  473. </if>
  474. <if test="step3Cost != null and step3Cost != ''">STEP3_COST
  475. = #{step3Cost},
  476. </if>
  477. <if test="step3CostLimt != null and step3CostLimt != ''">STEP3_COST_LIMT
  478. = #{step3CostLimt},
  479. </if>
  480. <if test="fixCost != null and fixCost != ''">FIX_COST
  481. = #{fixCost},
  482. </if>
  483. <if test="fixCostUnit != null and fixCostUnit != ''">FIX_COST_UNIT
  484. = #{fixCostUnit},
  485. </if>
  486. <if test="isCost != null and isCost != ''">IS_COST
  487. = #{isCost},
  488. </if>
  489. <if test="isCostSub != null and isCostSub != ''">IS_COST_SUB
  490. = #{isCostSub},
  491. </if>
  492. <if test="isCleanEq != null and isCleanEq != ''">IS_CLEAN_EQ
  493. = #{isCleanEq},
  494. </if>
  495. <if test="isCleanRun != null and isCleanRun != ''">IS_CLEAN_RUN
  496. = #{isCleanRun},
  497. </if>
  498. <if test="isWipeEq != null and isWipeEq != ''">IS_WIPE_EQ
  499. = #{isWipeEq},
  500. </if>
  501. <if test="isWipeRun != null and isWipeRun != ''">IS_WIPE_RUN
  502. = #{isWipeRun},
  503. </if>
  504. <if test="isChkRpt != null and isChkRpt != ''">IS_CHK_RPT
  505. = #{isChkRpt},
  506. </if>
  507. <if test="isChkRptPass != null and isChkRptPass != ''">IS_CHK_RPT_PASS
  508. = #{isChkRptPass},
  509. </if>
  510. <if test="chkRptPassNote != null and chkRptPassNote != ''">CHK_RPT_PASS_NOTE
  511. = #{chkRptPassNote},
  512. </if>
  513. <if test="unitType != null and unitType != ''">UNIT_TYPE
  514. = #{unitType},
  515. </if>
  516. <if test="isSetAdmin != null and isSetAdmin != ''">IS_SET_ADMIN
  517. = #{isSetAdmin},
  518. </if>
  519. <if test="isWatrSour != null and isWatrSour != ''">IS_WATR_SOUR
  520. = #{isWatrSour},
  521. </if>
  522. <if test="swhsType != null and swhsType != ''">SWHS_TYPE
  523. = #{swhsType},
  524. </if>
  525. <if test="isMeet != null and isMeet != ''">IS_MEET
  526. = #{isMeet},
  527. </if>
  528. <if test="evltType != null and evltType != ''">EVLT_TYPE
  529. = #{evltType},
  530. </if>
  531. <if test="isRange != null and isRange != ''">IS_RANGE
  532. = #{isRange},
  533. </if>
  534. <if test="note != null and note != ''">NOTE
  535. = #{note},
  536. </if>
  537. <if test="persId != null and persId != ''">PERS_ID
  538. = #{persId},
  539. </if>
  540. <if test="intm != null">INTM
  541. = #{intm},
  542. </if>
  543. <if test="uptm != null">UPTM
  544. = #{uptm},
  545. </if>
  546. <if test="dataStat != null and dataStat != ''">DATA_STAT
  547. = #{dataStat},
  548. </if>
  549. <if test="meaCost != null and meaCost != ''">MEA_COST
  550. = #{meaCost},
  551. </if>
  552. </trim>
  553. <where>ID = #{id}</where>
  554. </update>
  555. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspVill2021Cws">
  556. update BIS_INSP_VILL2021_CWS
  557. <trim prefix="set" suffixOverrides=",">
  558. <if test="cwsCode != null and cwsCode != ''">CWS_CODE
  559. = #{cwsCode},
  560. </if>
  561. <if test="cwsNm != null and cwsNm != ''">CWS_NM
  562. = #{cwsNm},
  563. </if>
  564. <if test="adCode != null and adCode != ''">AD_CODE
  565. = #{adCode},
  566. </if>
  567. <if test="adName != null and adName != ''">AD_NAME
  568. = #{adName},
  569. </if>
  570. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID
  571. = #{rgstrId},
  572. </if>
  573. <if test="cwsLoc != null and cwsLoc != ''">CWS_LOC
  574. = #{cwsLoc},
  575. </if>
  576. <if test="cwsVill != null and cwsVill != ''">CWS_VILL
  577. = #{cwsVill},
  578. </if>
  579. <if test="centerX != null and centerX != ''">CENTER_X
  580. = #{centerX},
  581. </if>
  582. <if test="centerY != null and centerY != ''">CENTER_Y
  583. = #{centerY},
  584. </if>
  585. <if test="gdX != null and gdX != ''">GD_X
  586. = #{gdX},
  587. </if>
  588. <if test="gdY != null and gdY != ''">GD_Y
  589. = #{gdY},
  590. </if>
  591. <if test="isOvpvCounty != null and isOvpvCounty != ''">IS_OVPV_COUNTY
  592. = #{isOvpvCounty},
  593. </if>
  594. <if test="isOvyfCounty != null and isOvyfCounty != ''">IS_OVYF_COUNTY
  595. = #{isOvyfCounty},
  596. </if>
  597. <if test="isOvslyCounty != null and isOvslyCounty != ''">IS_OVSLY_COUNTY
  598. = #{isOvslyCounty},
  599. </if>
  600. <if test="villType != null and villType != ''">VILL_TYPE
  601. = #{villType},
  602. </if>
  603. <if test="isOvyfCws != null and isOvyfCws != ''">IS_OVYF_CWS
  604. = #{isOvyfCws},
  605. </if>
  606. <if test="isOvslyCws != null and isOvslyCws != ''">IS_OVSLY_CWS
  607. = #{isOvslyCws},
  608. </if>
  609. <if test="isRunCws != null and isRunCws != ''">IS_RUN_CWS
  610. = #{isRunCws},
  611. </if>
  612. <if test="nrunNote != null and nrunNote != ''">NRUN_NOTE
  613. = #{nrunNote},
  614. </if>
  615. <if test="isFix != null and isFix != ''">IS_FIX
  616. = #{isFix},
  617. </if>
  618. <if test="wtType != null and wtType != ''">WT_TYPE
  619. = #{wtType},
  620. </if>
  621. <if test="singCost != null and singCost != ''">SING_COST
  622. = #{singCost},
  623. </if>
  624. <if test="twoCost != null and twoCost != ''">TWO_COST
  625. = #{twoCost},
  626. </if>
  627. <if test="twoCostLimt != null and twoCostLimt != ''">TWO_COST_LIMT
  628. = #{twoCostLimt},
  629. </if>
  630. <if test="step1Cost != null and step1Cost != ''">STEP1_COST
  631. = #{step1Cost},
  632. </if>
  633. <if test="step1CostLimt != null and step1CostLimt != ''">STEP1_COST_LIMT
  634. = #{step1CostLimt},
  635. </if>
  636. <if test="step2Cost != null and step2Cost != ''">STEP2_COST
  637. = #{step2Cost},
  638. </if>
  639. <if test="step2CostLimt != null and step2CostLimt != ''">STEP2_COST_LIMT
  640. = #{step2CostLimt},
  641. </if>
  642. <if test="step3Cost != null and step3Cost != ''">STEP3_COST
  643. = #{step3Cost},
  644. </if>
  645. <if test="step3CostLimt != null and step3CostLimt != ''">STEP3_COST_LIMT
  646. = #{step3CostLimt},
  647. </if>
  648. <if test="fixCost != null and fixCost != ''">FIX_COST
  649. = #{fixCost},
  650. </if>
  651. <if test="fixCostUnit != null and fixCostUnit != ''">FIX_COST_UNIT
  652. = #{fixCostUnit},
  653. </if>
  654. <if test="isCost != null and isCost != ''">IS_COST
  655. = #{isCost},
  656. </if>
  657. <if test="isCostSub != null and isCostSub != ''">IS_COST_SUB
  658. = #{isCostSub},
  659. </if>
  660. <if test="isCleanEq != null and isCleanEq != ''">IS_CLEAN_EQ
  661. = #{isCleanEq},
  662. </if>
  663. <if test="isCleanRun != null and isCleanRun != ''">IS_CLEAN_RUN
  664. = #{isCleanRun},
  665. </if>
  666. <if test="isWipeEq != null and isWipeEq != ''">IS_WIPE_EQ
  667. = #{isWipeEq},
  668. </if>
  669. <if test="isWipeRun != null and isWipeRun != ''">IS_WIPE_RUN
  670. = #{isWipeRun},
  671. </if>
  672. <if test="isChkRpt != null and isChkRpt != ''">IS_CHK_RPT
  673. = #{isChkRpt},
  674. </if>
  675. <if test="isChkRptPass != null and isChkRptPass != ''">IS_CHK_RPT_PASS
  676. = #{isChkRptPass},
  677. </if>
  678. <if test="chkRptPassNote != null and chkRptPassNote != ''">CHK_RPT_PASS_NOTE
  679. = #{chkRptPassNote},
  680. </if>
  681. <if test="unitType != null and unitType != ''">UNIT_TYPE
  682. = #{unitType},
  683. </if>
  684. <if test="isSetAdmin != null and isSetAdmin != ''">IS_SET_ADMIN
  685. = #{isSetAdmin},
  686. </if>
  687. <if test="isWatrSour != null and isWatrSour != ''">IS_WATR_SOUR
  688. = #{isWatrSour},
  689. </if>
  690. <if test="swhsType != null and swhsType != ''">SWHS_TYPE
  691. = #{swhsType},
  692. </if>
  693. <if test="isMeet != null and isMeet != ''">IS_MEET
  694. = #{isMeet},
  695. </if>
  696. <if test="evltType != null and evltType != ''">EVLT_TYPE
  697. = #{evltType},
  698. </if>
  699. <if test="isRange != null and isRange != ''">IS_RANGE
  700. = #{isRange},
  701. </if>
  702. <if test="note != null and note != ''">NOTE
  703. = #{note},
  704. </if>
  705. <if test="persId != null and persId != ''">PERS_ID
  706. = #{persId},
  707. </if>
  708. <if test="intm != null">INTM
  709. = #{intm},
  710. </if>
  711. <if test="uptm != null">UPTM
  712. = #{uptm},
  713. </if>
  714. <if test="dataStat != null and dataStat != ''">DATA_STAT
  715. = #{dataStat},
  716. </if>
  717. <if test="meaCost != null and meaCost != ''">MEA_COST
  718. = #{meaCost},
  719. </if>
  720. </trim>
  721. <include refid="page_where"/>
  722. </update>
  723. <!-- 其他自定义SQL -->
  724. </mapper>