BisInspIrrRgstrDao.xml 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978
  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.BisInspIrrRgstrDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspIrrRgstr" id="bisInspIrrRgstrResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="objId" column="OBJ_ID"/>
  7. <result property="adCode" column="AD_CODE"/>
  8. <result property="adName" column="AD_NAME"/>
  9. <result property="rurPop" column="RUR_POP"/>
  10. <result property="cltArea" column="CLT_AREA"/>
  11. <result property="lndfrm" column="LNDFRM"/>
  12. <result property="irrPrpSrf" column="IRR_PRP_SRF"/>
  13. <result property="irrPrpGru" column="IRR_PRP_GRU"/>
  14. <result property="effIrrArea" column="EFF_IRR_AREA"/>
  15. <result property="higStnArea" column="HIG_STN_AREA"/>
  16. <result property="actIrrArea" column="ACT_IRR_AREA"/>
  17. <result property="smlIrrSize" column="SML_IRR_SIZE"/>
  18. <result property="smlIrrRate" column="SML_IRR_RATE"/>
  19. <result property="smlRegSize" column="SML_REG_SIZE"/>
  20. <result property="isCrtPlan" column="IS_CRT_PLAN"/>
  21. <result property="isCrtPlanGive" column="IS_CRT_PLAN_GIVE"/>
  22. <result property="prjPbmArea" column="PRJ_PBM_AREA"/>
  23. <result property="smlChanLng" column="SML_CHAN_LNG"/>
  24. <result property="chanLnnLng" column="CHAN_LNN_LNG"/>
  25. <result property="pondSize" column="POND_SIZE"/>
  26. <result property="pustSize" column="PUST_SIZE"/>
  27. <result property="wasSize" column="WAS_SIZE"/>
  28. <result property="wellSize" column="WELL_SIZE"/>
  29. <result property="effIrrAreaPipe" column="EFF_IRR_AREA_PIPE"/>
  30. <result property="effIrrAreaSprn" column="EFF_IRR_AREA_SPRN"/>
  31. <result property="effIrrAreaMicro" column="EFF_IRR_AREA_MICRO"/>
  32. <result property="effIrrAreaCount" column="EFF_IRR_AREA_COUNT"/>
  33. <result property="efuIrrAreaPipe" column="EFU_IRR_AREA_PIPE"/>
  34. <result property="efuIrrAreaSprn" column="EFU_IRR_AREA_SPRN"/>
  35. <result property="efuIrrAreaMicro" column="EFU_IRR_AREA_MICRO"/>
  36. <result property="efuIrrAreaCount" column="EFU_IRR_AREA_COUNT"/>
  37. <result property="wtrSttnSize" column="WTR_STTN_SIZE"/>
  38. <result property="wtrSttnRel" column="WTR_STTN_REL"/>
  39. <result property="wtrSttnRelNote" column="WTR_STTN_REL_NOTE"/>
  40. <result property="fwtrSttnSize" column="FWTR_STTN_SIZE"/>
  41. <result property="wtrSttnPopSize" column="WTR_STTN_POP_SIZE"/>
  42. <result property="wtrSttnProSize" column="WTR_STTN_PRO_SIZE"/>
  43. <result property="rurOrgSize" column="RUR_ORG_SIZE"/>
  44. <result property="orgIrrArea" column="ORG_IRR_AREA"/>
  45. <result property="villPopSize" column="VILL_POP_SIZE"/>
  46. <result property="villAvgSize" column="VILL_AVG_SIZE"/>
  47. <result property="wtrSrvcSize" column="WTR_SRVC_SIZE"/>
  48. <result property="wtrSrvcEvlt" column="WTR_SRVC_EVLT"/>
  49. <result property="isRfrmPrjRght" column="IS_RFRM_PRJ_RGHT"/>
  50. <result property="smlCnsrSize" column="SML_CNSR_SIZE"/>
  51. <result property="smlCnsrSttSize" column="SML_CNSR_STT_SIZE"/>
  52. <result property="smlCnsrVillSize" column="SML_CNSR_VILL_SIZE"/>
  53. <result property="smlCnsrOgrSize" column="SML_CNSR_OGR_SIZE"/>
  54. <result property="smlCnsrPopSize" column="SML_CNSR_POP_SIZE"/>
  55. <result property="bulDep" column="BUL_DEP"/>
  56. <result property="higStnMoney" column="HIG_STN_MONEY"/>
  57. <result property="higStnMoneyWtr" column="HIG_STN_MONEY_WTR"/>
  58. <result property="higStnAreaLst" column="HIG_STN_AREA_LST"/>
  59. <result property="othrStnMoney" column="OTHR_STN_MONEY"/>
  60. <result property="smlRunDep" column="SML_RUN_DEP"/>
  61. <result property="isRunPlan" column="IS_RUN_PLAN"/>
  62. <result property="isBulProt" column="IS_BUL_PROT"/>
  63. <result property="isPrjLdg" column="IS_PRJ_LDG"/>
  64. <result property="cunRunType" column="CUN_RUN_TYPE"/>
  65. <result property="cunRunTypeNote" column="CUN_RUN_TYPE_NOTE"/>
  66. <result property="avgRunMoney" column="AVG_RUN_MONEY"/>
  67. <result property="proRunMoney" column="PRO_RUN_MONEY"/>
  68. <result property="cityRunMoney" column="CITY_RUN_MONEY"/>
  69. <result property="cunRunMoney" column="CUN_RUN_MONEY"/>
  70. <result property="isRunChk" column="IS_RUN_CHK"/>
  71. <result property="wtrCmpPrcArea" column="WTR_CMP_PRC_AREA"/>
  72. <result property="hasReformArea" column="HAS_REFORM_AREA"/>
  73. <result property="isWtrPrice" column="IS_WTR_PRICE"/>
  74. <result property="wtrPriceRun" column="WTR_PRICE_RUN"/>
  75. <result property="isCollectWtrp" column="IS_COLLECT_WTRP"/>
  76. <result property="collectWtrp" column="COLLECT_WTRP"/>
  77. <result property="wtrpCollect" column="WTRP_COLLECT"/>
  78. <result property="collectMain" column="COLLECT_MAIN"/>
  79. <result property="wtrpAvgCube" column="WTRP_AVG_CUBE"/>
  80. <result property="wtrpAvgArea" column="WTRP_AVG_AREA"/>
  81. <result property="wtrpAvgDegree" column="WTRP_AVG_DEGREE"/>
  82. <result property="wtrpDrc" column="WTRP_DRC"/>
  83. <result property="wtrpPblm" column="WTRP_PBLM"/>
  84. <result property="comments" column="COMMENTS"/>
  85. <result property="invsrName" column="INVSR_NAME"/>
  86. <result property="invsrPhone" column="INVSR_PHONE"/>
  87. <result property="cunCntcName" column="CUN_CNTC_NAME"/>
  88. <result property="cunCntcPhone" column="CUN_CNTC_PHONE"/>
  89. <result property="rsrchTm" column="RSRCH_TM"/>
  90. <result property="intm" column="INTM"/>
  91. <result property="uptm" column="UPTM"/>
  92. <result property="dataStat" column="DATA_STAT"/>
  93. <result property="centerX" column="CENTER_X"/>
  94. <result property="centerY" column="CENTER_Y"/>
  95. <result property="gdX" column="GD_X"/>
  96. <result property="gdY" column="GD_Y"/>
  97. <result property="state" column="STATE"/>
  98. <result property="bulDepNote" column="BUL_DEP_NOTE"/>
  99. <result property="adFullName" column="AD_FULL_NAME"/>
  100. </resultMap>
  101. <sql id="table_columns">
  102. AD_FULL_NAME,
  103. BUL_DEP_NOTE,
  104. STATE,
  105. CENTER_X,
  106. CENTER_Y,
  107. GD_X,
  108. GD_Y,
  109. ID,
  110. OBJ_ID,
  111. AD_CODE,
  112. AD_NAME,
  113. RUR_POP,
  114. CLT_AREA,
  115. LNDFRM,
  116. IRR_PRP_SRF,
  117. IRR_PRP_GRU,
  118. EFF_IRR_AREA,
  119. HIG_STN_AREA,
  120. ACT_IRR_AREA,
  121. SML_IRR_SIZE,
  122. SML_IRR_RATE,
  123. SML_REG_SIZE,
  124. IS_CRT_PLAN,
  125. IS_CRT_PLAN_GIVE,
  126. PRJ_PBM_AREA,
  127. SML_CHAN_LNG,
  128. CHAN_LNN_LNG,
  129. POND_SIZE,
  130. PUST_SIZE,
  131. WAS_SIZE,
  132. WELL_SIZE,
  133. EFF_IRR_AREA_PIPE,
  134. EFF_IRR_AREA_SPRN,
  135. EFF_IRR_AREA_MICRO,
  136. EFF_IRR_AREA_COUNT,
  137. EFU_IRR_AREA_PIPE,
  138. EFU_IRR_AREA_SPRN,
  139. EFU_IRR_AREA_MICRO,
  140. EFU_IRR_AREA_COUNT,
  141. WTR_STTN_SIZE,
  142. WTR_STTN_REL,
  143. WTR_STTN_REL_NOTE,
  144. FWTR_STTN_SIZE,
  145. WTR_STTN_POP_SIZE,
  146. WTR_STTN_PRO_SIZE,
  147. RUR_ORG_SIZE,
  148. ORG_IRR_AREA,
  149. VILL_POP_SIZE,
  150. VILL_AVG_SIZE,
  151. WTR_SRVC_SIZE,
  152. WTR_SRVC_EVLT,
  153. IS_RFRM_PRJ_RGHT,
  154. SML_CNSR_SIZE,
  155. SML_CNSR_STT_SIZE,
  156. SML_CNSR_VILL_SIZE,
  157. SML_CNSR_OGR_SIZE,
  158. SML_CNSR_POP_SIZE,
  159. BUL_DEP,
  160. HIG_STN_MONEY,
  161. HIG_STN_MONEY_WTR,
  162. HIG_STN_AREA_LST,
  163. OTHR_STN_MONEY,
  164. SML_RUN_DEP,
  165. IS_RUN_PLAN,
  166. IS_BUL_PROT,
  167. IS_PRJ_LDG,
  168. CUN_RUN_TYPE,
  169. CUN_RUN_TYPE_NOTE,
  170. AVG_RUN_MONEY,
  171. PRO_RUN_MONEY,
  172. CITY_RUN_MONEY,
  173. CUN_RUN_MONEY,
  174. IS_RUN_CHK,
  175. WTR_CMP_PRC_AREA,
  176. HAS_REFORM_AREA,
  177. IS_WTR_PRICE,
  178. WTR_PRICE_RUN,
  179. IS_COLLECT_WTRP,
  180. COLLECT_WTRP,
  181. WTRP_COLLECT,
  182. COLLECT_MAIN,
  183. WTRP_AVG_CUBE,
  184. WTRP_AVG_AREA,
  185. WTRP_AVG_DEGREE,
  186. WTRP_DRC,
  187. WTRP_PBLM,
  188. COMMENTS,
  189. INVSR_NAME,
  190. INVSR_PHONE,
  191. CUN_CNTC_NAME,
  192. CUN_CNTC_PHONE,
  193. RSRCH_TM,
  194. INTM,
  195. UPTM,
  196. DATA_STAT
  197. </sql>
  198. <sql id="entity_properties">
  199. #{adFullName},
  200. #{bulDepNote},
  201. #{state},
  202. #{centerX},
  203. #{centerY},
  204. #{gdX},
  205. #{gdY},
  206. #{id},
  207. #{objId},
  208. #{adCode},
  209. #{adName},
  210. #{rurPop},
  211. #{cltArea},
  212. #{lndfrm},
  213. #{irrPrpSrf},
  214. #{irrPrpGru},
  215. #{effIrrArea},
  216. #{higStnArea},
  217. #{actIrrArea},
  218. #{smlIrrSize},
  219. #{smlIrrRate},
  220. #{smlRegSize},
  221. #{isCrtPlan},
  222. #{isCrtPlanGive},
  223. #{prjPbmArea},
  224. #{smlChanLng},
  225. #{chanLnnLng},
  226. #{pondSize},
  227. #{pustSize},
  228. #{wasSize},
  229. #{wellSize},
  230. #{effIrrAreaPipe},
  231. #{effIrrAreaSprn},
  232. #{effIrrAreaMicro},
  233. #{effIrrAreaCount},
  234. #{efuIrrAreaPipe},
  235. #{efuIrrAreaSprn},
  236. #{efuIrrAreaMicro},
  237. #{efuIrrAreaCount},
  238. #{wtrSttnSize},
  239. #{wtrSttnRel},
  240. #{wtrSttnRelNote},
  241. #{fwtrSttnSize},
  242. #{wtrSttnPopSize},
  243. #{wtrSttnProSize},
  244. #{rurOrgSize},
  245. #{orgIrrArea},
  246. #{villPopSize},
  247. #{villAvgSize},
  248. #{wtrSrvcSize},
  249. #{wtrSrvcEvlt},
  250. #{isRfrmPrjRght},
  251. #{smlCnsrSize},
  252. #{smlCnsrSttSize},
  253. #{smlCnsrVillSize},
  254. #{smlCnsrOgrSize},
  255. #{smlCnsrPopSize},
  256. #{bulDep},
  257. #{higStnMoney},
  258. #{higStnMoneyWtr},
  259. #{higStnAreaLst},
  260. #{othrStnMoney},
  261. #{smlRunDep},
  262. #{isRunPlan},
  263. #{isBulProt},
  264. #{isPrjLdg},
  265. #{cunRunType},
  266. #{cunRunTypeNote},
  267. #{avgRunMoney},
  268. #{proRunMoney},
  269. #{cityRunMoney},
  270. #{cunRunMoney},
  271. #{isRunChk},
  272. #{wtrCmpPrcArea},
  273. #{hasReformArea},
  274. #{isWtrPrice},
  275. #{wtrPriceRun},
  276. #{isCollectWtrp},
  277. #{collectWtrp},
  278. #{wtrpCollect},
  279. #{collectMain},
  280. #{wtrpAvgCube},
  281. #{wtrpAvgArea},
  282. #{wtrpAvgDegree},
  283. #{wtrpDrc},
  284. #{wtrpPblm},
  285. #{comments},
  286. #{invsrName},
  287. #{invsrPhone},
  288. #{cunCntcName},
  289. #{cunCntcPhone},
  290. #{rsrchTm},
  291. #{intm},
  292. #{uptm},
  293. #{dataStat}
  294. </sql>
  295. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  296. <sql id="page_where">
  297. <trim prefix="where" prefixOverrides="and | or ">
  298. <if test="adFullName != null and adFullName != ''">and AD_FULL_NAME = #{adFullName}</if>
  299. <if test="bulDepNote != null and bulDepNote != ''">and BUL_DEP_NOTE = #{bulDepNote}</if>
  300. <if test="state != null and state != ''">and STATE = #{state}</if>
  301. <if test="centerX != null and centerX != ''">and CENTER_X = #{centerX}</if>
  302. <if test="centerY != null and centerY != ''">and CENTER_Y = #{centerY}</if>
  303. <if test="gdX != null and gdX != ''">and GD_X = #{gdX}</if>
  304. <if test="gdY != null and gdY != ''">and GD_Y = #{gdY}</if>
  305. <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
  306. <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
  307. <if test="adName != null and adName != ''">and AD_NAME = #{adName}</if>
  308. <if test="rurPop != null and rurPop != ''">and RUR_POP = #{rurPop}</if>
  309. <if test="cltArea != null and cltArea != ''">and CLT_AREA = #{cltArea}</if>
  310. <if test="lndfrm != null and lndfrm != ''">and LNDFRM = #{lndfrm}</if>
  311. <if test="irrPrpSrf != null and irrPrpSrf != ''">and IRR_PRP_SRF = #{irrPrpSrf}</if>
  312. <if test="irrPrpGru != null and irrPrpGru != ''">and IRR_PRP_GRU = #{irrPrpGru}</if>
  313. <if test="effIrrArea != null and effIrrArea != ''">and EFF_IRR_AREA = #{effIrrArea}</if>
  314. <if test="higStnArea != null and higStnArea != ''">and HIG_STN_AREA = #{higStnArea}</if>
  315. <if test="actIrrArea != null and actIrrArea != ''">and ACT_IRR_AREA = #{actIrrArea}</if>
  316. <if test="smlIrrSize != null and smlIrrSize != ''">and SML_IRR_SIZE = #{smlIrrSize}</if>
  317. <if test="smlIrrRate != null and smlIrrRate != ''">and SML_IRR_RATE = #{smlIrrRate}</if>
  318. <if test="smlRegSize != null and smlRegSize != ''">and SML_REG_SIZE = #{smlRegSize}</if>
  319. <if test="isCrtPlan != null and isCrtPlan != ''">and IS_CRT_PLAN = #{isCrtPlan}</if>
  320. <if test="isCrtPlanGive != null and isCrtPlanGive != ''">and IS_CRT_PLAN_GIVE = #{isCrtPlanGive}</if>
  321. <if test="prjPbmArea != null and prjPbmArea != ''">and PRJ_PBM_AREA = #{prjPbmArea}</if>
  322. <if test="smlChanLng != null and smlChanLng != ''">and SML_CHAN_LNG = #{smlChanLng}</if>
  323. <if test="chanLnnLng != null and chanLnnLng != ''">and CHAN_LNN_LNG = #{chanLnnLng}</if>
  324. <if test="pondSize != null and pondSize != ''">and POND_SIZE = #{pondSize}</if>
  325. <if test="pustSize != null and pustSize != ''">and PUST_SIZE = #{pustSize}</if>
  326. <if test="wasSize != null and wasSize != ''">and WAS_SIZE = #{wasSize}</if>
  327. <if test="wellSize != null and wellSize != ''">and WELL_SIZE = #{wellSize}</if>
  328. <if test="effIrrAreaPipe != null and effIrrAreaPipe != ''">and EFF_IRR_AREA_PIPE = #{effIrrAreaPipe}</if>
  329. <if test="effIrrAreaSprn != null and effIrrAreaSprn != ''">and EFF_IRR_AREA_SPRN = #{effIrrAreaSprn}</if>
  330. <if test="effIrrAreaMicro != null and effIrrAreaMicro != ''">and EFF_IRR_AREA_MICRO = #{effIrrAreaMicro}</if>
  331. <if test="effIrrAreaCount != null and effIrrAreaCount != ''">and EFF_IRR_AREA_COUNT = #{effIrrAreaCount}</if>
  332. <if test="efuIrrAreaPipe != null and efuIrrAreaPipe != ''">and EFU_IRR_AREA_PIPE = #{efuIrrAreaPipe}</if>
  333. <if test="efuIrrAreaSprn != null and efuIrrAreaSprn != ''">and EFU_IRR_AREA_SPRN = #{efuIrrAreaSprn}</if>
  334. <if test="efuIrrAreaMicro != null and efuIrrAreaMicro != ''">and EFU_IRR_AREA_MICRO = #{efuIrrAreaMicro}</if>
  335. <if test="efuIrrAreaCount != null and efuIrrAreaCount != ''">and EFU_IRR_AREA_COUNT = #{efuIrrAreaCount}</if>
  336. <if test="wtrSttnSize != null and wtrSttnSize != ''">and WTR_STTN_SIZE = #{wtrSttnSize}</if>
  337. <if test="wtrSttnRel != null and wtrSttnRel != ''">and WTR_STTN_REL = #{wtrSttnRel}</if>
  338. <if test="wtrSttnRelNote != null and wtrSttnRelNote != ''">and WTR_STTN_REL_NOTE = #{wtrSttnRelNote}</if>
  339. <if test="fwtrSttnSize != null and fwtrSttnSize != ''">and FWTR_STTN_SIZE = #{fwtrSttnSize}</if>
  340. <if test="wtrSttnPopSize != null and wtrSttnPopSize != ''">and WTR_STTN_POP_SIZE = #{wtrSttnPopSize}</if>
  341. <if test="wtrSttnProSize != null and wtrSttnProSize != ''">and WTR_STTN_PRO_SIZE = #{wtrSttnProSize}</if>
  342. <if test="rurOrgSize != null and rurOrgSize != ''">and RUR_ORG_SIZE = #{rurOrgSize}</if>
  343. <if test="orgIrrArea != null and orgIrrArea != ''">and ORG_IRR_AREA = #{orgIrrArea}</if>
  344. <if test="villPopSize != null and villPopSize != ''">and VILL_POP_SIZE = #{villPopSize}</if>
  345. <if test="villAvgSize != null and villAvgSize != ''">and VILL_AVG_SIZE = #{villAvgSize}</if>
  346. <if test="wtrSrvcSize != null and wtrSrvcSize != ''">and WTR_SRVC_SIZE = #{wtrSrvcSize}</if>
  347. <if test="wtrSrvcEvlt != null and wtrSrvcEvlt != ''">and WTR_SRVC_EVLT = #{wtrSrvcEvlt}</if>
  348. <if test="isRfrmPrjRght != null and isRfrmPrjRght != ''">and IS_RFRM_PRJ_RGHT = #{isRfrmPrjRght}</if>
  349. <if test="smlCnsrSize != null and smlCnsrSize != ''">and SML_CNSR_SIZE = #{smlCnsrSize}</if>
  350. <if test="smlCnsrSttSize != null and smlCnsrSttSize != ''">and SML_CNSR_STT_SIZE = #{smlCnsrSttSize}</if>
  351. <if test="smlCnsrVillSize != null and smlCnsrVillSize != ''">and SML_CNSR_VILL_SIZE = #{smlCnsrVillSize}</if>
  352. <if test="smlCnsrOgrSize != null and smlCnsrOgrSize != ''">and SML_CNSR_OGR_SIZE = #{smlCnsrOgrSize}</if>
  353. <if test="smlCnsrPopSize != null and smlCnsrPopSize != ''">and SML_CNSR_POP_SIZE = #{smlCnsrPopSize}</if>
  354. <if test="bulDep != null and bulDep != ''">and BUL_DEP = #{bulDep}</if>
  355. <if test="higStnMoney != null and higStnMoney != ''">and HIG_STN_MONEY = #{higStnMoney}</if>
  356. <if test="higStnMoneyWtr != null and higStnMoneyWtr != ''">and HIG_STN_MONEY_WTR = #{higStnMoneyWtr}</if>
  357. <if test="higStnAreaLst != null and higStnAreaLst != ''">and HIG_STN_AREA_LST = #{higStnAreaLst}</if>
  358. <if test="othrStnMoney != null and othrStnMoney != ''">and OTHR_STN_MONEY = #{othrStnMoney}</if>
  359. <if test="smlRunDep != null and smlRunDep != ''">and SML_RUN_DEP = #{smlRunDep}</if>
  360. <if test="isRunPlan != null and isRunPlan != ''">and IS_RUN_PLAN = #{isRunPlan}</if>
  361. <if test="isBulProt != null and isBulProt != ''">and IS_BUL_PROT = #{isBulProt}</if>
  362. <if test="isPrjLdg != null and isPrjLdg != ''">and IS_PRJ_LDG = #{isPrjLdg}</if>
  363. <if test="cunRunType != null and cunRunType != ''">and CUN_RUN_TYPE = #{cunRunType}</if>
  364. <if test="cunRunTypeNote != null and cunRunTypeNote != ''">and CUN_RUN_TYPE_NOTE = #{cunRunTypeNote}</if>
  365. <if test="avgRunMoney != null and avgRunMoney != ''">and AVG_RUN_MONEY = #{avgRunMoney}</if>
  366. <if test="proRunMoney != null and proRunMoney != ''">and PRO_RUN_MONEY = #{proRunMoney}</if>
  367. <if test="cityRunMoney != null and cityRunMoney != ''">and CITY_RUN_MONEY = #{cityRunMoney}</if>
  368. <if test="cunRunMoney != null and cunRunMoney != ''">and CUN_RUN_MONEY = #{cunRunMoney}</if>
  369. <if test="isRunChk != null and isRunChk != ''">and IS_RUN_CHK = #{isRunChk}</if>
  370. <if test="wtrCmpPrcArea != null and wtrCmpPrcArea != ''">and WTR_CMP_PRC_AREA = #{wtrCmpPrcArea}</if>
  371. <if test="hasReformArea != null and hasReformArea != ''">and HAS_REFORM_AREA = #{hasReformArea}</if>
  372. <if test="isWtrPrice != null and isWtrPrice != ''">and IS_WTR_PRICE = #{isWtrPrice}</if>
  373. <if test="wtrPriceRun != null and wtrPriceRun != ''">and WTR_PRICE_RUN = #{wtrPriceRun}</if>
  374. <if test="isCollectWtrp != null and isCollectWtrp != ''">and IS_COLLECT_WTRP = #{isCollectWtrp}</if>
  375. <if test="collectWtrp != null and collectWtrp != ''">and COLLECT_WTRP = #{collectWtrp}</if>
  376. <if test="wtrpCollect != null and wtrpCollect != ''">and WTRP_COLLECT = #{wtrpCollect}</if>
  377. <if test="collectMain != null and collectMain != ''">and COLLECT_MAIN = #{collectMain}</if>
  378. <if test="wtrpAvgCube != null and wtrpAvgCube != ''">and WTRP_AVG_CUBE = #{wtrpAvgCube}</if>
  379. <if test="wtrpAvgArea != null and wtrpAvgArea != ''">and WTRP_AVG_AREA = #{wtrpAvgArea}</if>
  380. <if test="wtrpAvgDegree != null and wtrpAvgDegree != ''">and WTRP_AVG_DEGREE = #{wtrpAvgDegree}</if>
  381. <if test="wtrpDrc != null and wtrpDrc != ''">and WTRP_DRC = #{wtrpDrc}</if>
  382. <if test="wtrpPblm != null and wtrpPblm != ''">and WTRP_PBLM = #{wtrpPblm}</if>
  383. <if test="comments != null and comments != ''">and COMMENTS = #{comments}</if>
  384. <if test="invsrName != null and invsrName != ''">and INVSR_NAME = #{invsrName}</if>
  385. <if test="invsrPhone != null and invsrPhone != ''">and INVSR_PHONE = #{invsrPhone}</if>
  386. <if test="cunCntcName != null and cunCntcName != ''">and CUN_CNTC_NAME = #{cunCntcName}</if>
  387. <if test="cunCntcPhone != null and cunCntcPhone != ''">and CUN_CNTC_PHONE = #{cunCntcPhone}</if>
  388. <if test="rsrchTm != null">and RSRCH_TM = #{rsrchTm}</if>
  389. <if test="intm != null">and INTM = #{intm}</if>
  390. <if test="uptm != null">and UPTM = #{uptm}</if>
  391. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  392. and DATA_STAT='0'
  393. </trim>
  394. </sql>
  395. <select id="get" resultMap="bisInspIrrRgstrResultMap" parameterType="String" >
  396. select <include refid="table_columns" /> from BIS_INSP_IRR_RGSTR where ID = #{id}
  397. </select>
  398. <select id="getBy" resultMap="bisInspIrrRgstrResultMap">
  399. select <include refid="table_columns" /> from BIS_INSP_IRR_RGSTR <include refid="page_where" />
  400. </select>
  401. <select id="findAll" resultMap="bisInspIrrRgstrResultMap">
  402. select <include refid="table_columns" /> from BIS_INSP_IRR_RGSTR
  403. </select>
  404. <select id="findList" resultMap="bisInspIrrRgstrResultMap">
  405. select <include refid="table_columns" /> from BIS_INSP_IRR_RGSTR <include refid="page_where" />
  406. </select>
  407. <select id="selectCount" resultType="int" >
  408. select count(ID) from BIS_INSP_IRR_RGSTR <include refid="page_where" />
  409. </select>
  410. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrRgstr">
  411. insert into BIS_INSP_IRR_RGSTR( <include refid="table_columns" /> )
  412. values ( <include refid="entity_properties" /> )
  413. </insert>
  414. <delete id="delete" parameterType="java.lang.String">
  415. update BIS_INSP_IRR_RGSTR set DATA_STAT='9' where ID = #{id}
  416. </delete>
  417. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrRgstr">
  418. update BIS_INSP_IRR_RGSTR set DATA_STAT='9' <include refid="page_where" />
  419. </delete>
  420. <update id="deleteInFlag" parameterType="java.lang.String">
  421. update BIS_INSP_IRR_RGSTR set DATA_STAT = '9' where ID = #{id}
  422. </update>
  423. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrRgstr">
  424. update BIS_INSP_IRR_RGSTR
  425. <trim prefix="set" suffixOverrides=",">
  426. <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
  427. <if test="bulDepNote != null and bulDepNote != ''">BUL_DEP_NOTE = #{bulDepNote},</if>
  428. <if test="state != null and state != ''">STATE = #{state},</if>
  429. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  430. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  431. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  432. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  433. <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
  434. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  435. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  436. <if test="rurPop != null and rurPop != ''">RUR_POP = #{rurPop},</if>
  437. <if test="cltArea != null and cltArea != ''">CLT_AREA = #{cltArea},</if>
  438. <if test="lndfrm != null and lndfrm != ''">LNDFRM = #{lndfrm},</if>
  439. <if test="irrPrpSrf != null and irrPrpSrf != ''">IRR_PRP_SRF = #{irrPrpSrf},</if>
  440. <if test="irrPrpGru != null and irrPrpGru != ''">IRR_PRP_GRU = #{irrPrpGru},</if>
  441. <if test="effIrrArea != null and effIrrArea != ''">EFF_IRR_AREA = #{effIrrArea},</if>
  442. <if test="higStnArea != null and higStnArea != ''">HIG_STN_AREA = #{higStnArea},</if>
  443. <if test="actIrrArea != null and actIrrArea != ''">ACT_IRR_AREA = #{actIrrArea},</if>
  444. <if test="smlIrrSize != null and smlIrrSize != ''">SML_IRR_SIZE = #{smlIrrSize},</if>
  445. <if test="smlIrrRate != null and smlIrrRate != ''">SML_IRR_RATE = #{smlIrrRate},</if>
  446. <if test="smlRegSize != null and smlRegSize != ''">SML_REG_SIZE = #{smlRegSize},</if>
  447. <if test="isCrtPlan != null and isCrtPlan != ''">IS_CRT_PLAN = #{isCrtPlan},</if>
  448. <if test="isCrtPlanGive != null and isCrtPlanGive != ''">IS_CRT_PLAN_GIVE = #{isCrtPlanGive},</if>
  449. <if test="prjPbmArea != null and prjPbmArea != ''">PRJ_PBM_AREA = #{prjPbmArea},</if>
  450. <if test="smlChanLng != null and smlChanLng != ''">SML_CHAN_LNG = #{smlChanLng},</if>
  451. <if test="chanLnnLng != null and chanLnnLng != ''">CHAN_LNN_LNG = #{chanLnnLng},</if>
  452. <if test="pondSize != null and pondSize != ''">POND_SIZE = #{pondSize},</if>
  453. <if test="pustSize != null and pustSize != ''">PUST_SIZE = #{pustSize},</if>
  454. <if test="wasSize != null and wasSize != ''">WAS_SIZE = #{wasSize},</if>
  455. <if test="wellSize != null and wellSize != ''">WELL_SIZE = #{wellSize},</if>
  456. <if test="effIrrAreaPipe != null and effIrrAreaPipe != ''">EFF_IRR_AREA_PIPE = #{effIrrAreaPipe},</if>
  457. <if test="effIrrAreaSprn != null and effIrrAreaSprn != ''">EFF_IRR_AREA_SPRN = #{effIrrAreaSprn},</if>
  458. <if test="effIrrAreaMicro != null and effIrrAreaMicro != ''">EFF_IRR_AREA_MICRO = #{effIrrAreaMicro},</if>
  459. <if test="effIrrAreaCount != null and effIrrAreaCount != ''">EFF_IRR_AREA_COUNT = #{effIrrAreaCount},</if>
  460. <if test="efuIrrAreaPipe != null and efuIrrAreaPipe != ''">EFU_IRR_AREA_PIPE = #{efuIrrAreaPipe},</if>
  461. <if test="efuIrrAreaSprn != null and efuIrrAreaSprn != ''">EFU_IRR_AREA_SPRN = #{efuIrrAreaSprn},</if>
  462. <if test="efuIrrAreaMicro != null and efuIrrAreaMicro != ''">EFU_IRR_AREA_MICRO = #{efuIrrAreaMicro},</if>
  463. <if test="efuIrrAreaCount != null and efuIrrAreaCount != ''">EFU_IRR_AREA_COUNT = #{efuIrrAreaCount},</if>
  464. <if test="wtrSttnSize != null and wtrSttnSize != ''">WTR_STTN_SIZE = #{wtrSttnSize},</if>
  465. <if test="wtrSttnRel != null and wtrSttnRel != ''">WTR_STTN_REL = #{wtrSttnRel},</if>
  466. <if test="wtrSttnRelNote != null and wtrSttnRelNote != ''">WTR_STTN_REL_NOTE = #{wtrSttnRelNote},</if>
  467. <if test="fwtrSttnSize != null and fwtrSttnSize != ''">FWTR_STTN_SIZE = #{fwtrSttnSize},</if>
  468. <if test="wtrSttnPopSize != null and wtrSttnPopSize != ''">WTR_STTN_POP_SIZE = #{wtrSttnPopSize},</if>
  469. <if test="wtrSttnProSize != null and wtrSttnProSize != ''">WTR_STTN_PRO_SIZE = #{wtrSttnProSize},</if>
  470. <if test="rurOrgSize != null and rurOrgSize != ''">RUR_ORG_SIZE = #{rurOrgSize},</if>
  471. <if test="orgIrrArea != null and orgIrrArea != ''">ORG_IRR_AREA = #{orgIrrArea},</if>
  472. <if test="villPopSize != null and villPopSize != ''">VILL_POP_SIZE = #{villPopSize},</if>
  473. <if test="villAvgSize != null and villAvgSize != ''">VILL_AVG_SIZE = #{villAvgSize},</if>
  474. <if test="wtrSrvcSize != null and wtrSrvcSize != ''">WTR_SRVC_SIZE = #{wtrSrvcSize},</if>
  475. <if test="wtrSrvcEvlt != null and wtrSrvcEvlt != ''">WTR_SRVC_EVLT = #{wtrSrvcEvlt},</if>
  476. <if test="isRfrmPrjRght != null and isRfrmPrjRght != ''">IS_RFRM_PRJ_RGHT = #{isRfrmPrjRght},</if>
  477. <if test="smlCnsrSize != null and smlCnsrSize != ''">SML_CNSR_SIZE = #{smlCnsrSize},</if>
  478. <if test="smlCnsrSttSize != null and smlCnsrSttSize != ''">SML_CNSR_STT_SIZE = #{smlCnsrSttSize},</if>
  479. <if test="smlCnsrVillSize != null and smlCnsrVillSize != ''">SML_CNSR_VILL_SIZE = #{smlCnsrVillSize},</if>
  480. <if test="smlCnsrOgrSize != null and smlCnsrOgrSize != ''">SML_CNSR_OGR_SIZE = #{smlCnsrOgrSize},</if>
  481. <if test="smlCnsrPopSize != null and smlCnsrPopSize != ''">SML_CNSR_POP_SIZE = #{smlCnsrPopSize},</if>
  482. <if test="bulDep != null and bulDep != ''">BUL_DEP = #{bulDep},</if>
  483. <if test="higStnMoney != null and higStnMoney != ''">HIG_STN_MONEY = #{higStnMoney},</if>
  484. <if test="higStnMoneyWtr != null and higStnMoneyWtr != ''">HIG_STN_MONEY_WTR = #{higStnMoneyWtr},</if>
  485. <if test="higStnAreaLst != null and higStnAreaLst != ''">HIG_STN_AREA_LST = #{higStnAreaLst},</if>
  486. <if test="othrStnMoney != null and othrStnMoney != ''">OTHR_STN_MONEY = #{othrStnMoney},</if>
  487. <if test="smlRunDep != null and smlRunDep != ''">SML_RUN_DEP = #{smlRunDep},</if>
  488. <if test="isRunPlan != null and isRunPlan != ''">IS_RUN_PLAN = #{isRunPlan},</if>
  489. <if test="isBulProt != null and isBulProt != ''">IS_BUL_PROT = #{isBulProt},</if>
  490. <if test="isPrjLdg != null and isPrjLdg != ''">IS_PRJ_LDG = #{isPrjLdg},</if>
  491. <if test="cunRunType != null and cunRunType != ''">CUN_RUN_TYPE = #{cunRunType},</if>
  492. <if test="cunRunTypeNote != null and cunRunTypeNote != ''">CUN_RUN_TYPE_NOTE = #{cunRunTypeNote},</if>
  493. <if test="avgRunMoney != null and avgRunMoney != ''">AVG_RUN_MONEY = #{avgRunMoney},</if>
  494. <if test="proRunMoney != null and proRunMoney != ''">PRO_RUN_MONEY = #{proRunMoney},</if>
  495. <if test="cityRunMoney != null and cityRunMoney != ''">CITY_RUN_MONEY = #{cityRunMoney},</if>
  496. <if test="cunRunMoney != null and cunRunMoney != ''">CUN_RUN_MONEY = #{cunRunMoney},</if>
  497. <if test="isRunChk != null and isRunChk != ''">IS_RUN_CHK = #{isRunChk},</if>
  498. <if test="wtrCmpPrcArea != null and wtrCmpPrcArea != ''">WTR_CMP_PRC_AREA = #{wtrCmpPrcArea},</if>
  499. <if test="hasReformArea != null and hasReformArea != ''">HAS_REFORM_AREA = #{hasReformArea},</if>
  500. <if test="isWtrPrice != null and isWtrPrice != ''">IS_WTR_PRICE = #{isWtrPrice},</if>
  501. <if test="wtrPriceRun != null and wtrPriceRun != ''">WTR_PRICE_RUN = #{wtrPriceRun},</if>
  502. <if test="isCollectWtrp != null and isCollectWtrp != ''">IS_COLLECT_WTRP = #{isCollectWtrp},</if>
  503. <if test="collectWtrp != null and collectWtrp != ''">COLLECT_WTRP = #{collectWtrp},</if>
  504. <if test="wtrpCollect != null and wtrpCollect != ''">WTRP_COLLECT = #{wtrpCollect},</if>
  505. <if test="collectMain != null and collectMain != ''">COLLECT_MAIN = #{collectMain},</if>
  506. <if test="wtrpAvgCube != null and wtrpAvgCube != ''">WTRP_AVG_CUBE = #{wtrpAvgCube},</if>
  507. <if test="wtrpAvgArea != null and wtrpAvgArea != ''">WTRP_AVG_AREA = #{wtrpAvgArea},</if>
  508. <if test="wtrpAvgDegree != null and wtrpAvgDegree != ''">WTRP_AVG_DEGREE = #{wtrpAvgDegree},</if>
  509. <if test="wtrpDrc != null and wtrpDrc != ''">WTRP_DRC = #{wtrpDrc},</if>
  510. <if test="wtrpPblm != null and wtrpPblm != ''">WTRP_PBLM = #{wtrpPblm},</if>
  511. <if test="comments != null and comments != ''">COMMENTS = #{comments},</if>
  512. <if test="invsrName != null and invsrName != ''">INVSR_NAME = #{invsrName},</if>
  513. <if test="invsrPhone != null and invsrPhone != ''">INVSR_PHONE = #{invsrPhone},</if>
  514. <if test="cunCntcName != null and cunCntcName != ''">CUN_CNTC_NAME = #{cunCntcName},</if>
  515. <if test="cunCntcPhone != null and cunCntcPhone != ''">CUN_CNTC_PHONE = #{cunCntcPhone},</if>
  516. <if test="rsrchTm != null">RSRCH_TM = #{rsrchTm},</if>
  517. <if test="intm != null">INTM = #{intm},</if>
  518. <if test="uptm != null">UPTM = #{uptm},</if>
  519. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  520. </trim>
  521. <where>ID = #{id}</where>
  522. </update>
  523. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrRgstr">
  524. update BIS_INSP_IRR_RGSTR
  525. <trim prefix="set" suffixOverrides=",">
  526. <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
  527. <if test="bulDepNote != null and bulDepNote != ''">BUL_DEP_NOTE = #{bulDepNote},</if>
  528. <if test="state != null and state != ''">STATE = #{state},</if>
  529. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  530. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  531. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  532. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  533. <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
  534. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  535. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  536. <if test="rurPop != null and rurPop != ''">RUR_POP = #{rurPop},</if>
  537. <if test="cltArea != null and cltArea != ''">CLT_AREA = #{cltArea},</if>
  538. <if test="lndfrm != null and lndfrm != ''">LNDFRM = #{lndfrm},</if>
  539. <if test="irrPrpSrf != null and irrPrpSrf != ''">IRR_PRP_SRF = #{irrPrpSrf},</if>
  540. <if test="irrPrpGru != null and irrPrpGru != ''">IRR_PRP_GRU = #{irrPrpGru},</if>
  541. <if test="effIrrArea != null and effIrrArea != ''">EFF_IRR_AREA = #{effIrrArea},</if>
  542. <if test="higStnArea != null and higStnArea != ''">HIG_STN_AREA = #{higStnArea},</if>
  543. <if test="actIrrArea != null and actIrrArea != ''">ACT_IRR_AREA = #{actIrrArea},</if>
  544. <if test="smlIrrSize != null and smlIrrSize != ''">SML_IRR_SIZE = #{smlIrrSize},</if>
  545. <if test="smlIrrRate != null and smlIrrRate != ''">SML_IRR_RATE = #{smlIrrRate},</if>
  546. <if test="smlRegSize != null and smlRegSize != ''">SML_REG_SIZE = #{smlRegSize},</if>
  547. <if test="isCrtPlan != null and isCrtPlan != ''">IS_CRT_PLAN = #{isCrtPlan},</if>
  548. <if test="isCrtPlanGive != null and isCrtPlanGive != ''">IS_CRT_PLAN_GIVE = #{isCrtPlanGive},</if>
  549. <if test="prjPbmArea != null and prjPbmArea != ''">PRJ_PBM_AREA = #{prjPbmArea},</if>
  550. <if test="smlChanLng != null and smlChanLng != ''">SML_CHAN_LNG = #{smlChanLng},</if>
  551. <if test="chanLnnLng != null and chanLnnLng != ''">CHAN_LNN_LNG = #{chanLnnLng},</if>
  552. <if test="pondSize != null and pondSize != ''">POND_SIZE = #{pondSize},</if>
  553. <if test="pustSize != null and pustSize != ''">PUST_SIZE = #{pustSize},</if>
  554. <if test="wasSize != null and wasSize != ''">WAS_SIZE = #{wasSize},</if>
  555. <if test="wellSize != null and wellSize != ''">WELL_SIZE = #{wellSize},</if>
  556. <if test="effIrrAreaPipe != null and effIrrAreaPipe != ''">EFF_IRR_AREA_PIPE = #{effIrrAreaPipe},</if>
  557. <if test="effIrrAreaSprn != null and effIrrAreaSprn != ''">EFF_IRR_AREA_SPRN = #{effIrrAreaSprn},</if>
  558. <if test="effIrrAreaMicro != null and effIrrAreaMicro != ''">EFF_IRR_AREA_MICRO = #{effIrrAreaMicro},</if>
  559. <if test="effIrrAreaCount != null and effIrrAreaCount != ''">EFF_IRR_AREA_COUNT = #{effIrrAreaCount},</if>
  560. <if test="efuIrrAreaPipe != null and efuIrrAreaPipe != ''">EFU_IRR_AREA_PIPE = #{efuIrrAreaPipe},</if>
  561. <if test="efuIrrAreaSprn != null and efuIrrAreaSprn != ''">EFU_IRR_AREA_SPRN = #{efuIrrAreaSprn},</if>
  562. <if test="efuIrrAreaMicro != null and efuIrrAreaMicro != ''">EFU_IRR_AREA_MICRO = #{efuIrrAreaMicro},</if>
  563. <if test="efuIrrAreaCount != null and efuIrrAreaCount != ''">EFU_IRR_AREA_COUNT = #{efuIrrAreaCount},</if>
  564. <if test="wtrSttnSize != null and wtrSttnSize != ''">WTR_STTN_SIZE = #{wtrSttnSize},</if>
  565. <if test="wtrSttnRel != null and wtrSttnRel != ''">WTR_STTN_REL = #{wtrSttnRel},</if>
  566. <if test="wtrSttnRelNote != null and wtrSttnRelNote != ''">WTR_STTN_REL_NOTE = #{wtrSttnRelNote},</if>
  567. <if test="fwtrSttnSize != null and fwtrSttnSize != ''">FWTR_STTN_SIZE = #{fwtrSttnSize},</if>
  568. <if test="wtrSttnPopSize != null and wtrSttnPopSize != ''">WTR_STTN_POP_SIZE = #{wtrSttnPopSize},</if>
  569. <if test="wtrSttnProSize != null and wtrSttnProSize != ''">WTR_STTN_PRO_SIZE = #{wtrSttnProSize},</if>
  570. <if test="rurOrgSize != null and rurOrgSize != ''">RUR_ORG_SIZE = #{rurOrgSize},</if>
  571. <if test="orgIrrArea != null and orgIrrArea != ''">ORG_IRR_AREA = #{orgIrrArea},</if>
  572. <if test="villPopSize != null and villPopSize != ''">VILL_POP_SIZE = #{villPopSize},</if>
  573. <if test="villAvgSize != null and villAvgSize != ''">VILL_AVG_SIZE = #{villAvgSize},</if>
  574. <if test="wtrSrvcSize != null and wtrSrvcSize != ''">WTR_SRVC_SIZE = #{wtrSrvcSize},</if>
  575. <if test="wtrSrvcEvlt != null and wtrSrvcEvlt != ''">WTR_SRVC_EVLT = #{wtrSrvcEvlt},</if>
  576. <if test="isRfrmPrjRght != null and isRfrmPrjRght != ''">IS_RFRM_PRJ_RGHT = #{isRfrmPrjRght},</if>
  577. <if test="smlCnsrSize != null and smlCnsrSize != ''">SML_CNSR_SIZE = #{smlCnsrSize},</if>
  578. <if test="smlCnsrSttSize != null and smlCnsrSttSize != ''">SML_CNSR_STT_SIZE = #{smlCnsrSttSize},</if>
  579. <if test="smlCnsrVillSize != null and smlCnsrVillSize != ''">SML_CNSR_VILL_SIZE = #{smlCnsrVillSize},</if>
  580. <if test="smlCnsrOgrSize != null and smlCnsrOgrSize != ''">SML_CNSR_OGR_SIZE = #{smlCnsrOgrSize},</if>
  581. <if test="smlCnsrPopSize != null and smlCnsrPopSize != ''">SML_CNSR_POP_SIZE = #{smlCnsrPopSize},</if>
  582. <if test="bulDep != null and bulDep != ''">BUL_DEP = #{bulDep},</if>
  583. <if test="higStnMoney != null and higStnMoney != ''">HIG_STN_MONEY = #{higStnMoney},</if>
  584. <if test="higStnMoneyWtr != null and higStnMoneyWtr != ''">HIG_STN_MONEY_WTR = #{higStnMoneyWtr},</if>
  585. <if test="higStnAreaLst != null and higStnAreaLst != ''">HIG_STN_AREA_LST = #{higStnAreaLst},</if>
  586. <if test="othrStnMoney != null and othrStnMoney != ''">OTHR_STN_MONEY = #{othrStnMoney},</if>
  587. <if test="smlRunDep != null and smlRunDep != ''">SML_RUN_DEP = #{smlRunDep},</if>
  588. <if test="isRunPlan != null and isRunPlan != ''">IS_RUN_PLAN = #{isRunPlan},</if>
  589. <if test="isBulProt != null and isBulProt != ''">IS_BUL_PROT = #{isBulProt},</if>
  590. <if test="isPrjLdg != null and isPrjLdg != ''">IS_PRJ_LDG = #{isPrjLdg},</if>
  591. <if test="cunRunType != null and cunRunType != ''">CUN_RUN_TYPE = #{cunRunType},</if>
  592. <if test="cunRunTypeNote != null and cunRunTypeNote != ''">CUN_RUN_TYPE_NOTE = #{cunRunTypeNote},</if>
  593. <if test="avgRunMoney != null and avgRunMoney != ''">AVG_RUN_MONEY = #{avgRunMoney},</if>
  594. <if test="proRunMoney != null and proRunMoney != ''">PRO_RUN_MONEY = #{proRunMoney},</if>
  595. <if test="cityRunMoney != null and cityRunMoney != ''">CITY_RUN_MONEY = #{cityRunMoney},</if>
  596. <if test="cunRunMoney != null and cunRunMoney != ''">CUN_RUN_MONEY = #{cunRunMoney},</if>
  597. <if test="isRunChk != null and isRunChk != ''">IS_RUN_CHK = #{isRunChk},</if>
  598. <if test="wtrCmpPrcArea != null and wtrCmpPrcArea != ''">WTR_CMP_PRC_AREA = #{wtrCmpPrcArea},</if>
  599. <if test="hasReformArea != null and hasReformArea != ''">HAS_REFORM_AREA = #{hasReformArea},</if>
  600. <if test="isWtrPrice != null and isWtrPrice != ''">IS_WTR_PRICE = #{isWtrPrice},</if>
  601. <if test="wtrPriceRun != null and wtrPriceRun != ''">WTR_PRICE_RUN = #{wtrPriceRun},</if>
  602. <if test="isCollectWtrp != null and isCollectWtrp != ''">IS_COLLECT_WTRP = #{isCollectWtrp},</if>
  603. <if test="collectWtrp != null and collectWtrp != ''">COLLECT_WTRP = #{collectWtrp},</if>
  604. <if test="wtrpCollect != null and wtrpCollect != ''">WTRP_COLLECT = #{wtrpCollect},</if>
  605. <if test="collectMain != null and collectMain != ''">COLLECT_MAIN = #{collectMain},</if>
  606. <if test="wtrpAvgCube != null and wtrpAvgCube != ''">WTRP_AVG_CUBE = #{wtrpAvgCube},</if>
  607. <if test="wtrpAvgArea != null and wtrpAvgArea != ''">WTRP_AVG_AREA = #{wtrpAvgArea},</if>
  608. <if test="wtrpAvgDegree != null and wtrpAvgDegree != ''">WTRP_AVG_DEGREE = #{wtrpAvgDegree},</if>
  609. <if test="wtrpDrc != null and wtrpDrc != ''">WTRP_DRC = #{wtrpDrc},</if>
  610. <if test="wtrpPblm != null and wtrpPblm != ''">WTRP_PBLM = #{wtrpPblm},</if>
  611. <if test="comments != null and comments != ''">COMMENTS = #{comments},</if>
  612. <if test="invsrName != null and invsrName != ''">INVSR_NAME = #{invsrName},</if>
  613. <if test="invsrPhone != null and invsrPhone != ''">INVSR_PHONE = #{invsrPhone},</if>
  614. <if test="cunCntcName != null and cunCntcName != ''">CUN_CNTC_NAME = #{cunCntcName},</if>
  615. <if test="cunCntcPhone != null and cunCntcPhone != ''">CUN_CNTC_PHONE = #{cunCntcPhone},</if>
  616. <if test="rsrchTm != null">RSRCH_TM = #{rsrchTm},</if>
  617. <if test="intm != null">INTM = #{intm},</if>
  618. <if test="uptm != null">UPTM = #{uptm},</if>
  619. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  620. </trim>
  621. <include refid="page_where" />
  622. </update>
  623. <!-- 其他自定义SQL -->
  624. <select id="findIrrList" parameterType="cn.com.goldenwater.dcproj.param.TypeParam"
  625. resultType="cn.com.goldenwater.dcproj.dto.BisInspRgstrDto">
  626. SELECT * FROM (
  627. select A.CODE,A.ID nodeId,
  628. A.NM,
  629. #{pType} PTYPE,
  630. C.LGTDPC pc_x,
  631. c.LTTDPC pc_y,
  632. C.LGTD GD_X,
  633. C.LTTD GD_y,
  634. A.OBJ_ID,B.ID ID,b.id as rgstrId,
  635. (case when b.State is null then '0' else b.state end)STATE
  636. ,B.INTM,
  637. c.ad_full_name as adName,
  638. ia.pnm groupName,b.ad_code
  639. from BIS_INSP_ALL_OBJ
  640. A LEFT JOIN BIS_INSP_IRR_RGSTR B ON A.OBJ_ID=B.OBJ_ID
  641. LEFT JOIN ATT_AD_X_BASE C ON B.Ad_CODE=C.AD_CODE
  642. LEFT JOIN BIS_INSP_ALL ia on A.ID = ia.id
  643. where A.ptype= #{pType}
  644. <if test="tabType =='2'.toString()">
  645. and ia.entm &lt;to_date(#{nowTime},'yyyy-MM-dd')+1
  646. </if>
  647. <if test="tabType =='1'.toString()">
  648. and ia.entm &gt;=to_date(#{nowTime},'yyyy-MM-dd')
  649. </if>
  650. <if test="adCodes ==null or adCodes ==''">
  651. and
  652. A.Id in (
  653. select distinct id from (
  654. SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
  655. WHERE A.PERSID = #{presId} and TYPE = #{pType} and length(id) in (3,6,9)
  656. <include refid="choseSql"/>
  657. )
  658. CONNECT BY P.PID = PRIOR P.ID
  659. union all
  660. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  661. WHERE A.PERSID =#{presId} and TYPE = #{pType} and length(id)=12
  662. <include refid="choseSql"/>
  663. )
  664. )
  665. )
  666. </if>
  667. <if test="poorCountry != null and poorCountry != ''">
  668. and (case when b.POOR_COUNTRY is null then c.IS_REPORT else b.POOR_COUNTRY end ) = #{poorCountry}
  669. </if>
  670. <if test="adCode != null and adCode != ''">
  671. and b.ad_code like '${adCode}%'
  672. </if>
  673. ) A WHERE a.PTYPE=#{pType}
  674. <if test="plnaId !=null and plnaId !=''">
  675. and a.nodeId like '${plnaId}%'
  676. </if>
  677. <if test="state !=null and state !=''">
  678. and STATE in (${state})
  679. </if>
  680. <if test="rsName !=null and rsName !=''">
  681. and a.nm like '%${rsName}%'
  682. </if>
  683. <if test="code !=null and code !=''">
  684. and a.code = #{code}
  685. </if>
  686. <if test="adName != null and adName != ''">and a.adName like '%${adName}%'</if>
  687. <if test="sttm != null and sttm != ''">and a.INTM&gt;= TO_DATE(#{sttm},'YYYY-MM-DD')</if>
  688. <if test="entm != null and entm != ''">and a.INTM &lt; To_DATE(#{entm},'yyyy-MM-dd') + 1</if>
  689. <if test="groupId != null and groupId != ''">and a.nodeId = #{groupId}</if>
  690. <if test="adCodes !=null and adCodes !=''">
  691. and
  692. <foreach item="item" index="index" collection="adCodes.split(',')" open="(" separator="or" close=")">
  693. ad_code like concat('${item}','%')
  694. </foreach>
  695. </if>
  696. order by nodeId asc
  697. <if test="orderBy != null and orderBy != ''">
  698. ,nlssort(nm,'NLS_SORT=SCHINESE_PINYIN_M')
  699. </if>
  700. </select>
  701. <select id="getIrrVillList" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto">
  702. select * from (
  703. select t.id as code,t.ad_name as nm,
  704. (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
  705. (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
  706. (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
  707. (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
  708. t.obj_id,t.ad_code,t.rgstr_id,t.state
  709. from BIS_INSP_IRR_TOWNS_DSU t left join att_ad_x_base ba on t.ad_code = ba.ad_code
  710. left join bis_insp_all_obj o on t.obj_id = o.obj_id
  711. where t.data_stat = '0' and substr(t.ad_code,10) != '000' and o.ptype = '28'
  712. and
  713. o.Id in (
  714. select distinct id from (
  715. SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
  716. WHERE A.PERSID = #{persGuid} and TYPE = '28' and length(id) in (3,6,9)
  717. <include refid="choseSql"/>
  718. )
  719. CONNECT BY P.PID = PRIOR P.ID
  720. union all
  721. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  722. WHERE A.PERSID =#{persGuid} and TYPE = '28' and length(id)=12
  723. <include refid="choseSql"/>
  724. )
  725. )
  726. )
  727. ) w where 1=1
  728. <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
  729. #{minLgtd} AND #{maxLgtd}
  730. </if>
  731. <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
  732. #{minLttd} AND #{maxLttd}
  733. </if>
  734. <if test="adCode != null and adCode != ''">
  735. and w.ad_code like '${adCode}%'
  736. </if>
  737. <if test="rsName != null and rsName != ''">
  738. and t.nm like '%${rsName}%'
  739. </if>
  740. <if test="state !=null and state !=''">
  741. and STATE in (${state})
  742. </if>
  743. </select>
  744. <select id="getIrrTownList" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto">
  745. select * from (
  746. select t.id as code,t.ad_name as nm,
  747. (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
  748. (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
  749. (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
  750. (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
  751. t.obj_id,t.ad_code,t.rgstr_id,t.state
  752. from BIS_INSP_IRR_TOWNS_DSU t left join att_ad_x_base ba on t.ad_code = ba.ad_code
  753. left join bis_insp_all_obj o on t.obj_id = o.obj_id
  754. where t.data_stat = '0' and substr(t.ad_code,10) = '000' and o.ptype = '28'
  755. and
  756. o.Id in (
  757. select distinct id from (
  758. SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
  759. WHERE A.PERSID = #{persGuid} and TYPE = '28' and length(id) in (3,6,9)
  760. <include refid="choseSql"/>
  761. )
  762. CONNECT BY P.PID = PRIOR P.ID
  763. union all
  764. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  765. WHERE A.PERSID =#{persGuid} and TYPE = '28' and length(id)=12
  766. <include refid="choseSql"/>
  767. )
  768. )
  769. )
  770. ) w where 1=1
  771. <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
  772. #{minLgtd} AND #{maxLgtd}
  773. </if>
  774. <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
  775. #{minLttd} AND #{maxLttd}
  776. </if>
  777. <if test="adCode != null and adCode != ''">
  778. and w.ad_code like '${adCode}%'
  779. </if>
  780. <if test="rsName != null and rsName != ''">
  781. and t.nm like '%${rsName}%'
  782. </if>
  783. <if test="state !=null and state != ''">
  784. and state in (${state})
  785. </if>
  786. </select>
  787. <select id="getIrrWtusrList" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto">
  788. select * from (
  789. select t.id as code,t.USWT_NAME as nm,USWT_PHONE as phone,
  790. (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
  791. (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
  792. (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
  793. (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
  794. t.obj_id,t.ad_code,t.rgstr_id,t.state
  795. from BIS_INSP_IRR_WTUSR t left join att_ad_x_base ba on t.ad_code = ba.ad_code
  796. left join bis_insp_all_obj o on t.obj_id = o.obj_id
  797. where t.data_stat = '0' and o.ptype = '28'
  798. and
  799. o.Id in (
  800. select distinct id from (
  801. SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
  802. WHERE A.PERSID = #{persGuid} and length(id) in (3,6,9)
  803. <include refid="choseSql"/>
  804. )
  805. CONNECT BY P.PID = PRIOR P.ID
  806. union all
  807. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  808. WHERE A.PERSID =#{persGuid} and length(id)=12
  809. <include refid="choseSql"/>
  810. )
  811. )
  812. )
  813. ) w where 1=1
  814. <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
  815. #{minLgtd} AND #{maxLgtd}
  816. </if>
  817. <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
  818. #{minLttd} AND #{maxLttd}
  819. </if>
  820. <if test="adCode != null and adCode != ''">
  821. and w.ad_code like '${adCode}%'
  822. </if>
  823. <if test="rsName != null and rsName != ''">
  824. and t.nm like '%${rsName}%'
  825. </if>
  826. <if test="state !=null and state !=''">
  827. and STATE in (${state})
  828. </if>
  829. </select>
  830. <select id="getIrrProList" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam">
  831. select * from (
  832. select t.id as code,t.name as nm,t.type as type,
  833. (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
  834. (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
  835. (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
  836. (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
  837. t.obj_id,t.ad_code,t.rgstr_id,t.state
  838. from view_irr_list t left join att_ad_x_base ba on t.ad_code = ba.ad_code
  839. left join bis_insp_all_obj o on t.obj_id = o.obj_id
  840. where o.ptype = '28'
  841. and
  842. o.Id in (
  843. select distinct id from (
  844. SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
  845. WHERE A.PERSID = #{persGuid} and length(id) in (3,6,9)
  846. <include refid="choseSql"/>
  847. )
  848. CONNECT BY P.PID = PRIOR P.ID
  849. union all
  850. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  851. WHERE A.PERSID =#{persGuid} and length(id)=12
  852. <include refid="choseSql"/>
  853. )
  854. )
  855. )
  856. ) w where 1=1
  857. <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
  858. #{minLgtd} AND #{maxLgtd}
  859. </if>
  860. <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
  861. #{minLttd} AND #{maxLttd}
  862. </if>
  863. <if test="adCode != null and adCode != ''">
  864. and w.ad_code like '${adCode}%'
  865. </if>
  866. <if test="rsName != null and rsName != ''">
  867. and t.nm like '%${rsName}%'
  868. </if>
  869. <if test="state !=null and state !=''">
  870. and STATE in (${state})
  871. </if>
  872. </select>
  873. <select id="getIrrBaseList" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam">
  874. select * from (
  875. select t.id as code,t.IRR_NAME as nm,t.ad_code,
  876. (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
  877. (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
  878. (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
  879. (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd
  880. from ATT_IRR_BASE t left join att_ad_x_base ba on t.ad_code = ba.ad_code
  881. where t.data_stat = '0'
  882. <if test="irrEngScal != null and irrEngScal != ''">
  883. and t.IRR_ENG_SCAL in (${irrEngScal})
  884. </if>
  885. ) w where 1=1
  886. <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
  887. #{minLgtd} AND #{maxLgtd}
  888. </if>
  889. <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
  890. #{minLttd} AND #{maxLttd}
  891. </if>
  892. <if test="adCode != null and adCode != ''">
  893. and w.ad_code like '${adCode}%'
  894. </if>
  895. <if test="rsName != null and rsName != ''">
  896. and t.nm like '%${rsName}%'
  897. </if>
  898. </select>
  899. <sql id="choseSql">
  900. <choose>
  901. <when test="province !=null and province !=''">
  902. AND ad_code=#{province}
  903. </when>
  904. <otherwise>
  905. AND ad_code is null
  906. </otherwise>
  907. </choose>
  908. </sql>
  909. <select id="getObjListNotInspGroupId" parameterType="String" resultType="cn.com.goldenwater.dcproj.model.AttIrrBase">
  910. select t.*
  911. from att_irr_base t
  912. where t.id not in (
  913. select CODE from BIS_INSP_ALL_OBJ B where id like concat(#{inspGroupId},'%') and B.obj_type=#{objType}
  914. <choose>
  915. <when test="province !=null and province !=''">
  916. and B.AD_CODE =#{province}
  917. </when>
  918. <otherwise>
  919. and B.AD_CODE is null
  920. </otherwise>
  921. </choose>
  922. )
  923. <if test="adName != null and adName != ''">and t.nm LIKE '%${adName}%'</if>
  924. <if test="adCode != null and adCode != ''">and t.AD_CODE LIKE '${adCode}%'</if>
  925. </select>
  926. <select id="getListByInspGroupIdObjType" resultType="cn.com.goldenwater.dcproj.model.AttIrrBase" parameterType="cn.com.goldenwater.dcproj.param.PagePersObjParam">
  927. select t.*,C.id groupId,C.PNM groupName,B.obj_id,r.ad_full_name as loc
  928. from att_irr_base t
  929. left join BIS_INSP_ALL_OBJ B
  930. on B.CODE = t.id
  931. LEFT JOIN BIS_INSP_ALL C ON B.ID = C.ID
  932. and B.ptype ='28'
  933. left join bis_insp_irr_rgstr r on b.obj_id=r.obj_id
  934. where 1 = 1
  935. <if test='isAll == "0"'>and B.ID = #{inspGroupId}</if>
  936. <if test='isAll == "1"'>and B.ID LIKE '${inspGroupId}%'</if>
  937. <if test="adCode != null and adCode != ''">
  938. and t.AD_CODE like '${adCode}%'
  939. </if>
  940. <choose>
  941. <when test="province != null and province != ''">
  942. and B.AD_CODE LIKE '${province}%'
  943. </when>
  944. <otherwise>
  945. and B.AD_CODE is null
  946. </otherwise>
  947. </choose>
  948. </select>
  949. </mapper>