BisInspIrrRgstrDao.xml 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994
  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; DATE_ADD(STR_TO_DATE(#{nowTime},'%Y-%m-%d'),INTERVAL 1 DAY )
  646. </if>
  647. <if test="tabType =='1'.toString()">
  648. and ia.entm &gt;=STR_TO_DATE(#{nowTime},'%Y-%m-%d')
  649. </if>
  650. <if test="adCodes ==null or adCodes ==''">
  651. and
  652. A.Id in (
  653. select distinct id from (
  654. SELECT ID FROM
  655. bis_insp_all b, (
  656. SELECT getChildLst(id) list FROM
  657. (
  658. SELECT DISTINCT id
  659. FROM BIS_INSP_ALL_RLATION
  660. WHERE
  661. TYPE = #{pType}
  662. <if test="presId != null and presId != '' ">
  663. AND PERSID = #{presId}
  664. </if>
  665. AND length(id) IN (3, 6, 9)
  666. <include refid="choseSql"/>
  667. ) w
  668. ) c
  669. where FIND_IN_SET(b.ID,c.list)
  670. UNION ALL
  671. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION
  672. WHERE
  673. TYPE = #{pType}
  674. <if test="presId != null and presId != '' ">
  675. AND PERSID = #{presId}
  676. </if>
  677. AND LENGTH(id) = 12
  678. <include refid="choseSql"/>
  679. )
  680. ) e
  681. )
  682. </if>
  683. <if test="poorCountry != null and poorCountry != ''">
  684. and (case when b.POOR_COUNTRY is null then c.IS_REPORT else b.POOR_COUNTRY end ) = #{poorCountry}
  685. </if>
  686. <if test="adCode != null and adCode != ''">
  687. and b.ad_code like '${adCode}%'
  688. </if>
  689. ) A WHERE a.PTYPE=#{pType}
  690. <if test="plnaId !=null and plnaId !=''">
  691. and a.nodeId like '${plnaId}%'
  692. </if>
  693. <if test="state !=null and state !=''">
  694. and STATE in (${state})
  695. </if>
  696. <if test="rsName !=null and rsName !=''">
  697. and a.nm like '%${rsName}%'
  698. </if>
  699. <if test="code !=null and code !=''">
  700. and a.code = #{code}
  701. </if>
  702. <if test="adName != null and adName != ''">and a.adName like '%${adName}%'</if>
  703. <if test="sttm != null and sttm != ''">and a.INTM&gt;= STR_TO_DATE(#{sttm},'%Y-%m-%d')</if>
  704. <if test="entm != null and entm != ''">and a.INTM &lt; DATE_ADD(STR_TO_DATE(#{entm},'%Y-%m-%d'),INTERVAL 1 DAY )</if>
  705. <if test="groupId != null and groupId != ''">and a.nodeId = #{groupId}</if>
  706. <if test="adCodes !=null and adCodes !=''">
  707. and
  708. <foreach item="item" index="index" collection="adCodes.split(',')" open="(" separator="or" close=")">
  709. ad_code like concat('${item}','%')
  710. </foreach>
  711. </if>
  712. order by nodeId asc
  713. <if test="orderBy != null and orderBy != ''">
  714. , CONVERT(nm using gbk)
  715. </if>
  716. </select>
  717. <select id="getIrrVillList" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto">
  718. select * from (
  719. select t.id as code,t.ad_name as nm,
  720. (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
  721. (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
  722. (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
  723. (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
  724. t.obj_id,t.ad_code,t.rgstr_id,t.state
  725. from BIS_INSP_IRR_TOWNS_DSU t left join att_ad_x_base ba on t.ad_code = ba.ad_code
  726. left join bis_insp_all_obj o on t.obj_id = o.obj_id
  727. where t.data_stat = '0' and substr(t.ad_code,10) != '000' and o.ptype = '28'
  728. and
  729. o.Id in (
  730. select distinct id from (
  731. SELECT P.id FROM BIS_INSP_ALL P
  732. WHERE FIND_IN_SET(P.ID, getSubNodes_bis_insp_all((SELECT group_concat(A.id) FROM BIS_INSP_ALL_RLATION A
  733. WHERE A.PERSID = #{persGuid} and A.TYPE = '28' and length(A.id) in (3,6,9)
  734. <include refid="choseSql"/> group by A.PERSID
  735. ),0,0) ) &gt; 0
  736. union all
  737. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  738. WHERE A.PERSID =#{persGuid} and TYPE = '28' and length(id)=12
  739. <include refid="choseSql"/>
  740. )
  741. ) ww
  742. )
  743. ) w where 1=1
  744. <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
  745. #{minLgtd} AND #{maxLgtd}
  746. </if>
  747. <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
  748. #{minLttd} AND #{maxLttd}
  749. </if>
  750. <if test="adCode != null and adCode != ''">
  751. and w.ad_code like '${adCode}%'
  752. </if>
  753. <if test="rsName != null and rsName != ''">
  754. and t.nm like '%${rsName}%'
  755. </if>
  756. <if test="state !=null and state !=''">
  757. and STATE in (${state})
  758. </if>
  759. </select>
  760. <select id="getIrrTownList" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto">
  761. select * from (
  762. select t.id as code,t.ad_name as nm,
  763. (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
  764. (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
  765. (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
  766. (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
  767. t.obj_id,t.ad_code,t.rgstr_id,t.state
  768. from BIS_INSP_IRR_TOWNS_DSU t left join att_ad_x_base ba on t.ad_code = ba.ad_code
  769. left join bis_insp_all_obj o on t.obj_id = o.obj_id
  770. where t.data_stat = '0' and substr(t.ad_code,10) = '000' and o.ptype = '28'
  771. and
  772. o.Id in (
  773. select distinct ww.id from (
  774. SELECT P.id FROM BIS_INSP_ALL P
  775. WHERE FIND_IN_SET(P.ID, getSubNodes_bis_insp_all((SELECT group_concat(A.id) FROM BIS_INSP_ALL_RLATION A
  776. WHERE A.PERSID = #{persGuid} and A.TYPE = '28' and length(A.id) in (3,6,9)
  777. <include refid="choseSql"/> group by A.PERSID
  778. ) ,0,0) ) &gt; 0
  779. union all
  780. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  781. WHERE A.PERSID =#{persGuid} and TYPE = '28' and length(id)=12
  782. <include refid="choseSql"/>
  783. )
  784. )ww
  785. )
  786. ) w where 1=1
  787. <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
  788. #{minLgtd} AND #{maxLgtd}
  789. </if>
  790. <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
  791. #{minLttd} AND #{maxLttd}
  792. </if>
  793. <if test="adCode != null and adCode != ''">
  794. and w.ad_code like '${adCode}%'
  795. </if>
  796. <if test="rsName != null and rsName != ''">
  797. and t.nm like '%${rsName}%'
  798. </if>
  799. <if test="state !=null and state != ''">
  800. and state in (${state})
  801. </if>
  802. </select>
  803. <select id="getIrrWtusrList" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto">
  804. select * from (
  805. select t.id as code,t.USWT_NAME as nm,USWT_PHONE as phone,
  806. (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
  807. (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
  808. (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
  809. (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
  810. t.obj_id,t.ad_code,t.rgstr_id,t.state
  811. from BIS_INSP_IRR_WTUSR t left join att_ad_x_base ba on t.ad_code = ba.ad_code
  812. left join bis_insp_all_obj o on t.obj_id = o.obj_id
  813. where t.data_stat = '0' and o.ptype = '28'
  814. and
  815. o.Id in (
  816. select distinct ww.id from (
  817. SELECT P.id FROM BIS_INSP_ALL P
  818. WHERE FIND_IN_SET(P.ID, getSubNodes_bis_insp_all((SELECT group_concat(A.id) FROM BIS_INSP_ALL_RLATION A
  819. WHERE A.PERSID = #{persGuid} and length(A.id) in (3,6,9)
  820. <include refid="choseSql"/> group by A.PERSID
  821. ) ,0,0) ) &gt; 0
  822. union all
  823. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  824. WHERE A.PERSID =#{persGuid} and length(id)=12
  825. <include refid="choseSql"/>
  826. )
  827. )ww
  828. )
  829. ) w where 1=1
  830. <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
  831. #{minLgtd} AND #{maxLgtd}
  832. </if>
  833. <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
  834. #{minLttd} AND #{maxLttd}
  835. </if>
  836. <if test="adCode != null and adCode != ''">
  837. and w.ad_code like '${adCode}%'
  838. </if>
  839. <if test="rsName != null and rsName != ''">
  840. and t.nm like '%${rsName}%'
  841. </if>
  842. <if test="state !=null and state !=''">
  843. and STATE in (${state})
  844. </if>
  845. </select>
  846. <select id="getIrrProList" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam">
  847. select * from (
  848. select t.id as code,t.name as nm,t.type as type,
  849. (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
  850. (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
  851. (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
  852. (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd,
  853. t.obj_id,t.ad_code,t.rgstr_id,t.state
  854. from view_irr_list t left join att_ad_x_base ba on t.ad_code = ba.ad_code
  855. left join bis_insp_all_obj o on t.obj_id = o.obj_id
  856. where o.ptype = '28'
  857. and
  858. o.Id in (
  859. select distinct ww.id from (
  860. SELECT P.id FROM BIS_INSP_ALL P
  861. WHERE FIND_IN_SET(P.ID, getSubNodes_bis_insp_all((SELECT group_concat(A.id) FROM BIS_INSP_ALL_RLATION A
  862. WHERE A.PERSID = #{persGuid} and length(A.id) in (3,6,9)
  863. <include refid="choseSql"/> group by A.PERSID
  864. ) ,0,0) ) &gt; 0
  865. union all
  866. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  867. WHERE A.PERSID =#{persGuid} and length(id)=12
  868. <include refid="choseSql"/>
  869. )
  870. ) ww
  871. )
  872. ) w where 1=1
  873. <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
  874. #{minLgtd} AND #{maxLgtd}
  875. </if>
  876. <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
  877. #{minLttd} AND #{maxLttd}
  878. </if>
  879. <if test="adCode != null and adCode != ''">
  880. and w.ad_code like '${adCode}%'
  881. </if>
  882. <if test="rsName != null and rsName != ''">
  883. and t.nm like '%${rsName}%'
  884. </if>
  885. <if test="state !=null and state !=''">
  886. and STATE in (${state})
  887. </if>
  888. </select>
  889. <select id="getIrrBaseList" resultType="cn.com.goldenwater.dcproj.dto.BisInspObjDto" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam">
  890. select * from (
  891. select t.id as code,t.IRR_NAME as nm,t.ad_code,
  892. (case when t.center_x is null then ba.lgtdpc else t.center_x end) as centerX,
  893. (case when t.center_y is null then ba.Lttdpc else t.center_y end) as centerY,
  894. (case when t.Gd_x is null then ba.lgtd else t.Gd_x end) as lgtd,
  895. (case when t.gd_y is null then ba.lttd else t.gd_y end) as lttd
  896. from ATT_IRR_BASE t left join att_ad_x_base ba on t.ad_code = ba.ad_code
  897. where t.data_stat = '0'
  898. <if test="irrEngScal != null and irrEngScal != ''">
  899. and t.IRR_ENG_SCAL in (${irrEngScal})
  900. </if>
  901. ) w where 1=1
  902. <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and w.centerX BETWEEN
  903. #{minLgtd} AND #{maxLgtd}
  904. </if>
  905. <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and w.centerY BETWEEN
  906. #{minLttd} AND #{maxLttd}
  907. </if>
  908. <if test="adCode != null and adCode != ''">
  909. and w.ad_code like '${adCode}%'
  910. </if>
  911. <if test="rsName != null and rsName != ''">
  912. and t.nm like '%${rsName}%'
  913. </if>
  914. </select>
  915. <sql id="choseSql">
  916. <choose>
  917. <when test="province !=null and province !=''">
  918. AND ad_code=#{province}
  919. </when>
  920. <otherwise>
  921. AND ad_code is null
  922. </otherwise>
  923. </choose>
  924. </sql>
  925. <select id="getObjListNotInspGroupId" parameterType="String" resultType="cn.com.goldenwater.dcproj.model.AttIrrBase">
  926. select t.*
  927. from att_irr_base t
  928. where t.id not in (
  929. select CODE from BIS_INSP_ALL_OBJ B where id like concat(#{inspGroupId},'%') and B.obj_type=#{objType}
  930. <choose>
  931. <when test="province !=null and province !=''">
  932. and B.AD_CODE =#{province}
  933. </when>
  934. <otherwise>
  935. and B.AD_CODE is null
  936. </otherwise>
  937. </choose>
  938. )
  939. <if test="adName != null and adName != ''">and t.nm LIKE '%${adName}%'</if>
  940. <if test="adCode != null and adCode != ''">and t.AD_CODE LIKE '${adCode}%'</if>
  941. </select>
  942. <select id="getListByInspGroupIdObjType" resultType="cn.com.goldenwater.dcproj.model.AttIrrBase" parameterType="cn.com.goldenwater.dcproj.param.PagePersObjParam">
  943. select t.*,C.id groupId,C.PNM groupName,B.obj_id,r.ad_full_name as loc
  944. from att_irr_base t
  945. left join BIS_INSP_ALL_OBJ B
  946. on B.CODE = t.id
  947. LEFT JOIN BIS_INSP_ALL C ON B.ID = C.ID
  948. and B.ptype ='28'
  949. left join bis_insp_irr_rgstr r on b.obj_id=r.obj_id
  950. where 1 = 1
  951. <if test='isAll == "0"'>and B.ID = #{inspGroupId}</if>
  952. <if test='isAll == "1"'>and B.ID LIKE '${inspGroupId}%'</if>
  953. <if test="adCode != null and adCode != ''">
  954. and t.AD_CODE like '${adCode}%'
  955. </if>
  956. <choose>
  957. <when test="province != null and province != ''">
  958. and B.AD_CODE LIKE '${province}%'
  959. </when>
  960. <otherwise>
  961. and B.AD_CODE is null
  962. </otherwise>
  963. </choose>
  964. </select>
  965. </mapper>