BisInspSafeExtManageDao.xml 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  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.BisInspSafeExtManageDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspSafeExtManage" id="bisInspSafeExtManageResultMap">
  5. <result property="ifFsltdz" column="IF_FSLTDZ"/>
  6. <result property="ifFsltdzRun" column="IF_FSLTDZ_RUN"/>
  7. <result property="ifFsltdzNo" column="IF_FSLTDZ_NO"/>
  8. <result property="mngrnId" column="MNGRN_ID"/>
  9. <result property="rgstrId" column="RGSTR_ID"/>
  10. <result property="safeCommontNote" column="SAFE_COMMONT_NOTE"/>
  11. <result property="safeComment" column="SAFE_COMMENT"/>
  12. <result property="retainRegular" column="RETAIN_REGULAR"/>
  13. <result property="hasRetainRegular" column="HAS_RETAIN_REGULAR"/>
  14. <result property="wdEmnic" column="WD_EMNIC"/>
  15. <result property="hasWdEmnic" column="HAS_WD_EMNIC"/>
  16. <result property="managePersNote" column="MANAGE_PERS_NOTE"/>
  17. <result property="hasManagePers" column="HAS_MANAGE_PERS"/>
  18. <result property="speManageNote" column="SPE_MANAGE_NOTE"/>
  19. <result property="hasSpeManage" column="HAS_SPE_MANAGE"/>
  20. <result property="noRetainRegularNote" column="NO_RETAIN_REGULAR_NOTE"/>
  21. <result property="noRetainRegular" column="NO_RETAIN_REGULAR"/>
  22. <result property="canNotRetainWaterNote" column="CAN_NOT_RETAIN_WATER_NOTE"/>
  23. <result property="canNotRetainWater" column="CAN_NOT_RETAIN_WATER"/>
  24. <result property="dikeHasLeakNote" column="DIKE_HAS_LEAK_NOTE"/>
  25. <result property="dikeHasLeak" column="DIKE_HAS_LEAK"/>
  26. <result property="leakMakeSafeNote" column="LEAK_MAKE_SAFE_NOTE"/>
  27. <result property="leakMakeSafe" column="LEAK_MAKE_SAFE"/>
  28. <result property="hasAstable" column="HAS_ASTABLE"/>
  29. <result property="astableDesc" column="ASTABLE_DESC"/>
  30. <result property="setMainFlNote" column="SET_MAIN_FL_NOTE"/>
  31. <result property="hasSetMainFl" column="HAS_SET_MAIN_FL"/>
  32. <result property="mainFlNormalNote" column="MAIN_FL_NORMAL_NOTE"/>
  33. <result property="isMainFlNormal" column="IS_MAIN_FL_NORMAL"/>
  34. <result property="hasSetWaga" column="HAS_SET_WAGA"/>
  35. <result property="isWagaOpenNormal" column="IS_WAGA_OPEN_NORMAL"/>
  36. <result property="wagaDangDesc" column="WAGA_DANG_DESC"/>
  37. <result property="notSetWagaReason" column="NOT_SET_WAGA_REASON"/>
  38. <result property="setPorrFlNote" column="SET_PORR_FL_NOTE"/>
  39. <result property="hasSetPourFl" column="HAS_SET_POUR_FL"/>
  40. <result property="pourFyNormalNote" column="POUR_FY_NORMAL_NOTE"/>
  41. <result property="pourFyIsNormal" column="POUR_FY_IS_NORMAL"/>
  42. <result property="hasSetPourWaga" column="HAS_SET_POUR_WAGA"/>
  43. <result property="isPourWagaOpenNormal" column="IS_POUR_WAGA_OPEN_NORMAL"/>
  44. <result property="pourWagaDangDesc" column="POUR_WAGA_DANG_DESC"/>
  45. <result property="canNotSetFy" column="CAN_NOT_SET_FY"/>
  46. <result property="flLowLimLevNote" column="FL_LOW_LIM_LEV_NOTE"/>
  47. <result property="havFlLowLimLev" column="HAV_FL_LOW_LIM_LEV"/>
  48. <result property="gtFlLowLimLevNote" column="GT_FL_LOW_LIM_LEV_NOTE"/>
  49. <result property="gtFlLowLimLev" column="GT_FL_LOW_LIM_LEV"/>
  50. <result property="gtFlLowLimLevDesc" column="GT_FL_LOW_LIM_LEV_DESC"/>
  51. <result property="damSafeApprNote" column="DAM_SAFE_APPR_NOTE"/>
  52. <result property="extDamSafeAppr" column="EXT_DAM_SAFE_APPR"/>
  53. <result property="nearDamSafeApprTime" column="NEAR_DAM_SAFE_APPR_TIME"/>
  54. <result property="neatDamSafeApprRes" column="NEAT_DAM_SAFE_APPR_RES"/>
  55. <result property="damSafeApprRequire" column="DAM_SAFE_APPR_REQUIRE"/>
  56. <result property="noDamSafeApprReson" column="NO_DAM_SAFE_APPR_RESON"/>
  57. <result property="reinForceNote" column="REIN_FORCE_NOTE"/>
  58. <result property="ifReinForce" column="IF_REIN_FORCE"/>
  59. <result property="reinForceTime" column="REIN_FORCE_TIME"/>
  60. <result property="ifComplateAcc" column="IF_COMPLATE_ACC"/>
  61. <result property="accDate" column="ACC_DATE"/>
  62. <result property="ifComplateAccAll" column="IF_COMPLATE_ACC_ALL"/>
  63. <result property="complateAccAllDesc" column="COMPLATE_ACC_ALL_DESC"/>
  64. <result property="effectFloodSafe" column="EFFECT_FLOOD_SAFE"/>
  65. <result property="noReinForceReson" column="NO_REIN_FORCE_RESON"/>
  66. <result property="accHaveDangNow" column="ACC_HAVE_DANG_NOW"/>
  67. <result property="accHaveDangDesc" column="ACC_HAVE_DANG_DESC"/>
  68. <result property="ifWaterLessor" column="IF_WATER_LESSOR"/>
  69. <result property="waterLessorEffectFl" column="WATER_LESSOR_EFFECT_FL"/>
  70. <result property="waterLessorEffectFlReson" column="WATER_LESSOR_EFFECT_FL_RESON"/>
  71. <result property="manageRegRelNote" column="MANAGE_REG_REL_NOTE"/>
  72. <result property="ifManageRegRel" column="IF_MANAGE_REG_REL"/>
  73. <result property="manageRegNote" column="MANAGE_REG_NOTE"/>
  74. <result property="ifManageReg" column="IF_MANAGE_REG"/>
  75. <result property="damWarnLogoNote" column="DAM_WARN_LOGO_NOTE"/>
  76. <result property="ifDamWarnLogo" column="IF_DAM_WARN_LOGO"/>
  77. <result property="otherEffectReson" column="OTHER_EFFECT_RESON"/>
  78. <result property="recPersId" column="REC_PERS_ID"/>
  79. <result property="recPers2" column="REC_PERS2"/>
  80. <result property="recPersTel" column="REC_PERS_TEL"/>
  81. <result property="createTime" column="CREATE_TIME"/>
  82. <result property="updateTime" column="UPDATE_TIME"/>
  83. <result property="status" column="STATUS"/>
  84. <result property="poorCountry" column="POOR_COUNTRY"/>
  85. <result property="reverOrg" column="REVER_ORG"/>
  86. <result property="reverOrgName" column="REVER_ORG_NAME"/>
  87. <result property="emerPlanSameExta" column="EMER_PLAN_SAME_EXTA"/>
  88. <result property="emerPlanSameExtaNote" column="EMER_PLAN_SAME_EXTA_NOTE"/>
  89. <result property="emerPlanSameAppr" column="EMER_PLAN_SAME_APPR"/>
  90. <result property="emerPlanSameApprNote" column="EMER_PLAN_SAME_APPR_NOTE"/>
  91. <result property="emerPlanSamePert" column="EMER_PLAN_SAME_PERT"/>
  92. <result property="emerPlanSamePertNote" column="EMER_PLAN_SAME_PERT_NOTE"/>
  93. <result property="emerPlanSameEme" column="EMER_PLAN_SAME_EME"/>
  94. <result property="emerPlanSameEmeNote" column="EMER_PLAN_SAME_EME_NOTE"/>
  95. <result property="emerPlanSameSpeed" column="EMER_PLAN_SAME_SPEED"/>
  96. <result property="isHasMangPers" column="IS_HAS_MANG_PERS"/>
  97. <result property="isClean" column="IS_CLEAN"/>
  98. </resultMap>
  99. <sql id="table_columns">
  100. IS_HAS_MANG_PERS,
  101. IS_CLEAN,
  102. EMER_PLAN_SAME_EXTA,
  103. EMER_PLAN_SAME_EXTA_NOTE,
  104. EMER_PLAN_SAME_APPR,
  105. EMER_PLAN_SAME_APPR_NOTE,
  106. EMER_PLAN_SAME_PERT,
  107. EMER_PLAN_SAME_PERT_NOTE,
  108. EMER_PLAN_SAME_EME,
  109. EMER_PLAN_SAME_EME_NOTE,
  110. EMER_PLAN_SAME_SPEED,
  111. IF_FSLTDZ,
  112. IF_FSLTDZ_RUN,
  113. IF_FSLTDZ_NO,
  114. MNGRN_ID,
  115. RGSTR_ID,
  116. SAFE_COMMONT_NOTE,
  117. SAFE_COMMENT,
  118. RETAIN_REGULAR,
  119. HAS_RETAIN_REGULAR,
  120. WD_EMNIC,
  121. HAS_WD_EMNIC,
  122. MANAGE_PERS_NOTE,
  123. HAS_MANAGE_PERS,
  124. SPE_MANAGE_NOTE,
  125. HAS_SPE_MANAGE,
  126. NO_RETAIN_REGULAR_NOTE,
  127. NO_RETAIN_REGULAR,
  128. CAN_NOT_RETAIN_WATER_NOTE,
  129. CAN_NOT_RETAIN_WATER,
  130. DIKE_HAS_LEAK_NOTE,
  131. DIKE_HAS_LEAK,
  132. LEAK_MAKE_SAFE_NOTE,
  133. LEAK_MAKE_SAFE,
  134. HAS_ASTABLE,
  135. ASTABLE_DESC,
  136. SET_MAIN_FL_NOTE,
  137. HAS_SET_MAIN_FL,
  138. MAIN_FL_NORMAL_NOTE,
  139. IS_MAIN_FL_NORMAL,
  140. HAS_SET_WAGA,
  141. IS_WAGA_OPEN_NORMAL,
  142. WAGA_DANG_DESC,
  143. NOT_SET_WAGA_REASON,
  144. SET_PORR_FL_NOTE,
  145. HAS_SET_POUR_FL,
  146. POUR_FY_NORMAL_NOTE,
  147. POUR_FY_IS_NORMAL,
  148. HAS_SET_POUR_WAGA,
  149. IS_POUR_WAGA_OPEN_NORMAL,
  150. POUR_WAGA_DANG_DESC,
  151. CAN_NOT_SET_FY,
  152. FL_LOW_LIM_LEV_NOTE,
  153. HAV_FL_LOW_LIM_LEV,
  154. GT_FL_LOW_LIM_LEV_NOTE,
  155. GT_FL_LOW_LIM_LEV,
  156. GT_FL_LOW_LIM_LEV_DESC,
  157. DAM_SAFE_APPR_NOTE,
  158. EXT_DAM_SAFE_APPR,
  159. NEAR_DAM_SAFE_APPR_TIME,
  160. NEAT_DAM_SAFE_APPR_RES,
  161. DAM_SAFE_APPR_REQUIRE,
  162. NO_DAM_SAFE_APPR_RESON,
  163. REIN_FORCE_NOTE,
  164. IF_REIN_FORCE,
  165. REIN_FORCE_TIME,
  166. IF_COMPLATE_ACC,
  167. ACC_DATE,
  168. IF_COMPLATE_ACC_ALL,
  169. COMPLATE_ACC_ALL_DESC,
  170. EFFECT_FLOOD_SAFE,
  171. NO_REIN_FORCE_RESON,
  172. ACC_HAVE_DANG_NOW,
  173. ACC_HAVE_DANG_DESC,
  174. IF_WATER_LESSOR,
  175. WATER_LESSOR_EFFECT_FL,
  176. WATER_LESSOR_EFFECT_FL_RESON,
  177. MANAGE_REG_REL_NOTE,
  178. IF_MANAGE_REG_REL,
  179. MANAGE_REG_NOTE,
  180. IF_MANAGE_REG,
  181. DAM_WARN_LOGO_NOTE,
  182. IF_DAM_WARN_LOGO,
  183. OTHER_EFFECT_RESON,
  184. REC_PERS_ID,
  185. REC_PERS2,
  186. REC_PERS_TEL,
  187. CREATE_TIME,
  188. UPDATE_TIME,
  189. STATUS,POOR_COUNTRY,REVER_ORG,REVER_ORG_NAME
  190. </sql>
  191. <sql id="entity_properties">
  192. #{isHasMangPers},
  193. #{isClean},
  194. #{emerPlanSameExta},
  195. #{emerPlanSameExtaNote},
  196. #{emerPlanSameAppr},
  197. #{emerPlanSameApprNote},
  198. #{emerPlanSamePert},
  199. #{emerPlanSamePertNote},
  200. #{emerPlanSameEme},
  201. #{emerPlanSameEmeNote},
  202. #{emerPlanSameSpeed},
  203. #{ifFsltdz},
  204. #{ifFsltdzRun},
  205. #{ifFsltdzNo},
  206. #{mngrnId},
  207. #{rgstrId},
  208. #{safeCommontNote},
  209. #{safeComment},
  210. #{retainRegular},
  211. #{hasRetainRegular},
  212. #{wdEmnic},
  213. #{hasWdEmnic},
  214. #{managePersNote},
  215. #{hasManagePers},
  216. #{speManageNote},
  217. #{hasSpeManage},
  218. #{noRetainRegularNote},
  219. #{noRetainRegular},
  220. #{canNotRetainWaterNote},
  221. #{canNotRetainWater},
  222. #{dikeHasLeakNote},
  223. #{dikeHasLeak},
  224. #{leakMakeSafeNote},
  225. #{leakMakeSafe},
  226. #{hasAstable},
  227. #{astableDesc},
  228. #{setMainFlNote},
  229. #{hasSetMainFl},
  230. #{mainFlNormalNote},
  231. #{isMainFlNormal},
  232. #{hasSetWaga},
  233. #{isWagaOpenNormal},
  234. #{wagaDangDesc},
  235. #{notSetWagaReason},
  236. #{setPorrFlNote},
  237. #{hasSetPourFl},
  238. #{pourFyNormalNote},
  239. #{pourFyIsNormal},
  240. #{hasSetPourWaga},
  241. #{isPourWagaOpenNormal},
  242. #{pourWagaDangDesc},
  243. #{canNotSetFy},
  244. #{flLowLimLevNote},
  245. #{havFlLowLimLev},
  246. #{gtFlLowLimLevNote},
  247. #{gtFlLowLimLev},
  248. #{gtFlLowLimLevDesc},
  249. #{damSafeApprNote},
  250. #{extDamSafeAppr},
  251. #{nearDamSafeApprTime},
  252. #{neatDamSafeApprRes},
  253. #{damSafeApprRequire},
  254. #{noDamSafeApprReson},
  255. #{reinForceNote},
  256. #{ifReinForce},
  257. #{reinForceTime},
  258. #{ifComplateAcc},
  259. #{accDate},
  260. #{ifComplateAccAll},
  261. #{complateAccAllDesc},
  262. #{effectFloodSafe},
  263. #{noReinForceReson},
  264. #{accHaveDangNow},
  265. #{accHaveDangDesc},
  266. #{ifWaterLessor},
  267. #{waterLessorEffectFl},
  268. #{waterLessorEffectFlReson},
  269. #{manageRegRelNote},
  270. #{ifManageRegRel},
  271. #{manageRegNote},
  272. #{ifManageReg},
  273. #{damWarnLogoNote},
  274. #{ifDamWarnLogo},
  275. #{otherEffectReson},
  276. #{recPersId},
  277. #{recPers2},
  278. #{recPersTel},
  279. #{createTime},
  280. #{updateTime},
  281. #{status},#{poorCountry},#{reverOrg},#{reverOrgName}
  282. </sql>
  283. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  284. <sql id="page_where">
  285. <trim prefix="where" prefixOverrides="and | or ">
  286. <if test="isHasMangPers != null and isHasMangPers != ''">and IS_HAS_MANG_PERS =
  287. #{isHasMangPers}
  288. </if>
  289. <if test="isClean != null and isClean != ''">and IS_CLEAN =
  290. #{isClean}
  291. </if>
  292. <if test="emerPlanSameExta != null and emerPlanSameExta != ''">and EMER_PLAN_SAME_EXTA =
  293. #{emerPlanSameExta}
  294. </if>
  295. <if test="emerPlanSameExtaNote != null and emerPlanSameExtaNote != ''">and EMER_PLAN_SAME_EXTA_NOTE =
  296. #{emerPlanSameExtaNote}
  297. </if>
  298. <if test="emerPlanSameAppr != null and emerPlanSameAppr != ''">and EMER_PLAN_SAME_APPR =
  299. #{emerPlanSameAppr}
  300. </if>
  301. <if test="emerPlanSameApprNote != null and emerPlanSameApprNote != ''">and EMER_PLAN_SAME_APPR_NOTE =
  302. #{emerPlanSameApprNote}
  303. </if>
  304. <if test="emerPlanSamePert != null and emerPlanSamePert != ''">and EMER_PLAN_SAME_PERT =
  305. #{emerPlanSamePert}
  306. </if>
  307. <if test="emerPlanSamePertNote != null and emerPlanSamePertNote != ''">and EMER_PLAN_SAME_PERT_NOTE =
  308. #{emerPlanSamePertNote}
  309. </if>
  310. <if test="emerPlanSameEme != null and emerPlanSameEme != ''">and EMER_PLAN_SAME_EME = #{emerPlanSameEme}
  311. </if>
  312. <if test="emerPlanSameEmeNote != null and emerPlanSameEmeNote != ''">and EMER_PLAN_SAME_EME_NOTE =
  313. #{emerPlanSameEmeNote}
  314. </if>
  315. <if test="emerPlanSameSpeed != null and emerPlanSameSpeed != ''">and EMER_PLAN_SAME_SPEED =
  316. #{emerPlanSameSpeed}
  317. </if>
  318. <if test="ifFsltdz != null and ifFsltdz != ''">and IF_FSLTDZ = #{ifFsltdz}</if>
  319. <if test="ifFsltdzRun != null and ifFsltdzRun != ''">and IF_FSLTDZ_RUN = #{ifFsltdzRun}</if>
  320. <if test="ifFsltdzNo != null and ifFsltdzNo != ''">and IF_FSLTDZ_NO = #{ifFsltdzNo}</if>
  321. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  322. <if test="safeCommontNote != null and safeCommontNote != ''">and SAFE_COMMONT_NOTE = #{safeCommontNote}</if>
  323. <if test="safeComment != null and safeComment != ''">and SAFE_COMMENT = #{safeComment}</if>
  324. <if test="retainRegular != null and retainRegular != ''">and RETAIN_REGULAR = #{retainRegular}</if>
  325. <if test="hasRetainRegular != null and hasRetainRegular != ''">and HAS_RETAIN_REGULAR =
  326. #{hasRetainRegular}
  327. </if>
  328. <if test="wdEmnic != null and wdEmnic != ''">and WD_EMNIC = #{wdEmnic}</if>
  329. <if test="hasWdEmnic != null and hasWdEmnic != ''">and HAS_WD_EMNIC = #{hasWdEmnic}</if>
  330. <if test="managePersNote != null and managePersNote != ''">and MANAGE_PERS_NOTE = #{managePersNote}</if>
  331. <if test="hasManagePers != null and hasManagePers != ''">and HAS_MANAGE_PERS = #{hasManagePers}</if>
  332. <if test="speManageNote != null and speManageNote != ''">and SPE_MANAGE_NOTE = #{speManageNote}</if>
  333. <if test="hasSpeManage != null and hasSpeManage != ''">and HAS_SPE_MANAGE = #{hasSpeManage}</if>
  334. <if test="noRetainRegularNote != null and noRetainRegularNote != ''">and NO_RETAIN_REGULAR_NOTE =
  335. #{noRetainRegularNote}
  336. </if>
  337. <if test="noRetainRegular != null and noRetainRegular != ''">and NO_RETAIN_REGULAR = #{noRetainRegular}</if>
  338. <if test="canNotRetainWaterNote != null and canNotRetainWaterNote != ''">and CAN_NOT_RETAIN_WATER_NOTE =
  339. #{canNotRetainWaterNote}
  340. </if>
  341. <if test="canNotRetainWater != null and canNotRetainWater != ''">and CAN_NOT_RETAIN_WATER =
  342. #{canNotRetainWater}
  343. </if>
  344. <if test="dikeHasLeakNote != null and dikeHasLeakNote != ''">and DIKE_HAS_LEAK_NOTE = #{dikeHasLeakNote}
  345. </if>
  346. <if test="dikeHasLeak != null and dikeHasLeak != ''">and DIKE_HAS_LEAK = #{dikeHasLeak}</if>
  347. <if test="leakMakeSafeNote != null and leakMakeSafeNote != ''">and LEAK_MAKE_SAFE_NOTE =
  348. #{leakMakeSafeNote}
  349. </if>
  350. <if test="leakMakeSafe != null and leakMakeSafe != ''">and LEAK_MAKE_SAFE = #{leakMakeSafe}</if>
  351. <if test="hasAstable != null and hasAstable != ''">and HAS_ASTABLE = #{hasAstable}</if>
  352. <if test="astableDesc != null and astableDesc != ''">and ASTABLE_DESC = #{astableDesc}</if>
  353. <if test="setMainFlNote != null and setMainFlNote != ''">and SET_MAIN_FL_NOTE = #{setMainFlNote}</if>
  354. <if test="hasSetMainFl != null and hasSetMainFl != ''">and HAS_SET_MAIN_FL = #{hasSetMainFl}</if>
  355. <if test="mainFlNormalNote != null and mainFlNormalNote != ''">and MAIN_FL_NORMAL_NOTE =
  356. #{mainFlNormalNote}
  357. </if>
  358. <if test="isMainFlNormal != null and isMainFlNormal != ''">and IS_MAIN_FL_NORMAL = #{isMainFlNormal}</if>
  359. <if test="hasSetWaga != null and hasSetWaga != ''">and HAS_SET_WAGA = #{hasSetWaga}</if>
  360. <if test="isWagaOpenNormal != null and isWagaOpenNormal != ''">and IS_WAGA_OPEN_NORMAL =
  361. #{isWagaOpenNormal}
  362. </if>
  363. <if test="wagaDangDesc != null and wagaDangDesc != ''">and WAGA_DANG_DESC = #{wagaDangDesc}</if>
  364. <if test="notSetWagaReason != null and notSetWagaReason != ''">and NOT_SET_WAGA_REASON =
  365. #{notSetWagaReason}
  366. </if>
  367. <if test="setPorrFlNote != null and setPorrFlNote != ''">and SET_PORR_FL_NOTE = #{setPorrFlNote}</if>
  368. <if test="hasSetPourFl != null and hasSetPourFl != ''">and HAS_SET_POUR_FL = #{hasSetPourFl}</if>
  369. <if test="pourFyNormalNote != null and pourFyNormalNote != ''">and POUR_FY_NORMAL_NOTE =
  370. #{pourFyNormalNote}
  371. </if>
  372. <if test="pourFyIsNormal != null and pourFyIsNormal != ''">and POUR_FY_IS_NORMAL = #{pourFyIsNormal}</if>
  373. <if test="hasSetPourWaga != null and hasSetPourWaga != ''">and HAS_SET_POUR_WAGA = #{hasSetPourWaga}</if>
  374. <if test="isPourWagaOpenNormal != null and isPourWagaOpenNormal != ''">and IS_POUR_WAGA_OPEN_NORMAL =
  375. #{isPourWagaOpenNormal}
  376. </if>
  377. <if test="pourWagaDangDesc != null and pourWagaDangDesc != ''">and POUR_WAGA_DANG_DESC =
  378. #{pourWagaDangDesc}
  379. </if>
  380. <if test="canNotSetFy != null and canNotSetFy != ''">and CAN_NOT_SET_FY = #{canNotSetFy}</if>
  381. <if test="flLowLimLevNote != null and flLowLimLevNote != ''">and FL_LOW_LIM_LEV_NOTE = #{flLowLimLevNote}
  382. </if>
  383. <if test="havFlLowLimLev != null and havFlLowLimLev != ''">and HAV_FL_LOW_LIM_LEV = #{havFlLowLimLev}</if>
  384. <if test="gtFlLowLimLevNote != null and gtFlLowLimLevNote != ''">and GT_FL_LOW_LIM_LEV_NOTE =
  385. #{gtFlLowLimLevNote}
  386. </if>
  387. <if test="gtFlLowLimLev != null and gtFlLowLimLev != ''">and GT_FL_LOW_LIM_LEV = #{gtFlLowLimLev}</if>
  388. <if test="gtFlLowLimLevDesc != null and gtFlLowLimLevDesc != ''">and GT_FL_LOW_LIM_LEV_DESC =
  389. #{gtFlLowLimLevDesc}
  390. </if>
  391. <if test="damSafeApprNote != null and damSafeApprNote != ''">and DAM_SAFE_APPR_NOTE = #{damSafeApprNote}
  392. </if>
  393. <if test="extDamSafeAppr != null and extDamSafeAppr != ''">and EXT_DAM_SAFE_APPR = #{extDamSafeAppr}</if>
  394. <if test="nearDamSafeApprTime != null">and NEAR_DAM_SAFE_APPR_TIME = #{nearDamSafeApprTime}</if>
  395. <if test="neatDamSafeApprRes != null and neatDamSafeApprRes != ''">and NEAT_DAM_SAFE_APPR_RES =
  396. #{neatDamSafeApprRes}
  397. </if>
  398. <if test="damSafeApprRequire != null and damSafeApprRequire != ''">and DAM_SAFE_APPR_REQUIRE =
  399. #{damSafeApprRequire}
  400. </if>
  401. <if test="noDamSafeApprReson != null and noDamSafeApprReson != ''">and NO_DAM_SAFE_APPR_RESON =
  402. #{noDamSafeApprReson}
  403. </if>
  404. <if test="reinForceNote != null and reinForceNote != ''">and REIN_FORCE_NOTE = #{reinForceNote}</if>
  405. <if test="ifReinForce != null and ifReinForce != ''">and IF_REIN_FORCE = #{ifReinForce}</if>
  406. <if test="reinForceTime != null and reinForceTime != ''">and REIN_FORCE_TIME = #{reinForceTime}</if>
  407. <if test="ifComplateAcc != null and ifComplateAcc != ''">and IF_COMPLATE_ACC = #{ifComplateAcc}</if>
  408. <if test="accDate != null">and ACC_DATE = #{accDate}</if>
  409. <if test="ifComplateAccAll != null and ifComplateAccAll != ''">and IF_COMPLATE_ACC_ALL =
  410. #{ifComplateAccAll}
  411. </if>
  412. <if test="complateAccAllDesc != null and complateAccAllDesc != ''">and COMPLATE_ACC_ALL_DESC =
  413. #{complateAccAllDesc}
  414. </if>
  415. <if test="effectFloodSafe != null and effectFloodSafe != ''">and EFFECT_FLOOD_SAFE = #{effectFloodSafe}</if>
  416. <if test="noReinForceReson != null and noReinForceReson != ''">and NO_REIN_FORCE_RESON =
  417. #{noReinForceReson}
  418. </if>
  419. <if test="accHaveDangNow != null and accHaveDangNow != ''">and ACC_HAVE_DANG_NOW = #{accHaveDangNow}</if>
  420. <if test="accHaveDangDesc != null and accHaveDangDesc != ''">and ACC_HAVE_DANG_DESC = #{accHaveDangDesc}
  421. </if>
  422. <if test="ifWaterLessor != null and ifWaterLessor != ''">and IF_WATER_LESSOR = #{ifWaterLessor}</if>
  423. <if test="waterLessorEffectFl != null and waterLessorEffectFl != ''">and WATER_LESSOR_EFFECT_FL =
  424. #{waterLessorEffectFl}
  425. </if>
  426. <if test="waterLessorEffectFlReson != null and waterLessorEffectFlReson != ''">and
  427. WATER_LESSOR_EFFECT_FL_RESON = #{waterLessorEffectFlReson}
  428. </if>
  429. <if test="manageRegRelNote != null and manageRegRelNote != ''">and MANAGE_REG_REL_NOTE =
  430. #{manageRegRelNote}
  431. </if>
  432. <if test="ifManageRegRel != null and ifManageRegRel != ''">and IF_MANAGE_REG_REL = #{ifManageRegRel}</if>
  433. <if test="manageRegNote != null and manageRegNote != ''">and MANAGE_REG_NOTE = #{manageRegNote}</if>
  434. <if test="ifManageReg != null and ifManageReg != ''">and IF_MANAGE_REG = #{ifManageReg}</if>
  435. <if test="damWarnLogoNote != null and damWarnLogoNote != ''">and DAM_WARN_LOGO_NOTE = #{damWarnLogoNote}
  436. </if>
  437. <if test="ifDamWarnLogo != null and ifDamWarnLogo != ''">and IF_DAM_WARN_LOGO = #{ifDamWarnLogo}</if>
  438. <if test="otherEffectReson != null and otherEffectReson != ''">and OTHER_EFFECT_RESON =
  439. #{otherEffectReson}
  440. </if>
  441. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  442. <if test="recPers2 != null and recPers2 != ''">and REC_PERS2 = #{recPers2}</if>
  443. <if test="recPersTel != null and recPersTel != ''">and REC_PERS_TEL = #{recPersTel}</if>
  444. <if test="createTime != null">and CREATE_TIME = #{createTime}</if>
  445. <if test="updateTime != null">and UPDATE_TIME = #{updateTime}</if>
  446. <if test="status != null and status != ''">and STATUS = #{status}</if>
  447. <if test="poorCountry != null and poorCountry != ''">and POOR_COUNTRY = #{poorCountry}</if>
  448. <if test="reverOrg != null and reverOrg != ''">and REVER_ORG = #{reverOrg}</if>
  449. <if test="reverOrgName != null and reverOrgName != ''">and REVER_ORG_NAME = #{reverOrgName}</if>
  450. </trim>
  451. </sql>
  452. <select id="get" resultMap="bisInspSafeExtManageResultMap" parameterType="String">
  453. select
  454. <include refid="table_columns"/>
  455. from bis_insp_safe_ext_manage where MNGRN_ID = #{id}
  456. </select>
  457. <select id="getBy" resultMap="bisInspSafeExtManageResultMap">
  458. select
  459. <include refid="table_columns"/>
  460. from BIS_INSP_SAFE_EXT_MANAGE
  461. <include refid="page_where"/>
  462. </select>
  463. <select id="getSafeExtApp" resultType="cn.com.goldenwater.dcproj.model.BisInspSafeExtApp">
  464. select
  465. <include refid="table_columns"/>
  466. from BIS_INSP_SAFE_EXT_MANAGE where MNGRN_ID = #{id}
  467. </select>
  468. <select id="findAll" resultMap="bisInspSafeExtManageResultMap">
  469. select
  470. <include refid="table_columns"/>
  471. from BIS_INSP_SAFE_EXT_MANAGE
  472. </select>
  473. <select id="findList" resultMap="bisInspSafeExtManageResultMap">
  474. select
  475. <include refid="table_columns"/>
  476. from BIS_INSP_SAFE_EXT_MANAGE
  477. <include refid="page_where"/>
  478. </select>
  479. <select id="selectNewCount" resultType="int">
  480. select count(*) as total from BIS_INSP_SAFE_EXT_MANAGE
  481. </select>
  482. <select id="findRsvrProjectList" resultMap="bisInspSafeExtManageResultMap">
  483. select * from (select
  484. <include refid="table_columns"/>
  485. from BIS_INSP_SAFE_EXT_MANAGE where 1=1
  486. <if test="updateTime != null">and UPDATE_TIME &gt;=
  487. str_to_date(#{updateTime},'%Y-%m-%d %H:%i:%S')
  488. </if>
  489. order by update_time asc ) w limit #{pageNum}
  490. </select>
  491. <select id="selectCount" resultType="int">
  492. select count(ID) from BIS_INSP_SAFE_EXT_MANAGE
  493. <include refid="page_where"/>
  494. </select>
  495. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspSafeExtManage">
  496. insert into BIS_INSP_SAFE_EXT_MANAGE(
  497. <include refid="table_columns"/>
  498. )
  499. values (
  500. <include refid="entity_properties"/>
  501. )
  502. </insert>
  503. <delete id="delete" parameterType="java.lang.String">
  504. delete from bis_insp_safe_ext_manage where MNGRN_ID = #{id}
  505. </delete>
  506. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSafeExtManage">
  507. delete from BIS_INSP_SAFE_EXT_MANAGE
  508. <include refid="page_where"/>
  509. </delete>
  510. <update id="deleteInFlag" parameterType="java.lang.String">
  511. update BIS_INSP_SAFE_EXT_MANAGE set flag_valid = 0 where ID = #{id}
  512. </update>
  513. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspSafeExtManage">
  514. update BIS_INSP_SAFE_EXT_MANAGE
  515. <trim prefix="set" suffixOverrides=",">
  516. <if test="isHasMangPers != null and isHasMangPers != ''">IS_HAS_MANG_PERS =
  517. #{isHasMangPers},
  518. </if>
  519. <if test="isClean != null and isClean != ''">IS_CLEAN =
  520. #{isClean},
  521. </if>
  522. <if test="emerPlanSameExta != null and emerPlanSameExta != ''">EMER_PLAN_SAME_EXTA = #{emerPlanSameExta},
  523. </if>
  524. <if test="emerPlanSameExtaNote != null and emerPlanSameExtaNote != ''">EMER_PLAN_SAME_EXTA_NOTE =
  525. #{emerPlanSameExtaNote},
  526. </if>
  527. <if test="emerPlanSameAppr != null and emerPlanSameAppr != ''">EMER_PLAN_SAME_APPR = #{emerPlanSameAppr},
  528. </if>
  529. <if test="emerPlanSameApprNote != null and emerPlanSameApprNote != ''">EMER_PLAN_SAME_APPR_NOTE =
  530. #{emerPlanSameApprNote},
  531. </if>
  532. <if test="emerPlanSamePert != null and emerPlanSamePert != ''">EMER_PLAN_SAME_PERT = #{emerPlanSamePert},
  533. </if>
  534. <if test="emerPlanSamePertNote != null and emerPlanSamePertNote != ''">EMER_PLAN_SAME_PERT_NOTE =
  535. #{emerPlanSamePertNote},
  536. </if>
  537. <if test="emerPlanSameEme != null and emerPlanSameEme != ''">EMER_PLAN_SAME_EME = #{emerPlanSameEme},</if>
  538. <if test="emerPlanSameEmeNote != null and emerPlanSameEmeNote != ''">EMER_PLAN_SAME_EME_NOTE =
  539. #{emerPlanSameEmeNote},
  540. </if>
  541. <if test="emerPlanSameSpeed != null and emerPlanSameSpeed != ''">EMER_PLAN_SAME_SPEED =
  542. #{emerPlanSameSpeed},
  543. </if>
  544. <if test="ifFsltdz != null and ifFsltdz != ''">IF_FSLTDZ = #{ifFsltdz},</if>
  545. <if test="ifFsltdzRun != null and ifFsltdzRun != ''">IF_FSLTDZ_RUN = #{ifFsltdzRun},</if>
  546. <if test="ifFsltdzNo != null and ifFsltdzNo != ''">IF_FSLTDZ_NO = #{ifFsltdzNo},</if>
  547. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  548. <if test="safeCommontNote != null and safeCommontNote != ''">SAFE_COMMONT_NOTE = #{safeCommontNote},</if>
  549. <if test="safeComment != null and safeComment != ''">SAFE_COMMENT = #{safeComment},</if>
  550. <if test="retainRegular != null and retainRegular != ''">RETAIN_REGULAR = #{retainRegular},</if>
  551. <if test="hasRetainRegular != null and hasRetainRegular != ''">HAS_RETAIN_REGULAR = #{hasRetainRegular},
  552. </if>
  553. <if test="wdEmnic != null and wdEmnic != ''">WD_EMNIC = #{wdEmnic},</if>
  554. <if test="hasWdEmnic != null and hasWdEmnic != ''">HAS_WD_EMNIC = #{hasWdEmnic},</if>
  555. <if test="managePersNote != null and managePersNote != ''">MANAGE_PERS_NOTE = #{managePersNote},</if>
  556. <if test="hasManagePers != null and hasManagePers != ''">HAS_MANAGE_PERS = #{hasManagePers},</if>
  557. <if test="speManageNote != null and speManageNote != ''">SPE_MANAGE_NOTE = #{speManageNote},</if>
  558. <if test="hasSpeManage != null and hasSpeManage != ''">HAS_SPE_MANAGE = #{hasSpeManage},</if>
  559. <if test="noRetainRegularNote != null and noRetainRegularNote != ''">NO_RETAIN_REGULAR_NOTE =
  560. #{noRetainRegularNote},
  561. </if>
  562. <if test="noRetainRegular != null and noRetainRegular != ''">NO_RETAIN_REGULAR = #{noRetainRegular},</if>
  563. <if test="canNotRetainWaterNote != null and canNotRetainWaterNote != ''">CAN_NOT_RETAIN_WATER_NOTE =
  564. #{canNotRetainWaterNote},
  565. </if>
  566. <if test="canNotRetainWater != null and canNotRetainWater != ''">CAN_NOT_RETAIN_WATER =
  567. #{canNotRetainWater},
  568. </if>
  569. <if test="dikeHasLeakNote != null and dikeHasLeakNote != ''">DIKE_HAS_LEAK_NOTE = #{dikeHasLeakNote},</if>
  570. <if test="dikeHasLeak != null and dikeHasLeak != ''">DIKE_HAS_LEAK = #{dikeHasLeak},</if>
  571. <if test="leakMakeSafeNote != null and leakMakeSafeNote != ''">LEAK_MAKE_SAFE_NOTE = #{leakMakeSafeNote},
  572. </if>
  573. <if test="leakMakeSafe != null and leakMakeSafe != ''">LEAK_MAKE_SAFE = #{leakMakeSafe},</if>
  574. <if test="hasAstable != null and hasAstable != ''">HAS_ASTABLE = #{hasAstable},</if>
  575. <if test="astableDesc != null and astableDesc != ''">ASTABLE_DESC = #{astableDesc},</if>
  576. <if test="setMainFlNote != null and setMainFlNote != ''">SET_MAIN_FL_NOTE = #{setMainFlNote},</if>
  577. <if test="hasSetMainFl != null and hasSetMainFl != ''">HAS_SET_MAIN_FL = #{hasSetMainFl},</if>
  578. <if test="mainFlNormalNote != null and mainFlNormalNote != ''">MAIN_FL_NORMAL_NOTE = #{mainFlNormalNote},
  579. </if>
  580. <if test="isMainFlNormal != null and isMainFlNormal != ''">IS_MAIN_FL_NORMAL = #{isMainFlNormal},</if>
  581. <if test="hasSetWaga != null and hasSetWaga != ''">HAS_SET_WAGA = #{hasSetWaga},</if>
  582. <if test="isWagaOpenNormal != null and isWagaOpenNormal != ''">IS_WAGA_OPEN_NORMAL = #{isWagaOpenNormal},
  583. </if>
  584. <if test="wagaDangDesc != null and wagaDangDesc != ''">WAGA_DANG_DESC = #{wagaDangDesc},</if>
  585. <if test="notSetWagaReason != null and notSetWagaReason != ''">NOT_SET_WAGA_REASON = #{notSetWagaReason},
  586. </if>
  587. <if test="setPorrFlNote != null and setPorrFlNote != ''">SET_PORR_FL_NOTE = #{setPorrFlNote},</if>
  588. <if test="hasSetPourFl != null and hasSetPourFl != ''">HAS_SET_POUR_FL = #{hasSetPourFl},</if>
  589. <if test="pourFyNormalNote != null and pourFyNormalNote != ''">POUR_FY_NORMAL_NOTE = #{pourFyNormalNote},
  590. </if>
  591. <if test="pourFyIsNormal != null and pourFyIsNormal != ''">POUR_FY_IS_NORMAL = #{pourFyIsNormal},</if>
  592. <if test="hasSetPourWaga != null and hasSetPourWaga != ''">HAS_SET_POUR_WAGA = #{hasSetPourWaga},</if>
  593. <if test="isPourWagaOpenNormal != null and isPourWagaOpenNormal != ''">IS_POUR_WAGA_OPEN_NORMAL =
  594. #{isPourWagaOpenNormal},
  595. </if>
  596. <if test="pourWagaDangDesc != null and pourWagaDangDesc != ''">POUR_WAGA_DANG_DESC = #{pourWagaDangDesc},
  597. </if>
  598. <if test="canNotSetFy != null and canNotSetFy != ''">CAN_NOT_SET_FY = #{canNotSetFy},</if>
  599. <if test="flLowLimLevNote != null and flLowLimLevNote != ''">FL_LOW_LIM_LEV_NOTE = #{flLowLimLevNote},</if>
  600. <if test="havFlLowLimLev != null and havFlLowLimLev != ''">HAV_FL_LOW_LIM_LEV = #{havFlLowLimLev},</if>
  601. <if test="gtFlLowLimLevNote != null and gtFlLowLimLevNote != ''">GT_FL_LOW_LIM_LEV_NOTE =
  602. #{gtFlLowLimLevNote},
  603. </if>
  604. <if test="gtFlLowLimLev != null and gtFlLowLimLev != ''">GT_FL_LOW_LIM_LEV = #{gtFlLowLimLev},</if>
  605. <if test="gtFlLowLimLevDesc != null and gtFlLowLimLevDesc != ''">GT_FL_LOW_LIM_LEV_DESC =
  606. #{gtFlLowLimLevDesc},
  607. </if>
  608. <if test="damSafeApprNote != null and damSafeApprNote != ''">DAM_SAFE_APPR_NOTE = #{damSafeApprNote},</if>
  609. <if test="extDamSafeAppr != null and extDamSafeAppr != ''">EXT_DAM_SAFE_APPR = #{extDamSafeAppr},</if>
  610. <if test="nearDamSafeApprTime != null">NEAR_DAM_SAFE_APPR_TIME = #{nearDamSafeApprTime},</if>
  611. <if test="neatDamSafeApprRes != null and neatDamSafeApprRes != ''">NEAT_DAM_SAFE_APPR_RES =
  612. #{neatDamSafeApprRes},
  613. </if>
  614. <if test="damSafeApprRequire != null and damSafeApprRequire != ''">DAM_SAFE_APPR_REQUIRE =
  615. #{damSafeApprRequire},
  616. </if>
  617. <if test="noDamSafeApprReson != null and noDamSafeApprReson != ''">NO_DAM_SAFE_APPR_RESON =
  618. #{noDamSafeApprReson},
  619. </if>
  620. <if test="reinForceNote != null and reinForceNote != ''">REIN_FORCE_NOTE = #{reinForceNote},</if>
  621. <if test="ifReinForce != null and ifReinForce != ''">IF_REIN_FORCE = #{ifReinForce},</if>
  622. <if test="reinForceTime != null and reinForceTime != ''">REIN_FORCE_TIME = #{reinForceTime},</if>
  623. <if test="ifComplateAcc != null and ifComplateAcc != ''">IF_COMPLATE_ACC = #{ifComplateAcc},</if>
  624. <if test="accDate != null">ACC_DATE = #{accDate},</if>
  625. <if test="ifComplateAccAll != null and ifComplateAccAll != ''">IF_COMPLATE_ACC_ALL = #{ifComplateAccAll},
  626. </if>
  627. <if test="complateAccAllDesc != null and complateAccAllDesc != ''">COMPLATE_ACC_ALL_DESC =
  628. #{complateAccAllDesc},
  629. </if>
  630. <if test="effectFloodSafe != null and effectFloodSafe != ''">EFFECT_FLOOD_SAFE = #{effectFloodSafe},</if>
  631. <if test="noReinForceReson != null and noReinForceReson != ''">NO_REIN_FORCE_RESON = #{noReinForceReson},
  632. </if>
  633. <if test="accHaveDangNow != null and accHaveDangNow != ''">ACC_HAVE_DANG_NOW = #{accHaveDangNow},</if>
  634. <if test="accHaveDangDesc != null and accHaveDangDesc != ''">ACC_HAVE_DANG_DESC = #{accHaveDangDesc},</if>
  635. <if test="ifWaterLessor != null and ifWaterLessor != ''">IF_WATER_LESSOR = #{ifWaterLessor},</if>
  636. <if test="waterLessorEffectFl != null and waterLessorEffectFl != ''">WATER_LESSOR_EFFECT_FL =
  637. #{waterLessorEffectFl},
  638. </if>
  639. <if test="waterLessorEffectFlReson != null and waterLessorEffectFlReson != ''">WATER_LESSOR_EFFECT_FL_RESON
  640. = #{waterLessorEffectFlReson},
  641. </if>
  642. <if test="manageRegRelNote != null and manageRegRelNote != ''">MANAGE_REG_REL_NOTE = #{manageRegRelNote},
  643. </if>
  644. <if test="ifManageRegRel != null and ifManageRegRel != ''">IF_MANAGE_REG_REL = #{ifManageRegRel},</if>
  645. <if test="manageRegNote != null and manageRegNote != ''">MANAGE_REG_NOTE = #{manageRegNote},</if>
  646. <if test="ifManageReg != null and ifManageReg != ''">IF_MANAGE_REG = #{ifManageReg},</if>
  647. <if test="damWarnLogoNote != null and damWarnLogoNote != ''">DAM_WARN_LOGO_NOTE = #{damWarnLogoNote},</if>
  648. <if test="ifDamWarnLogo != null and ifDamWarnLogo != ''">IF_DAM_WARN_LOGO = #{ifDamWarnLogo},</if>
  649. <if test="otherEffectReson != null and otherEffectReson != ''">OTHER_EFFECT_RESON = #{otherEffectReson},
  650. </if>
  651. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  652. <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
  653. <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
  654. <if test="createTime != null">CREATE_TIME = #{createTime},</if>
  655. <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
  656. <if test="status != null and status != ''">STATUS = #{status},</if>
  657. <if test="poorCountry != null and poorCountry != ''">POOR_COUNTRY = #{poorCountry},</if>
  658. <if test="reverOrg != null and reverOrg != ''">REVER_ORG = #{reverOrg},</if>
  659. <if test="reverOrgName != null and reverOrgName != ''">REVER_ORG_NAME = #{reverOrgName},</if>
  660. </trim>
  661. <where>MNGRN_ID = #{mngrnId}</where>
  662. </update>
  663. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSafeExtManage">
  664. update BIS_INSP_SAFE_EXT_MANAGE
  665. <trim prefix="set" suffixOverrides=",">
  666. <if test="isHasMangPers != null and isHasMangPers != ''">IS_HAS_MANG_PERS =
  667. #{isHasMangPers},
  668. </if>
  669. <if test="isClean != null and isClean != ''">IS_CLEAN =
  670. #{isClean},
  671. </if>
  672. <if test="emerPlanSameExta != null and emerPlanSameExta != ''">EMER_PLAN_SAME_EXTA = #{emerPlanSameExta},
  673. </if>
  674. <if test="emerPlanSameExtaNote != null and emerPlanSameExtaNote != ''">EMER_PLAN_SAME_EXTA_NOTE =
  675. #{emerPlanSameExtaNote},
  676. </if>
  677. <if test="emerPlanSameAppr != null and emerPlanSameAppr != ''">EMER_PLAN_SAME_APPR = #{emerPlanSameAppr},
  678. </if>
  679. <if test="emerPlanSameApprNote != null and emerPlanSameApprNote != ''">EMER_PLAN_SAME_APPR_NOTE =
  680. #{emerPlanSameApprNote},
  681. </if>
  682. <if test="emerPlanSamePert != null and emerPlanSamePert != ''">EMER_PLAN_SAME_PERT = #{emerPlanSamePert},
  683. </if>
  684. <if test="emerPlanSamePertNote != null and emerPlanSamePertNote != ''">EMER_PLAN_SAME_PERT_NOTE =
  685. #{emerPlanSamePertNote},
  686. </if>
  687. <if test="emerPlanSameEme != null and emerPlanSameEme != ''">EMER_PLAN_SAME_EME = #{emerPlanSameEme},</if>
  688. <if test="emerPlanSameEmeNote != null and emerPlanSameEmeNote != ''">EMER_PLAN_SAME_EME_NOTE =
  689. #{emerPlanSameEmeNote},
  690. </if>
  691. <if test="emerPlanSameSpeed != null and emerPlanSameSpeed != ''">EMER_PLAN_SAME_SPEED =
  692. #{emerPlanSameSpeed},
  693. </if>
  694. <if test="ifFsltdz != null and ifFsltdz != ''">IF_FSLTDZ = #{ifFsltdz},</if>
  695. <if test="ifFsltdzRun != null and ifFsltdzRun != ''">IF_FSLTDZ_RUN = #{ifFsltdzRun},</if>
  696. <if test="ifFsltdzNo != null and ifFsltdzNo != ''">IF_FSLTDZ_NO = #{ifFsltdzNo},</if>
  697. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  698. <if test="safeCommontNote != null and safeCommontNote != ''">SAFE_COMMONT_NOTE = #{safeCommontNote},</if>
  699. <if test="safeComment != null and safeComment != ''">SAFE_COMMENT = #{safeComment},</if>
  700. <if test="retainRegular != null and retainRegular != ''">RETAIN_REGULAR = #{retainRegular},</if>
  701. <if test="hasRetainRegular != null and hasRetainRegular != ''">HAS_RETAIN_REGULAR = #{hasRetainRegular},
  702. </if>
  703. <if test="wdEmnic != null and wdEmnic != ''">WD_EMNIC = #{wdEmnic},</if>
  704. <if test="hasWdEmnic != null and hasWdEmnic != ''">HAS_WD_EMNIC = #{hasWdEmnic},</if>
  705. <if test="managePersNote != null and managePersNote != ''">MANAGE_PERS_NOTE = #{managePersNote},</if>
  706. <if test="hasManagePers != null and hasManagePers != ''">HAS_MANAGE_PERS = #{hasManagePers},</if>
  707. <if test="speManageNote != null and speManageNote != ''">SPE_MANAGE_NOTE = #{speManageNote},</if>
  708. <if test="hasSpeManage != null and hasSpeManage != ''">HAS_SPE_MANAGE = #{hasSpeManage},</if>
  709. <if test="noRetainRegularNote != null and noRetainRegularNote != ''">NO_RETAIN_REGULAR_NOTE =
  710. #{noRetainRegularNote},
  711. </if>
  712. <if test="noRetainRegular != null and noRetainRegular != ''">NO_RETAIN_REGULAR = #{noRetainRegular},</if>
  713. <if test="canNotRetainWaterNote != null and canNotRetainWaterNote != ''">CAN_NOT_RETAIN_WATER_NOTE =
  714. #{canNotRetainWaterNote},
  715. </if>
  716. <if test="canNotRetainWater != null and canNotRetainWater != ''">CAN_NOT_RETAIN_WATER =
  717. #{canNotRetainWater},
  718. </if>
  719. <if test="dikeHasLeakNote != null and dikeHasLeakNote != ''">DIKE_HAS_LEAK_NOTE = #{dikeHasLeakNote},</if>
  720. <if test="dikeHasLeak != null and dikeHasLeak != ''">DIKE_HAS_LEAK = #{dikeHasLeak},</if>
  721. <if test="leakMakeSafeNote != null and leakMakeSafeNote != ''">LEAK_MAKE_SAFE_NOTE = #{leakMakeSafeNote},
  722. </if>
  723. <if test="leakMakeSafe != null and leakMakeSafe != ''">LEAK_MAKE_SAFE = #{leakMakeSafe},</if>
  724. <if test="hasAstable != null and hasAstable != ''">HAS_ASTABLE = #{hasAstable},</if>
  725. <if test="astableDesc != null and astableDesc != ''">ASTABLE_DESC = #{astableDesc},</if>
  726. <if test="setMainFlNote != null and setMainFlNote != ''">SET_MAIN_FL_NOTE = #{setMainFlNote},</if>
  727. <if test="hasSetMainFl != null and hasSetMainFl != ''">HAS_SET_MAIN_FL = #{hasSetMainFl},</if>
  728. <if test="mainFlNormalNote != null and mainFlNormalNote != ''">MAIN_FL_NORMAL_NOTE = #{mainFlNormalNote},
  729. </if>
  730. <if test="isMainFlNormal != null and isMainFlNormal != ''">IS_MAIN_FL_NORMAL = #{isMainFlNormal},</if>
  731. <if test="hasSetWaga != null and hasSetWaga != ''">HAS_SET_WAGA = #{hasSetWaga},</if>
  732. <if test="isWagaOpenNormal != null and isWagaOpenNormal != ''">IS_WAGA_OPEN_NORMAL = #{isWagaOpenNormal},
  733. </if>
  734. <if test="wagaDangDesc != null and wagaDangDesc != ''">WAGA_DANG_DESC = #{wagaDangDesc},</if>
  735. <if test="notSetWagaReason != null and notSetWagaReason != ''">NOT_SET_WAGA_REASON = #{notSetWagaReason},
  736. </if>
  737. <if test="setPorrFlNote != null and setPorrFlNote != ''">SET_PORR_FL_NOTE = #{setPorrFlNote},</if>
  738. <if test="hasSetPourFl != null and hasSetPourFl != ''">HAS_SET_POUR_FL = #{hasSetPourFl},</if>
  739. <if test="pourFyNormalNote != null and pourFyNormalNote != ''">POUR_FY_NORMAL_NOTE = #{pourFyNormalNote},
  740. </if>
  741. <if test="pourFyIsNormal != null and pourFyIsNormal != ''">POUR_FY_IS_NORMAL = #{pourFyIsNormal},</if>
  742. <if test="hasSetPourWaga != null and hasSetPourWaga != ''">HAS_SET_POUR_WAGA = #{hasSetPourWaga},</if>
  743. <if test="isPourWagaOpenNormal != null and isPourWagaOpenNormal != ''">IS_POUR_WAGA_OPEN_NORMAL =
  744. #{isPourWagaOpenNormal},
  745. </if>
  746. <if test="pourWagaDangDesc != null and pourWagaDangDesc != ''">POUR_WAGA_DANG_DESC = #{pourWagaDangDesc},
  747. </if>
  748. <if test="canNotSetFy != null and canNotSetFy != ''">CAN_NOT_SET_FY = #{canNotSetFy},</if>
  749. <if test="flLowLimLevNote != null and flLowLimLevNote != ''">FL_LOW_LIM_LEV_NOTE = #{flLowLimLevNote},</if>
  750. <if test="havFlLowLimLev != null and havFlLowLimLev != ''">HAV_FL_LOW_LIM_LEV = #{havFlLowLimLev},</if>
  751. <if test="gtFlLowLimLevNote != null and gtFlLowLimLevNote != ''">GT_FL_LOW_LIM_LEV_NOTE =
  752. #{gtFlLowLimLevNote},
  753. </if>
  754. <if test="gtFlLowLimLev != null and gtFlLowLimLev != ''">GT_FL_LOW_LIM_LEV = #{gtFlLowLimLev},</if>
  755. <if test="gtFlLowLimLevDesc != null and gtFlLowLimLevDesc != ''">GT_FL_LOW_LIM_LEV_DESC =
  756. #{gtFlLowLimLevDesc},
  757. </if>
  758. <if test="damSafeApprNote != null and damSafeApprNote != ''">DAM_SAFE_APPR_NOTE = #{damSafeApprNote},</if>
  759. <if test="extDamSafeAppr != null and extDamSafeAppr != ''">EXT_DAM_SAFE_APPR = #{extDamSafeAppr},</if>
  760. <if test="nearDamSafeApprTime != null">NEAR_DAM_SAFE_APPR_TIME = #{nearDamSafeApprTime},</if>
  761. <if test="neatDamSafeApprRes != null and neatDamSafeApprRes != ''">NEAT_DAM_SAFE_APPR_RES =
  762. #{neatDamSafeApprRes},
  763. </if>
  764. <if test="damSafeApprRequire != null and damSafeApprRequire != ''">DAM_SAFE_APPR_REQUIRE =
  765. #{damSafeApprRequire},
  766. </if>
  767. <if test="noDamSafeApprReson != null and noDamSafeApprReson != ''">NO_DAM_SAFE_APPR_RESON =
  768. #{noDamSafeApprReson},
  769. </if>
  770. <if test="reinForceNote != null and reinForceNote != ''">REIN_FORCE_NOTE = #{reinForceNote},</if>
  771. <if test="ifReinForce != null and ifReinForce != ''">IF_REIN_FORCE = #{ifReinForce},</if>
  772. <if test="reinForceTime != null and reinForceTime != ''">REIN_FORCE_TIME = #{reinForceTime},</if>
  773. <if test="ifComplateAcc != null and ifComplateAcc != ''">IF_COMPLATE_ACC = #{ifComplateAcc},</if>
  774. <if test="accDate != null">ACC_DATE = #{accDate},</if>
  775. <if test="ifComplateAccAll != null and ifComplateAccAll != ''">IF_COMPLATE_ACC_ALL = #{ifComplateAccAll},
  776. </if>
  777. <if test="complateAccAllDesc != null and complateAccAllDesc != ''">COMPLATE_ACC_ALL_DESC =
  778. #{complateAccAllDesc},
  779. </if>
  780. <if test="effectFloodSafe != null and effectFloodSafe != ''">EFFECT_FLOOD_SAFE = #{effectFloodSafe},</if>
  781. <if test="noReinForceReson != null and noReinForceReson != ''">NO_REIN_FORCE_RESON = #{noReinForceReson},
  782. </if>
  783. <if test="accHaveDangNow != null and accHaveDangNow != ''">ACC_HAVE_DANG_NOW = #{accHaveDangNow},</if>
  784. <if test="accHaveDangDesc != null and accHaveDangDesc != ''">ACC_HAVE_DANG_DESC = #{accHaveDangDesc},</if>
  785. <if test="ifWaterLessor != null and ifWaterLessor != ''">IF_WATER_LESSOR = #{ifWaterLessor},</if>
  786. <if test="waterLessorEffectFl != null and waterLessorEffectFl != ''">WATER_LESSOR_EFFECT_FL =
  787. #{waterLessorEffectFl},
  788. </if>
  789. <if test="waterLessorEffectFlReson != null and waterLessorEffectFlReson != ''">WATER_LESSOR_EFFECT_FL_RESON
  790. = #{waterLessorEffectFlReson},
  791. </if>
  792. <if test="manageRegRelNote != null and manageRegRelNote != ''">MANAGE_REG_REL_NOTE = #{manageRegRelNote},
  793. </if>
  794. <if test="ifManageRegRel != null and ifManageRegRel != ''">IF_MANAGE_REG_REL = #{ifManageRegRel},</if>
  795. <if test="manageRegNote != null and manageRegNote != ''">MANAGE_REG_NOTE = #{manageRegNote},</if>
  796. <if test="ifManageReg != null and ifManageReg != ''">IF_MANAGE_REG = #{ifManageReg},</if>
  797. <if test="damWarnLogoNote != null and damWarnLogoNote != ''">DAM_WARN_LOGO_NOTE = #{damWarnLogoNote},</if>
  798. <if test="ifDamWarnLogo != null and ifDamWarnLogo != ''">IF_DAM_WARN_LOGO = #{ifDamWarnLogo},</if>
  799. <if test="otherEffectReson != null and otherEffectReson != ''">OTHER_EFFECT_RESON = #{otherEffectReson},
  800. </if>
  801. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  802. <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
  803. <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
  804. <if test="createTime != null">CREATE_TIME = #{createTime},</if>
  805. <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
  806. <if test="status != null and status != ''">STATUS = #{status},</if>
  807. <if test="poorCountry != null and poorCountry != ''">POOR_COUNTRY = #{poorCountry},</if>
  808. <if test="reverOrg != null and reverOrg != ''">REVER_ORG = #{reverOrg},</if>
  809. <if test="reverOrgName != null and reverOrgName != ''">REVER_ORG_NAME = #{reverOrgName},</if>
  810. </trim>
  811. <include refid="page_where"/>
  812. </update>
  813. <!-- 其他自定义SQL -->
  814. <!--运行管理情况-->
  815. <update id="updateResRun" parameterType="cn.com.goldenwater.dcproj.model.BisInspSafeExtManage">
  816. update BIS_INSP_SAFE_EXT_MANAGE
  817. <trim prefix="set" suffixOverrides=",">
  818. <!--管理机构及经费情况 是否有管理机构-->
  819. <if test="hasSpeManage != null and hasSpeManage != ''">HAS_SPE_MANAGE = #{hasSpeManage},</if>
  820. <!--管理机构及经费情况 是否有管护人员-->
  821. <if test="isHasMangPers != null and isHasMangPers != ''">IS_HAS_MANG_PERS =#{isHasMangPers},</if>
  822. <!--管理机构及经费情况 是否有稳定经费来源-->
  823. <if test="hasWdEmnic != null and hasWdEmnic != ''">HAS_WD_EMNIC = #{hasWdEmnic},</if>
  824. <!--注册登记情况 是否注册登记-->
  825. <if test="ifManageRegRel != null and ifManageRegRel != ''">IF_MANAGE_REG_REL = #{ifManageRegRel},</if>
  826. <!--注册登记情况 注册登记信息准确情况-->
  827. <if test="ifManageReg != null and ifManageReg != ''">IF_MANAGE_REG = #{ifManageReg},</if>
  828. <!--公示情况 是否设置水库公示牌-->
  829. <if test="ifDamWarnLogo != null and ifDamWarnLogo != ''">IF_DAM_WARN_LOGO = #{ifDamWarnLogo},</if>
  830. <!--坝周情况 坝体周边是否整洁 -->
  831. <if test="isClean != null and isClean != ''">IS_CLEAN =#{isClean},</if>
  832. <!--执行汛限水位情况 是否鉴定为三类坝的水库 -->
  833. <if test="ifFsltdz != null and ifFsltdz != ''">IF_FSLTDZ = #{ifFsltdz},</if>
  834. <!--执行汛限水位情况 不是三类坝 限制/超汛运行 -->
  835. <if test="ifFsltdzNo != null and ifFsltdzNo != ''">IF_FSLTDZ_NO = #{ifFsltdzNo},</if>
  836. <!--执行汛限水位情况 是否采取限制运用措施 -->
  837. <if test="ifFsltdzRun != null and ifFsltdzRun != ''">IF_FSLTDZ_RUN = #{ifFsltdzRun},</if>
  838. </trim>
  839. where MNGRN_ID=#{mngrnId}
  840. </update>
  841. <!--安全运行总体评价-->
  842. <update id="updateDam" parameterType="cn.com.goldenwater.dcproj.model.BisInspSafeExtManage">
  843. update BIS_INSP_SAFE_EXT_MANAGE
  844. <trim prefix="set" suffixOverrides=",">
  845. <!--安全运行总体评价 -->
  846. <if test="safeComment != null and safeComment != ''">SAFE_COMMENT = #{safeComment},</if>
  847. </trim>
  848. where MNGRN_ID=#{mngrnId}
  849. </update>
  850. </mapper>