BisInspIrrWtusrDao.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  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.BisInspIrrWtusrDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspIrrWtusr" id="bisInspIrrWtusrResultMap">
  5. <result property="wtrCause" column="WTR_CAUSE"/>
  6. <result property="grainOutput" column="GRAIN_OUTPUT"/>
  7. <result property="isYearLimit" column="IS_YEAR_LIMIT"/>
  8. <result property="lackGrainOutput" column="LACK_GRAIN_OUTPUT"/>
  9. <result property="isQuota" column="IS_QUOTA"/>
  10. <result property="isTend" column="IS_TEND"/>
  11. <result property="inTend" column="IN_TEND"/>
  12. <result property="tendNot" column="TEND_NOT"/>
  13. <result property="tendNotNote" column="TEND_NOT_NOTE"/>
  14. <result property="isOwnshp" column="IS_OWNSHP"/>
  15. <result property="isOwnshpTend" column="IS_OWNSHP_TEND"/>
  16. <result property="whoTend" column="WHO_TEND"/>
  17. <result property="isPrjBuld" column="IS_PRJ_BULD"/>
  18. <result property="buldType" column="BULD_TYPE"/>
  19. <result property="whoBuldPrj" column="WHO_BULD_PRJ"/>
  20. <result property="effIrrAreaPipe" column="EFF_IRR_AREA_PIPE"/>
  21. <result property="effIrrAreaSprn" column="EFF_IRR_AREA_SPRN"/>
  22. <result property="effIrrAreaMicro" column="EFF_IRR_AREA_MICRO"/>
  23. <result property="efuIrrAreaPipe" column="EFU_IRR_AREA_PIPE"/>
  24. <result property="efuIrrAreaSprn" column="EFU_IRR_AREA_SPRN"/>
  25. <result property="efuIrrAreaMicro" column="EFU_IRR_AREA_MICRO"/>
  26. <result property="unusdReason" column="UNUSD_REASON"/>
  27. <result property="isCollectWtrp" column="IS_COLLECT_WTRP"/>
  28. <result property="formMeasur" column="FORM_MEASUR"/>
  29. <result property="wtrpStndType" column="WTRP_STND_TYPE"/>
  30. <result property="wtrpStndVal" column="WTRP_STND_VAL"/>
  31. <result property="wtrpStndOthr" column="WTRP_STND_OTHR"/>
  32. <result property="prjNotTend" column="PRJ_NOT_TEND"/>
  33. <result property="prjPblmArea" column="PRJ_PBLM_AREA"/>
  34. <result property="note" column="NOTE"/>
  35. <result property="invsrName" column="INVSR_NAME"/>
  36. <result property="invsrPhone" column="INVSR_PHONE"/>
  37. <result property="invsrTm" column="INVSR_TM"/>
  38. <result property="persId" column="PERS_ID"/>
  39. <result property="intm" column="INTM"/>
  40. <result property="uptm" column="UPTM"/>
  41. <result property="dataStat" column="DATA_STAT"/>
  42. <result property="state" column="STATE"/>
  43. <result property="id" column="ID"/>
  44. <result property="rgstrId" column="RGSTR_ID"/>
  45. <result property="objId" column="OBJ_ID"/>
  46. <result property="adCode" column="AD_CODE"/>
  47. <result property="adName" column="AD_NAME"/>
  48. <result property="uswtName" column="USWT_NAME"/>
  49. <result property="uswtPhone" column="USWT_PHONE"/>
  50. <result property="irrCode" column="IRR_CODE"/>
  51. <result property="irrName" column="IRR_NAME"/>
  52. <result property="effIrrArea" column="EFF_IRR_AREA"/>
  53. <result property="efwIrrArea" column="EFW_IRR_AREA"/>
  54. <result property="mainCrops" column="MAIN_CROPS"/>
  55. <result property="irrPrjType" column="IRR_PRJ_TYPE"/>
  56. <result property="irrOrgType" column="IRR_ORG_TYPE"/>
  57. <result property="irrWtrType" column="IRR_WTR_TYPE"/>
  58. <result property="husHldIne" column="HUS_HLD_INE"/>
  59. <result property="lndHldIne" column="LND_HLD_INE"/>
  60. <result property="isFillWtr" column="IS_FILL_WTR"/>
  61. <result property="isFulllWtr" column="IS_FULLL_WTR"/>
  62. <result property="isDrnWtr" column="IS_DRN_WTR"/>
  63. <result property="prjPbmArea" column="PRJ_PBM_AREA"/>
  64. <result property="centerX" column="CENTER_X"/>
  65. <result property="centerY" column="CENTER_Y"/>
  66. <result property="gdX" column="GD_X"/>
  67. <result property="gdY" column="GD_Y"/>
  68. <result property="prjNotTendNote" column="PRJ_NOT_TEND_NOTE"/>
  69. <result property="tendNotReason" column="TEND_NOT_REASON"/>
  70. <result property="tendNotReasonNote" column="TEND_NOT_REASON_NOTE"/>
  71. <result property="inTendType" column="IN_TEND_TYPE"/>
  72. <result property="ifEffIrr" column="IF_EFF_IRR"/>
  73. <result property="ifAllUsed" column="IF_ALL_USED"/>
  74. </resultMap>
  75. <sql id="table_columns">
  76. IF_EFF_IRR,
  77. IF_ALL_USED,
  78. TEND_NOT_REASON,
  79. TEND_NOT_REASON_NOTE,
  80. IN_TEND_TYPE,
  81. PRJ_NOT_TEND_NOTE,
  82. CENTER_X,
  83. CENTER_Y,
  84. GD_X,
  85. GD_Y,
  86. WTR_CAUSE,
  87. GRAIN_OUTPUT,
  88. IS_YEAR_LIMIT,
  89. LACK_GRAIN_OUTPUT,
  90. IS_QUOTA,
  91. IS_TEND,
  92. IN_TEND,
  93. TEND_NOT,
  94. TEND_NOT_NOTE,
  95. IS_OWNSHP,
  96. IS_OWNSHP_TEND,
  97. WHO_TEND,
  98. IS_PRJ_BULD,
  99. BULD_TYPE,
  100. WHO_BULD_PRJ,
  101. EFF_IRR_AREA_PIPE,
  102. EFF_IRR_AREA_SPRN,
  103. EFF_IRR_AREA_MICRO,
  104. EFU_IRR_AREA_PIPE,
  105. EFU_IRR_AREA_SPRN,
  106. EFU_IRR_AREA_MICRO,
  107. UNUSD_REASON,
  108. IS_COLLECT_WTRP,
  109. FORM_MEASUR,
  110. WTRP_STND_TYPE,
  111. WTRP_STND_VAL,
  112. WTRP_STND_OTHR,
  113. PRJ_NOT_TEND,
  114. PRJ_PBLM_AREA,
  115. NOTE,
  116. INVSR_NAME,
  117. INVSR_PHONE,
  118. INVSR_TM,
  119. PERS_ID,
  120. INTM,
  121. UPTM,
  122. DATA_STAT,
  123. STATE,
  124. ID,
  125. RGSTR_ID,
  126. OBJ_ID,
  127. AD_CODE,
  128. AD_NAME,
  129. USWT_NAME,
  130. USWT_PHONE,
  131. IRR_CODE,
  132. IRR_NAME,
  133. EFF_IRR_AREA,
  134. EFW_IRR_AREA,
  135. MAIN_CROPS,
  136. IRR_PRJ_TYPE,
  137. IRR_ORG_TYPE,
  138. IRR_WTR_TYPE,
  139. HUS_HLD_INE,
  140. LND_HLD_INE,
  141. IS_FILL_WTR,
  142. IS_FULLL_WTR,
  143. IS_DRN_WTR,
  144. PRJ_PBM_AREA
  145. </sql>
  146. <sql id="entity_properties">
  147. #{ifEffIrr},
  148. #{ifAllUsed},
  149. #{tendNotReason},
  150. #{tendNotReasonNote},
  151. #{inTendType},
  152. #{prjNotTendNote},
  153. #{centerX},
  154. #{centerY},
  155. #{gdX},
  156. #{gdY},
  157. #{wtrCause},
  158. #{grainOutput},
  159. #{isYearLimit},
  160. #{lackGrainOutput},
  161. #{isQuota},
  162. #{isTend},
  163. #{inTend},
  164. #{tendNot},
  165. #{tendNotNote},
  166. #{isOwnshp},
  167. #{isOwnshpTend},
  168. #{whoTend},
  169. #{isPrjBuld},
  170. #{buldType},
  171. #{whoBuldPrj},
  172. #{effIrrAreaPipe},
  173. #{effIrrAreaSprn},
  174. #{effIrrAreaMicro},
  175. #{efuIrrAreaPipe},
  176. #{efuIrrAreaSprn},
  177. #{efuIrrAreaMicro},
  178. #{unusdReason},
  179. #{isCollectWtrp},
  180. #{formMeasur},
  181. #{wtrpStndType},
  182. #{wtrpStndVal},
  183. #{wtrpStndOthr},
  184. #{prjNotTend},
  185. #{prjPblmArea},
  186. #{note},
  187. #{invsrName},
  188. #{invsrPhone},
  189. #{invsrTm},
  190. #{persId},
  191. #{intm},
  192. #{uptm},
  193. #{dataStat},
  194. #{state},
  195. #{id},
  196. #{rgstrId},
  197. #{objId},
  198. #{adCode},
  199. #{adName},
  200. #{uswtName},
  201. #{uswtPhone},
  202. #{irrCode},
  203. #{irrName},
  204. #{effIrrArea},
  205. #{efwIrrArea},
  206. #{mainCrops},
  207. #{irrPrjType},
  208. #{irrOrgType},
  209. #{irrWtrType},
  210. #{husHldIne},
  211. #{lndHldIne},
  212. #{isFillWtr},
  213. #{isFulllWtr},
  214. #{isDrnWtr},
  215. #{prjPbmArea}
  216. </sql>
  217. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  218. <sql id="page_where">
  219. <trim prefix="where" prefixOverrides="and | or ">
  220. <if test="ifEffIrr != null and ifEffIrr != ''">and IF_EFF_IRR = #{ifEffIrr}</if>
  221. <if test="ifAllUsed != null and ifAllUsed != ''">and IF_ALL_USED = #{ifAllUsed}</if>
  222. <if test="tendNotReason != null and tendNotReason != ''">and TEND_NOT_REASON = #{tendNotReason}</if>
  223. <if test="tendNotReasonNote != null and tendNotReasonNote != ''">and TEND_NOT_REASON_NOTE = #{tendNotReasonNote}</if>
  224. <if test="inTendType != null and inTendType != ''">and IN_TEND_TYPE = #{inTendType}</if>
  225. <if test="prjNotTendNote != null and prjNotTendNote != ''">and PRJ_NOT_TEND_NOTE = #{prjNotTendNote}</if>
  226. <if test="centerX != null and centerX != ''">and CENTER_X = #{centerX}</if>
  227. <if test="centerY != null and centerY != ''">and CENTER_Y = #{centerY}</if>
  228. <if test="gdX != null and gdX != ''">and GD_X = #{gdX}</if>
  229. <if test="gdY != null and gdY != ''">and GD_Y = #{gdY}</if>
  230. <if test="wtrCause != null and wtrCause != ''">and WTR_CAUSE = #{wtrCause}</if>
  231. <if test="grainOutput != null and grainOutput != ''">and GRAIN_OUTPUT = #{grainOutput}</if>
  232. <if test="isYearLimit != null and isYearLimit != ''">and IS_YEAR_LIMIT = #{isYearLimit}</if>
  233. <if test="lackGrainOutput != null and lackGrainOutput != ''">and LACK_GRAIN_OUTPUT = #{lackGrainOutput}</if>
  234. <if test="isQuota != null and isQuota != ''">and IS_QUOTA = #{isQuota}</if>
  235. <if test="isTend != null and isTend != ''">and IS_TEND = #{isTend}</if>
  236. <if test="inTend != null and inTend != ''">and IN_TEND = #{inTend}</if>
  237. <if test="tendNot != null and tendNot != ''">and TEND_NOT = #{tendNot}</if>
  238. <if test="tendNotNote != null and tendNotNote != ''">and TEND_NOT_NOTE = #{tendNotNote}</if>
  239. <if test="isOwnshp != null and isOwnshp != ''">and IS_OWNSHP = #{isOwnshp}</if>
  240. <if test="isOwnshpTend != null and isOwnshpTend != ''">and IS_OWNSHP_TEND = #{isOwnshpTend}</if>
  241. <if test="whoTend != null and whoTend != ''">and WHO_TEND = #{whoTend}</if>
  242. <if test="isPrjBuld != null and isPrjBuld != ''">and IS_PRJ_BULD = #{isPrjBuld}</if>
  243. <if test="buldType != null and buldType != ''">and BULD_TYPE = #{buldType}</if>
  244. <if test="whoBuldPrj != null and whoBuldPrj != ''">and WHO_BULD_PRJ = #{whoBuldPrj}</if>
  245. <if test="effIrrAreaPipe != null and effIrrAreaPipe != ''">and EFF_IRR_AREA_PIPE = #{effIrrAreaPipe}</if>
  246. <if test="effIrrAreaSprn != null and effIrrAreaSprn != ''">and EFF_IRR_AREA_SPRN = #{effIrrAreaSprn}</if>
  247. <if test="effIrrAreaMicro != null and effIrrAreaMicro != ''">and EFF_IRR_AREA_MICRO = #{effIrrAreaMicro}</if>
  248. <if test="efuIrrAreaPipe != null and efuIrrAreaPipe != ''">and EFU_IRR_AREA_PIPE = #{efuIrrAreaPipe}</if>
  249. <if test="efuIrrAreaSprn != null and efuIrrAreaSprn != ''">and EFU_IRR_AREA_SPRN = #{efuIrrAreaSprn}</if>
  250. <if test="efuIrrAreaMicro != null and efuIrrAreaMicro != ''">and EFU_IRR_AREA_MICRO = #{efuIrrAreaMicro}</if>
  251. <if test="unusdReason != null and unusdReason != ''">and UNUSD_REASON = #{unusdReason}</if>
  252. <if test="isCollectWtrp != null and isCollectWtrp != ''">and IS_COLLECT_WTRP = #{isCollectWtrp}</if>
  253. <if test="formMeasur != null and formMeasur != ''">and FORM_MEASUR = #{formMeasur}</if>
  254. <if test="wtrpStndType != null and wtrpStndType != ''">and WTRP_STND_TYPE = #{wtrpStndType}</if>
  255. <if test="wtrpStndVal != null and wtrpStndVal != ''">and WTRP_STND_VAL = #{wtrpStndVal}</if>
  256. <if test="wtrpStndOthr != null and wtrpStndOthr != ''">and WTRP_STND_OTHR = #{wtrpStndOthr}</if>
  257. <if test="prjNotTend != null and prjNotTend != ''">and PRJ_NOT_TEND = #{prjNotTend}</if>
  258. <if test="prjPblmArea != null and prjPblmArea != ''">and PRJ_PBLM_AREA = #{prjPblmArea}</if>
  259. <if test="note != null and note != ''">and NOTE = #{note}</if>
  260. <if test="invsrName != null and invsrName != ''">and INVSR_NAME = #{invsrName}</if>
  261. <if test="invsrPhone != null and invsrPhone != ''">and INVSR_PHONE = #{invsrPhone}</if>
  262. <if test="invsrTm != null">and INVSR_TM = #{invsrTm}</if>
  263. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  264. <if test="intm != null">and INTM = #{intm}</if>
  265. <if test="uptm != null">and UPTM = #{uptm}</if>
  266. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  267. <if test="state != null and state != ''">and STATE = #{state}</if>
  268. <if test="id != null and id != ''">and ID = #{id}</if>
  269. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  270. <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
  271. <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
  272. <if test="adName != null and adName != ''">and AD_NAME = #{adName}</if>
  273. <if test="uswtName != null and uswtName != ''">and USWT_NAME like concat('%',concat(#{uswtName},'%'))</if>
  274. <if test="uswtPhone != null and uswtPhone != ''">and USWT_PHONE = #{uswtPhone}</if>
  275. <if test="irrCode != null and irrCode != ''">and IRR_CODE = #{irrCode}</if>
  276. <if test="irrName != null and irrName != ''">and IRR_NAME = #{irrName}</if>
  277. <if test="effIrrArea != null and effIrrArea != ''">and EFF_IRR_AREA = #{effIrrArea}</if>
  278. <if test="efwIrrArea != null and efwIrrArea != ''">and EFW_IRR_AREA = #{efwIrrArea}</if>
  279. <if test="mainCrops != null and mainCrops != ''">and MAIN_CROPS = #{mainCrops}</if>
  280. <if test="irrPrjType != null and irrPrjType != ''">and IRR_PRJ_TYPE = #{irrPrjType}</if>
  281. <if test="irrOrgType != null and irrOrgType != ''">and IRR_ORG_TYPE = #{irrOrgType}</if>
  282. <if test="irrWtrType != null and irrWtrType != ''">and IRR_WTR_TYPE = #{irrWtrType}</if>
  283. <if test="husHldIne != null and husHldIne != ''">and HUS_HLD_INE = #{husHldIne}</if>
  284. <if test="lndHldIne != null and lndHldIne != ''">and LND_HLD_INE = #{lndHldIne}</if>
  285. <if test="isFillWtr != null and isFillWtr != ''">and IS_FILL_WTR = #{isFillWtr}</if>
  286. <if test="isFulllWtr != null and isFulllWtr != ''">and IS_FULLL_WTR = #{isFulllWtr}</if>
  287. <if test="isDrnWtr != null and isDrnWtr != ''">and IS_DRN_WTR = #{isDrnWtr}</if>
  288. <if test="prjPbmArea != null and prjPbmArea != ''">and PRJ_PBM_AREA = #{prjPbmArea}</if>
  289. and DATA_STAT='0'
  290. </trim>
  291. </sql>
  292. <select id="get" resultMap="bisInspIrrWtusrResultMap" parameterType="String" >
  293. select <include refid="table_columns" /> from BIS_INSP_IRR_WTUSR where ID = #{id}
  294. </select>
  295. <select id="getBy" resultMap="bisInspIrrWtusrResultMap">
  296. select <include refid="table_columns" /> from BIS_INSP_IRR_WTUSR <include refid="page_where" />
  297. </select>
  298. <select id="findAll" resultMap="bisInspIrrWtusrResultMap">
  299. select <include refid="table_columns" /> from BIS_INSP_IRR_WTUSR
  300. </select>
  301. <select id="findList" resultMap="bisInspIrrWtusrResultMap">
  302. select <include refid="table_columns" /> from BIS_INSP_IRR_WTUSR <include refid="page_where" />
  303. </select>
  304. <select id="selectCount" resultType="int" >
  305. select count(ID) from BIS_INSP_IRR_WTUSR <include refid="page_where" />
  306. </select>
  307. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWtusr">
  308. insert into BIS_INSP_IRR_WTUSR( <include refid="table_columns" /> )
  309. values ( <include refid="entity_properties" /> )
  310. </insert>
  311. <delete id="delete" parameterType="java.lang.String">
  312. update BIS_INSP_IRR_WTUSR set DATA_STAT='9' where ID = #{id}
  313. </delete>
  314. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWtusr">
  315. update BIS_INSP_IRR_WTUSR set DATA_STAT='9' <include refid="page_where" />
  316. </delete>
  317. <update id="deleteInFlag" parameterType="java.lang.String">
  318. update BIS_INSP_IRR_WTUSR set DATA_STAT = '9' where ID = #{id}
  319. </update>
  320. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWtusr">
  321. update BIS_INSP_IRR_WTUSR
  322. <trim prefix="set" suffixOverrides=",">
  323. <if test="ifEffIrr != null and ifEffIrr != ''">IF_EFF_IRR = #{ifEffIrr},</if>
  324. <if test="ifAllUsed != null and ifAllUsed != ''">IF_ALL_USED = #{ifAllUsed},</if>
  325. <if test="tendNotReason != null and tendNotReason != ''">TEND_NOT_REASON = #{tendNotReason},</if>
  326. <if test="tendNotReasonNote != null and tendNotReasonNote != ''">TEND_NOT_REASON_NOTE = #{tendNotReasonNote},</if>
  327. <if test="inTendType != null and inTendType != ''">IN_TEND_TYPE = #{inTendType},</if>
  328. <if test="prjNotTendNote != null and prjNotTendNote != ''">PRJ_NOT_TEND_NOTE = #{prjNotTendNote},</if>
  329. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  330. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  331. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  332. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  333. <if test="wtrCause != null and wtrCause != ''">WTR_CAUSE = #{wtrCause},</if>
  334. <if test="grainOutput != null and grainOutput != ''">GRAIN_OUTPUT = #{grainOutput},</if>
  335. <if test="isYearLimit != null and isYearLimit != ''">IS_YEAR_LIMIT = #{isYearLimit},</if>
  336. <if test="lackGrainOutput != null and lackGrainOutput != ''">LACK_GRAIN_OUTPUT = #{lackGrainOutput},</if>
  337. <if test="isQuota != null and isQuota != ''">IS_QUOTA = #{isQuota},</if>
  338. <if test="isTend != null and isTend != ''">IS_TEND = #{isTend},</if>
  339. <if test="inTend != null and inTend != ''">IN_TEND = #{inTend},</if>
  340. <if test="tendNot != null and tendNot != ''">TEND_NOT = #{tendNot},</if>
  341. <if test="tendNotNote != null and tendNotNote != ''">TEND_NOT_NOTE = #{tendNotNote},</if>
  342. <if test="isOwnshp != null and isOwnshp != ''">IS_OWNSHP = #{isOwnshp},</if>
  343. <if test="isOwnshpTend != null and isOwnshpTend != ''">IS_OWNSHP_TEND = #{isOwnshpTend},</if>
  344. <if test="whoTend != null and whoTend != ''">WHO_TEND = #{whoTend},</if>
  345. <if test="isPrjBuld != null and isPrjBuld != ''">IS_PRJ_BULD = #{isPrjBuld},</if>
  346. <if test="buldType != null and buldType != ''">BULD_TYPE = #{buldType},</if>
  347. <if test="whoBuldPrj != null and whoBuldPrj != ''">WHO_BULD_PRJ = #{whoBuldPrj},</if>
  348. <if test="effIrrAreaPipe != null and effIrrAreaPipe != ''">EFF_IRR_AREA_PIPE = #{effIrrAreaPipe},</if>
  349. <if test="effIrrAreaSprn != null and effIrrAreaSprn != ''">EFF_IRR_AREA_SPRN = #{effIrrAreaSprn},</if>
  350. <if test="effIrrAreaMicro != null and effIrrAreaMicro != ''">EFF_IRR_AREA_MICRO = #{effIrrAreaMicro},</if>
  351. <if test="efuIrrAreaPipe != null and efuIrrAreaPipe != ''">EFU_IRR_AREA_PIPE = #{efuIrrAreaPipe},</if>
  352. <if test="efuIrrAreaSprn != null and efuIrrAreaSprn != ''">EFU_IRR_AREA_SPRN = #{efuIrrAreaSprn},</if>
  353. <if test="efuIrrAreaMicro != null and efuIrrAreaMicro != ''">EFU_IRR_AREA_MICRO = #{efuIrrAreaMicro},</if>
  354. <if test="unusdReason != null and unusdReason != ''">UNUSD_REASON = #{unusdReason},</if>
  355. <if test="isCollectWtrp != null and isCollectWtrp != ''">IS_COLLECT_WTRP = #{isCollectWtrp},</if>
  356. <if test="formMeasur != null and formMeasur != ''">FORM_MEASUR = #{formMeasur},</if>
  357. <if test="wtrpStndType != null and wtrpStndType != ''">WTRP_STND_TYPE = #{wtrpStndType},</if>
  358. <if test="wtrpStndVal != null and wtrpStndVal != ''">WTRP_STND_VAL = #{wtrpStndVal},</if>
  359. <if test="wtrpStndOthr != null and wtrpStndOthr != ''">WTRP_STND_OTHR = #{wtrpStndOthr},</if>
  360. <if test="prjNotTend != null and prjNotTend != ''">PRJ_NOT_TEND = #{prjNotTend},</if>
  361. <if test="prjPblmArea != null and prjPblmArea != ''">PRJ_PBLM_AREA = #{prjPblmArea},</if>
  362. <if test="note != null and note != ''">NOTE = #{note},</if>
  363. <if test="invsrName != null and invsrName != ''">INVSR_NAME = #{invsrName},</if>
  364. <if test="invsrPhone != null and invsrPhone != ''">INVSR_PHONE = #{invsrPhone},</if>
  365. <if test="invsrTm != null">INVSR_TM = #{invsrTm},</if>
  366. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  367. <if test="intm != null">INTM = #{intm},</if>
  368. <if test="uptm != null">UPTM = #{uptm},</if>
  369. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  370. <if test="state != null and state != ''">STATE = #{state},</if>
  371. <if test="id != null and id != ''">ID = #{id},</if>
  372. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  373. <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
  374. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  375. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  376. <if test="uswtName != null and uswtName != ''">USWT_NAME = #{uswtName},</if>
  377. <if test="uswtPhone != null and uswtPhone != ''">USWT_PHONE = #{uswtPhone},</if>
  378. <if test="irrCode != null and irrCode != ''">IRR_CODE = #{irrCode},</if>
  379. <if test="irrName != null and irrName != ''">IRR_NAME = #{irrName},</if>
  380. <if test="effIrrArea != null and effIrrArea != ''">EFF_IRR_AREA = #{effIrrArea},</if>
  381. <if test="efwIrrArea != null and efwIrrArea != ''">EFW_IRR_AREA = #{efwIrrArea},</if>
  382. <if test="mainCrops != null and mainCrops != ''">MAIN_CROPS = #{mainCrops},</if>
  383. <if test="irrPrjType != null and irrPrjType != ''">IRR_PRJ_TYPE = #{irrPrjType},</if>
  384. <if test="irrOrgType != null and irrOrgType != ''">IRR_ORG_TYPE = #{irrOrgType},</if>
  385. <if test="irrWtrType != null and irrWtrType != ''">IRR_WTR_TYPE = #{irrWtrType},</if>
  386. <if test="husHldIne != null and husHldIne != ''">HUS_HLD_INE = #{husHldIne},</if>
  387. <if test="lndHldIne != null and lndHldIne != ''">LND_HLD_INE = #{lndHldIne},</if>
  388. <if test="isFillWtr != null and isFillWtr != ''">IS_FILL_WTR = #{isFillWtr},</if>
  389. <if test="isFulllWtr != null and isFulllWtr != ''">IS_FULLL_WTR = #{isFulllWtr},</if>
  390. <if test="isDrnWtr != null and isDrnWtr != ''">IS_DRN_WTR = #{isDrnWtr},</if>
  391. <if test="prjPbmArea != null and prjPbmArea != ''">PRJ_PBM_AREA = #{prjPbmArea},</if>
  392. </trim>
  393. <where>ID = #{id}</where>
  394. </update>
  395. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspIrrWtusr">
  396. update BIS_INSP_IRR_WTUSR
  397. <trim prefix="set" suffixOverrides=",">
  398. <if test="ifEffIrr != null and ifEffIrr != ''">IF_EFF_IRR = #{ifEffIrr},</if>
  399. <if test="ifAllUsed != null and ifAllUsed != ''">IF_ALL_USED = #{ifAllUsed},</if>
  400. <if test="tendNotReason != null and tendNotReason != ''">TEND_NOT_REASON = #{tendNotReason},</if>
  401. <if test="tendNotReasonNote != null and tendNotReasonNote != ''">TEND_NOT_REASON_NOTE = #{tendNotReasonNote},</if>
  402. <if test="inTendType != null and inTendType != ''">IN_TEND_TYPE = #{inTendType},</if>
  403. <if test="prjNotTendNote != null and prjNotTendNote != ''">PRJ_NOT_TEND_NOTE = #{prjNotTendNote},</if>
  404. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  405. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  406. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  407. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  408. <if test="wtrCause != null and wtrCause != ''">WTR_CAUSE = #{wtrCause},</if>
  409. <if test="grainOutput != null and grainOutput != ''">GRAIN_OUTPUT = #{grainOutput},</if>
  410. <if test="isYearLimit != null and isYearLimit != ''">IS_YEAR_LIMIT = #{isYearLimit},</if>
  411. <if test="lackGrainOutput != null and lackGrainOutput != ''">LACK_GRAIN_OUTPUT = #{lackGrainOutput},</if>
  412. <if test="isQuota != null and isQuota != ''">IS_QUOTA = #{isQuota},</if>
  413. <if test="isTend != null and isTend != ''">IS_TEND = #{isTend},</if>
  414. <if test="inTend != null and inTend != ''">IN_TEND = #{inTend},</if>
  415. <if test="tendNot != null and tendNot != ''">TEND_NOT = #{tendNot},</if>
  416. <if test="tendNotNote != null and tendNotNote != ''">TEND_NOT_NOTE = #{tendNotNote},</if>
  417. <if test="isOwnshp != null and isOwnshp != ''">IS_OWNSHP = #{isOwnshp},</if>
  418. <if test="isOwnshpTend != null and isOwnshpTend != ''">IS_OWNSHP_TEND = #{isOwnshpTend},</if>
  419. <if test="whoTend != null and whoTend != ''">WHO_TEND = #{whoTend},</if>
  420. <if test="isPrjBuld != null and isPrjBuld != ''">IS_PRJ_BULD = #{isPrjBuld},</if>
  421. <if test="buldType != null and buldType != ''">BULD_TYPE = #{buldType},</if>
  422. <if test="whoBuldPrj != null and whoBuldPrj != ''">WHO_BULD_PRJ = #{whoBuldPrj},</if>
  423. <if test="effIrrAreaPipe != null and effIrrAreaPipe != ''">EFF_IRR_AREA_PIPE = #{effIrrAreaPipe},</if>
  424. <if test="effIrrAreaSprn != null and effIrrAreaSprn != ''">EFF_IRR_AREA_SPRN = #{effIrrAreaSprn},</if>
  425. <if test="effIrrAreaMicro != null and effIrrAreaMicro != ''">EFF_IRR_AREA_MICRO = #{effIrrAreaMicro},</if>
  426. <if test="efuIrrAreaPipe != null and efuIrrAreaPipe != ''">EFU_IRR_AREA_PIPE = #{efuIrrAreaPipe},</if>
  427. <if test="efuIrrAreaSprn != null and efuIrrAreaSprn != ''">EFU_IRR_AREA_SPRN = #{efuIrrAreaSprn},</if>
  428. <if test="efuIrrAreaMicro != null and efuIrrAreaMicro != ''">EFU_IRR_AREA_MICRO = #{efuIrrAreaMicro},</if>
  429. <if test="unusdReason != null and unusdReason != ''">UNUSD_REASON = #{unusdReason},</if>
  430. <if test="isCollectWtrp != null and isCollectWtrp != ''">IS_COLLECT_WTRP = #{isCollectWtrp},</if>
  431. <if test="formMeasur != null and formMeasur != ''">FORM_MEASUR = #{formMeasur},</if>
  432. <if test="wtrpStndType != null and wtrpStndType != ''">WTRP_STND_TYPE = #{wtrpStndType},</if>
  433. <if test="wtrpStndVal != null and wtrpStndVal != ''">WTRP_STND_VAL = #{wtrpStndVal},</if>
  434. <if test="wtrpStndOthr != null and wtrpStndOthr != ''">WTRP_STND_OTHR = #{wtrpStndOthr},</if>
  435. <if test="prjNotTend != null and prjNotTend != ''">PRJ_NOT_TEND = #{prjNotTend},</if>
  436. <if test="prjPblmArea != null and prjPblmArea != ''">PRJ_PBLM_AREA = #{prjPblmArea},</if>
  437. <if test="note != null and note != ''">NOTE = #{note},</if>
  438. <if test="invsrName != null and invsrName != ''">INVSR_NAME = #{invsrName},</if>
  439. <if test="invsrPhone != null and invsrPhone != ''">INVSR_PHONE = #{invsrPhone},</if>
  440. <if test="invsrTm != null">INVSR_TM = #{invsrTm},</if>
  441. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  442. <if test="intm != null">INTM = #{intm},</if>
  443. <if test="uptm != null">UPTM = #{uptm},</if>
  444. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  445. <if test="state != null and state != ''">STATE = #{state},</if>
  446. <if test="id != null and id != ''">ID = #{id},</if>
  447. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  448. <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
  449. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  450. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  451. <if test="uswtName != null and uswtName != ''">USWT_NAME = #{uswtName},</if>
  452. <if test="uswtPhone != null and uswtPhone != ''">USWT_PHONE = #{uswtPhone},</if>
  453. <if test="irrCode != null and irrCode != ''">IRR_CODE = #{irrCode},</if>
  454. <if test="irrName != null and irrName != ''">IRR_NAME = #{irrName},</if>
  455. <if test="effIrrArea != null and effIrrArea != ''">EFF_IRR_AREA = #{effIrrArea},</if>
  456. <if test="efwIrrArea != null and efwIrrArea != ''">EFW_IRR_AREA = #{efwIrrArea},</if>
  457. <if test="mainCrops != null and mainCrops != ''">MAIN_CROPS = #{mainCrops},</if>
  458. <if test="irrPrjType != null and irrPrjType != ''">IRR_PRJ_TYPE = #{irrPrjType},</if>
  459. <if test="irrOrgType != null and irrOrgType != ''">IRR_ORG_TYPE = #{irrOrgType},</if>
  460. <if test="irrWtrType != null and irrWtrType != ''">IRR_WTR_TYPE = #{irrWtrType},</if>
  461. <if test="husHldIne != null and husHldIne != ''">HUS_HLD_INE = #{husHldIne},</if>
  462. <if test="lndHldIne != null and lndHldIne != ''">LND_HLD_INE = #{lndHldIne},</if>
  463. <if test="isFillWtr != null and isFillWtr != ''">IS_FILL_WTR = #{isFillWtr},</if>
  464. <if test="isFulllWtr != null and isFulllWtr != ''">IS_FULLL_WTR = #{isFulllWtr},</if>
  465. <if test="isDrnWtr != null and isDrnWtr != ''">IS_DRN_WTR = #{isDrnWtr},</if>
  466. <if test="prjPbmArea != null and prjPbmArea != ''">PRJ_PBM_AREA = #{prjPbmArea},</if>
  467. </trim>
  468. <include refid="page_where" />
  469. </update>
  470. <!-- 其他自定义SQL -->
  471. </mapper>