BisInspSafeExtManageDao.xml 51 KB

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