BisInspRsvrProjectDao.xml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  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.BisInspRsvrProjectDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspRsvrProject" id="bisInspRsvrProjectResultMap">
  5. <result property="ifDamSafe" column="IF_DAM_SAFE"/>
  6. <result property="ifDamSafeReq" column="IF_DAM_SAFE_REQ"/>
  7. <result property="ifDamSafeRul" column="IF_DAM_SAFE_RUL"/>
  8. <result property="ifDamSafeDepRul" column="IF_DAM_SAFE_DEP_RUL"/>
  9. <result property="ifDamSafeThr" column="IF_DAM_SAFE_THR"/>
  10. <result property="ifReinImpGve" column="IF_REIN_IMP_GVE"/>
  11. <result property="ifReinImpPlan" column="IF_REIN_IMP_PLAN"/>
  12. <result property="id" column="ID"/>
  13. <result property="rgstrId" column="RGSTR_ID"/>
  14. <result property="reverOrg" column="REVER_ORG"/>
  15. <result property="reverOrgName" column="REVER_ORG_NAME"/>
  16. <result property="poorCountry" column="POOR_COUNTRY"/>
  17. <result property="waterRunInfo" column="WATER_RUN_INFO"/>
  18. <result property="fsltdzInfo" column="FSLTDZ_INFO"/>
  19. <result property="diskRunInfo" column="DISK_RUN_INFO"/>
  20. <result property="hasSetMainFl" column="HAS_SET_MAIN_FL"/>
  21. <result property="isMainFlNormal" column="IS_MAIN_FL_NORMAL"/>
  22. <result property="hasSetPourFl" column="HAS_SET_POUR_FL"/>
  23. <result property="pourFyIsNormal" column="POUR_FY_IS_NORMAL"/>
  24. <result property="hasExtDamSafeAppr" column="HAS_EXT_DAM_SAFE_APPR"/>
  25. <result property="extDamSafeAppr" column="EXT_DAM_SAFE_APPR"/>
  26. <result property="ifReinForce" column="IF_REIN_FORCE"/>
  27. <result property="reinForceRun" column="REIN_FORCE_RUN"/>
  28. <result property="reinForceRun3" column="REIN_FORCE_RUN3"/>
  29. <result property="reinForceRun2" column="REIN_FORCE_RUN2"/>
  30. <result property="recPersId" column="REC_PERS_ID"/>
  31. <result property="recPers2" column="REC_PERS2"/>
  32. <result property="recPersTel" column="REC_PERS_TEL"/>
  33. <result property="createTime" column="CREATE_TIME"/>
  34. <result property="updateTime" column="UPDATE_TIME"/>
  35. <result property="status" column="STATUS"/>
  36. <result property="notReinForce" column="NOT_REIN_FORCE"/>
  37. <result property="damGrad" column="DAM_GRAD"/>
  38. <result property="safeTm" column="SAFE_TM"/>
  39. <result property="safeDep" column="SAFE_DEP"/>
  40. <result property="ifReinTm" column="IF_REIN_TM"/>
  41. <result property="ifReinDep" column="IF_REIN_DEP"/>
  42. <result property="reinDepNm" column="REIN_DEP_NM"/>
  43. </resultMap>
  44. <sql id="table_columns">
  45. IF_DAM_SAFE,
  46. IF_DAM_SAFE_REQ,
  47. IF_DAM_SAFE_RUL,
  48. IF_DAM_SAFE_DEP_RUL,
  49. IF_DAM_SAFE_THR,
  50. IF_REIN_IMP_GVE,
  51. IF_REIN_IMP_PLAN,
  52. DAM_GRAD,
  53. SAFE_TM,
  54. SAFE_DEP,
  55. IF_REIN_TM,
  56. IF_REIN_DEP,
  57. REIN_DEP_NM,
  58. ID,
  59. RGSTR_ID,
  60. REVER_ORG,
  61. REVER_ORG_NAME,
  62. POOR_COUNTRY,
  63. WATER_RUN_INFO,
  64. FSLTDZ_INFO,
  65. DISK_RUN_INFO,
  66. HAS_SET_MAIN_FL,
  67. IS_MAIN_FL_NORMAL,
  68. HAS_SET_POUR_FL,
  69. POUR_FY_IS_NORMAL,
  70. HAS_EXT_DAM_SAFE_APPR,
  71. EXT_DAM_SAFE_APPR,
  72. IF_REIN_FORCE,
  73. REIN_FORCE_RUN,
  74. REIN_FORCE_RUN2,
  75. REIN_FORCE_RUN3,
  76. REC_PERS_ID,
  77. REC_PERS2,
  78. REC_PERS_TEL,
  79. CREATE_TIME,
  80. UPDATE_TIME,
  81. STATUS,NOT_REIN_FORCE
  82. </sql>
  83. <sql id="entity_properties">
  84. #{ifDamSafe},
  85. #{ifDamSafeReq},
  86. #{ifDamSafeRul},
  87. #{ifDamSafeDepRul},
  88. #{ifDamSafeThr},
  89. #{ifReinImpGve},
  90. #{ifReinImpPlan},
  91. #{damGrad},
  92. #{safeTm},
  93. #{safeDep},
  94. #{ifReinTm},
  95. #{ifReinDep},
  96. #{reinDepNm},
  97. #{id},
  98. #{rgstrId},
  99. #{reverOrg},
  100. #{reverOrgName},
  101. #{poorCountry},
  102. #{waterRunInfo},
  103. #{fsltdzInfo},
  104. #{diskRunInfo},
  105. #{hasSetMainFl},
  106. #{isMainFlNormal},
  107. #{hasSetPourFl},
  108. #{pourFyIsNormal},
  109. #{hasExtDamSafeAppr},
  110. #{extDamSafeAppr},
  111. #{ifReinForce},
  112. #{reinForceRun},
  113. #{reinForceRun2},
  114. #{reinForceRun3},
  115. #{recPersId},
  116. #{recPers2},
  117. #{recPersTel},
  118. #{createTime},
  119. #{updateTime},
  120. #{status},#{notReinForce}
  121. </sql>
  122. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  123. <sql id="page_where">
  124. <trim prefix="where" prefixOverrides="and | or ">
  125. <if test="ifDamSafe != null and ifDamSafe != ''">and IF_DAM_SAFE = #{ifDamSafe}</if>
  126. <if test="ifReinTm != null">and IF_REIN_TM = #{ifReinTm}</if>
  127. <if test="ifReinDep != null and ifReinDep != ''">and IF_REIN_DEP = #{ifReinDep}</if>
  128. <if test="reinDepNm != null and reinDepNm != ''">and REIN_DEP_NM = #{reinDepNm}</if>
  129. <if test="damGrad != null and damGrad != ''">and DAM_GRAD = #{damGrad}</if>
  130. <if test="safeTm != null">and SAFE_TM = #{safeTm}</if>
  131. <if test="safeDep != null and safeDep != ''">and SAFE_DEP = #{safeDep}</if>
  132. <if test="ifDamSafeReq != null and ifDamSafeReq != ''">and IF_DAM_SAFE_REQ = #{ifDamSafeReq}</if>
  133. <if test="ifDamSafeRul != null and ifDamSafeRul != ''">and IF_DAM_SAFE_RUL = #{ifDamSafeRul}</if>
  134. <if test="ifDamSafeDepRul != null and ifDamSafeDepRul != ''">and IF_DAM_SAFE_DEP_RUL = #{ifDamSafeDepRul}
  135. </if>
  136. <if test="ifDamSafeThr != null and ifDamSafeThr != ''">and IF_DAM_SAFE_THR = #{ifDamSafeThr}</if>
  137. <if test="ifReinImpGve != null and ifReinImpGve != ''">and IF_REIN_IMP_GVE = #{ifReinImpGve}</if>
  138. <if test="ifReinImpPlan != null and ifReinImpPlan != ''">and IF_REIN_IMP_PLAN = #{ifReinImpPlan}</if>
  139. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  140. <if test="reverOrg != null and reverOrg != ''">and REVER_ORG = #{reverOrg}</if>
  141. <if test="reverOrgName != null and reverOrgName != ''">and REVER_ORG_NAME = #{reverOrgName}</if>
  142. <if test="poorCountry != null and poorCountry != ''">and POOR_COUNTRY = #{poorCountry}</if>
  143. <if test="waterRunInfo != null and waterRunInfo != ''">and WATER_RUN_INFO = #{waterRunInfo}</if>
  144. <if test="fsltdzInfo != null and fsltdzInfo != ''">and FSLTDZ_INFO = #{fsltdzInfo}</if>
  145. <if test="diskRunInfo != null and diskRunInfo != ''">and DISK_RUN_INFO = #{diskRunInfo}</if>
  146. <if test="hasSetMainFl != null and hasSetMainFl != ''">and HAS_SET_MAIN_FL = #{hasSetMainFl}</if>
  147. <if test="isMainFlNormal != null and isMainFlNormal != ''">and IS_MAIN_FL_NORMAL = #{isMainFlNormal}</if>
  148. <if test="hasSetPourFl != null and hasSetPourFl != ''">and HAS_SET_POUR_FL = #{hasSetPourFl}</if>
  149. <if test="pourFyIsNormal != null and pourFyIsNormal != ''">and POUR_FY_IS_NORMAL = #{pourFyIsNormal}</if>
  150. <if test="hasExtDamSafeAppr != null and hasExtDamSafeAppr != ''">and HAS_EXT_DAM_SAFE_APPR =
  151. #{hasExtDamSafeAppr}
  152. </if>
  153. <if test="extDamSafeAppr != null and extDamSafeAppr != ''">and EXT_DAM_SAFE_APPR = #{extDamSafeAppr}</if>
  154. <if test="ifReinForce != null and ifReinForce != ''">and IF_REIN_FORCE = #{ifReinForce}</if>
  155. <if test="reinForceRun != null and reinForceRun != ''">and REIN_FORCE_RUN = #{reinForceRun}</if>
  156. <if test="reinForceRun2 != null and reinForceRun2 != ''">and REIN_FORCE_RUN2 = #{reinForceRun2}</if>
  157. <if test="reinForceRun3 != null and reinForceRun3 != ''">and REIN_FORCE_RUN3 = #{reinForceRun3}</if>
  158. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  159. <if test="recPers2 != null and recPers2 != ''">and REC_PERS2 = #{recPers2}</if>
  160. <if test="recPersTel != null and recPersTel != ''">and REC_PERS_TEL = #{recPersTel}</if>
  161. <if test="createTime != null">and CREATE_TIME = #{createTime}</if>
  162. <if test="updateTime != null">and UPDATE_TIME = #{updateTime}</if>
  163. <if test="status != null and status != ''">and STATUS = #{status}</if>
  164. <if test="notReinForce != null and notReinForce != ''">and not_Rein_Force = #{notReinForce}</if>
  165. </trim>
  166. </sql>
  167. <select id="get" resultMap="bisInspRsvrProjectResultMap" parameterType="String">
  168. select
  169. <include refid="table_columns"/>
  170. from BIS_INSP_RSVR_PROJECT where ID = #{id}
  171. </select>
  172. <select id="getBy" resultMap="bisInspRsvrProjectResultMap">
  173. select
  174. <include refid="table_columns"/>
  175. from BIS_INSP_RSVR_PROJECT
  176. <include refid="page_where"/>
  177. </select>
  178. <select id="findAll" resultMap="bisInspRsvrProjectResultMap">
  179. select
  180. <include refid="table_columns"/>
  181. from BIS_INSP_RSVR_PROJECT
  182. </select>
  183. <select id="findList" resultMap="bisInspRsvrProjectResultMap">
  184. select
  185. <include refid="table_columns"/>
  186. from BIS_INSP_RSVR_PROJECT
  187. <include refid="page_where"/>
  188. </select>
  189. <select id="selectCount" resultType="int">
  190. select count(ID) from BIS_INSP_RSVR_PROJECT
  191. <include refid="page_where"/>
  192. </select>
  193. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrProject">
  194. insert into BIS_INSP_RSVR_PROJECT(
  195. <include refid="table_columns"/>
  196. )
  197. values (
  198. <include refid="entity_properties"/>
  199. )
  200. </insert>
  201. <delete id="delete" parameterType="java.lang.String">
  202. delete from BIS_INSP_RSVR_PROJECT where ID = #{id}
  203. </delete>
  204. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrProject">
  205. delete from BIS_INSP_RSVR_PROJECT
  206. <include refid="page_where"/>
  207. </delete>
  208. <update id="deleteInFlag" parameterType="java.lang.String">
  209. update BIS_INSP_RSVR_PROJECT set flag_valid = 0 where ID = #{id}
  210. </update>
  211. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrProject">
  212. update BIS_INSP_RSVR_PROJECT
  213. <trim prefix="set" suffixOverrides=",">
  214. <if test="ifReinTm != null">IF_REIN_TM = #{ifReinTm},</if>
  215. <if test="ifReinDep != null and ifReinDep != ''">IF_REIN_DEP = #{ifReinDep},</if>
  216. <if test="reinDepNm != null and reinDepNm != ''">REIN_DEP_NM = #{reinDepNm},</if>
  217. <if test="damGrad != null and damGrad != ''">DAM_GRAD = #{damGrad},</if>
  218. <if test="safeTm != null">SAFE_TM = #{safeTm},</if>
  219. <if test="safeDep != null and safeDep != ''">SAFE_DEP = #{safeDep},</if>
  220. <if test="ifDamSafe != null and ifDamSafe != ''">IF_DAM_SAFE = #{ifDamSafe},</if>
  221. <if test="ifDamSafeReq != null and ifDamSafeReq != ''">IF_DAM_SAFE_REQ = #{ifDamSafeReq},</if>
  222. <if test="ifDamSafeRul != null and ifDamSafeRul != ''">IF_DAM_SAFE_RUL = #{ifDamSafeRul},</if>
  223. <if test="ifDamSafeDepRul != null and ifDamSafeDepRul != ''">IF_DAM_SAFE_DEP_RUL = #{ifDamSafeDepRul},</if>
  224. <if test="ifDamSafeThr != null and ifDamSafeThr != ''">IF_DAM_SAFE_THR = #{ifDamSafeThr},</if>
  225. <if test="ifReinImpGve != null and ifReinImpGve != ''">IF_REIN_IMP_GVE = #{ifReinImpGve},</if>
  226. <if test="ifReinImpPlan != null and ifReinImpPlan != ''">IF_REIN_IMP_PLAN = #{ifReinImpPlan},</if>
  227. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  228. <if test="reverOrg != null and reverOrg != ''">REVER_ORG = #{reverOrg},</if>
  229. <if test="reverOrgName != null and reverOrgName != ''">REVER_ORG_NAME = #{reverOrgName},</if>
  230. <if test="poorCountry != null and poorCountry != ''">POOR_COUNTRY = #{poorCountry},</if>
  231. <if test="waterRunInfo != null and waterRunInfo != ''">WATER_RUN_INFO = #{waterRunInfo},</if>
  232. <if test="fsltdzInfo != null and fsltdzInfo != ''">FSLTDZ_INFO = #{fsltdzInfo},</if>
  233. <if test="diskRunInfo != null and diskRunInfo != ''">DISK_RUN_INFO = #{diskRunInfo},</if>
  234. <if test="hasSetMainFl != null and hasSetMainFl != ''">HAS_SET_MAIN_FL = #{hasSetMainFl},</if>
  235. <if test="isMainFlNormal != null and isMainFlNormal != ''">IS_MAIN_FL_NORMAL = #{isMainFlNormal},</if>
  236. <if test="hasSetPourFl != null and hasSetPourFl != ''">HAS_SET_POUR_FL = #{hasSetPourFl},</if>
  237. <if test="pourFyIsNormal != null and pourFyIsNormal != ''">POUR_FY_IS_NORMAL = #{pourFyIsNormal},</if>
  238. <if test="hasExtDamSafeAppr != null and hasExtDamSafeAppr != ''">HAS_EXT_DAM_SAFE_APPR =
  239. #{hasExtDamSafeAppr},
  240. </if>
  241. <if test="extDamSafeAppr != null and extDamSafeAppr != ''">EXT_DAM_SAFE_APPR = #{extDamSafeAppr},</if>
  242. <if test="ifReinForce != null and ifReinForce != ''">IF_REIN_FORCE = #{ifReinForce},</if>
  243. <if test="reinForceRun != null and reinForceRun != ''">REIN_FORCE_RUN = #{reinForceRun},</if>
  244. <if test="reinForceRun2 != null and reinForceRun2 != ''">REIN_FORCE_RUN2 = #{reinForceRun2},</if>
  245. <if test="reinForceRun3 != null and reinForceRun3 != ''">REIN_FORCE_RUN3 = #{reinForceRun3},</if>
  246. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  247. <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
  248. <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
  249. <if test="createTime != null">CREATE_TIME = #{createTime},</if>
  250. <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
  251. <if test="status != null and status != ''">STATUS = #{status},</if>
  252. <if test="notReinForce != null and notReinForce != ''">not_Rein_Force = #{notReinForce},</if>
  253. </trim>
  254. <where>ID = #{id}</where>
  255. </update>
  256. <update id="updateProject" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrProject">
  257. update BIS_INSP_RSVR_PROJECT
  258. <trim prefix="set" suffixOverrides=",">
  259. <if test="ifReinTm != null">IF_REIN_TM = #{ifReinTm},</if>
  260. <if test="ifReinDep != null and ifReinDep != ''">IF_REIN_DEP = #{ifReinDep},</if>
  261. <if test="reinDepNm != null and reinDepNm != ''">REIN_DEP_NM = #{reinDepNm},</if>
  262. <if test="damGrad != null and damGrad != ''">DAM_GRAD = #{damGrad},</if>
  263. <if test="safeTm != null">SAFE_TM = #{safeTm},</if>
  264. <if test="safeDep != null and safeDep != ''">SAFE_DEP = #{safeDep},</if>
  265. <if test="ifDamSafe != null and ifDamSafe != ''">IF_DAM_SAFE = #{ifDamSafe},</if>
  266. <if test="ifDamSafeReq != null and ifDamSafeReq != ''">IF_DAM_SAFE_REQ = #{ifDamSafeReq},</if>
  267. IF_DAM_SAFE_RUL = #{ifDamSafeRul},
  268. IF_DAM_SAFE_DEP_RUL = #{ifDamSafeDepRul},
  269. IF_DAM_SAFE_THR = #{ifDamSafeThr},
  270. <if test="ifReinImpGve != null and ifReinImpGve != ''">IF_REIN_IMP_GVE = #{ifReinImpGve},</if>
  271. <if test="ifReinImpPlan != null and ifReinImpPlan != ''">IF_REIN_IMP_PLAN = #{ifReinImpPlan},</if>
  272. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  273. <if test="reverOrg != null and reverOrg != ''">REVER_ORG = #{reverOrg},</if>
  274. <if test="reverOrgName != null and reverOrgName != ''">REVER_ORG_NAME = #{reverOrgName},</if>
  275. <if test="poorCountry != null and poorCountry != ''">POOR_COUNTRY = #{poorCountry},</if>
  276. <if test="waterRunInfo != null and waterRunInfo != ''">WATER_RUN_INFO = #{waterRunInfo},</if>
  277. <if test="fsltdzInfo != null and fsltdzInfo != ''">FSLTDZ_INFO = #{fsltdzInfo},</if>
  278. <if test="diskRunInfo != null and diskRunInfo != ''">DISK_RUN_INFO = #{diskRunInfo},</if>
  279. <if test="hasSetMainFl != null and hasSetMainFl != ''">HAS_SET_MAIN_FL = #{hasSetMainFl},</if>
  280. <if test="isMainFlNormal != null and isMainFlNormal != ''">IS_MAIN_FL_NORMAL = #{isMainFlNormal},</if>
  281. <if test="hasSetPourFl != null and hasSetPourFl != ''">HAS_SET_POUR_FL = #{hasSetPourFl},</if>
  282. <if test="pourFyIsNormal != null and pourFyIsNormal != ''">POUR_FY_IS_NORMAL = #{pourFyIsNormal},</if>
  283. <if test="hasExtDamSafeAppr != null and hasExtDamSafeAppr != ''">HAS_EXT_DAM_SAFE_APPR =
  284. #{hasExtDamSafeAppr},
  285. </if>
  286. <if test="extDamSafeAppr != null and extDamSafeAppr != ''">EXT_DAM_SAFE_APPR = #{extDamSafeAppr},</if>
  287. <if test="ifReinForce != null and ifReinForce != ''">IF_REIN_FORCE = #{ifReinForce},</if>
  288. <if test="reinForceRun != null and reinForceRun != ''">REIN_FORCE_RUN = #{reinForceRun},</if>
  289. <if test="reinForceRun2 != null and reinForceRun2 != ''">REIN_FORCE_RUN2 = #{reinForceRun2},</if>
  290. <if test="reinForceRun3 != null and reinForceRun3 != ''">REIN_FORCE_RUN3 = #{reinForceRun3},</if>
  291. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  292. <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
  293. <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
  294. <if test="createTime != null">CREATE_TIME = #{createTime},</if>
  295. <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
  296. <if test="status != null and status != ''">STATUS = #{status},</if>
  297. <if test="notReinForce != null and notReinForce != ''">not_Rein_Force = #{notReinForce},</if>
  298. </trim>
  299. <where>ID = #{id}</where>
  300. </update>
  301. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrProject">
  302. update BIS_INSP_RSVR_PROJECT
  303. <trim prefix="set" suffixOverrides=",">
  304. <if test="ifReinTm != null">IF_REIN_TM = #{ifReinTm},</if>
  305. <if test="ifReinDep != null and ifReinDep != ''">IF_REIN_DEP = #{ifReinDep},</if>
  306. <if test="reinDepNm != null and reinDepNm != ''">REIN_DEP_NM = #{reinDepNm},</if>
  307. <if test="damGrad != null and damGrad != ''">DAM_GRAD = #{damGrad},</if>
  308. <if test="safeTm != null">SAFE_TM = #{safeTm},</if>
  309. <if test="safeDep != null and safeDep != ''">SAFE_DEP = #{safeDep},</if>
  310. <if test="ifDamSafe != null and ifDamSafe != ''">IF_DAM_SAFE = #{ifDamSafe},</if>
  311. <if test="ifDamSafeReq != null and ifDamSafeReq != ''">IF_DAM_SAFE_REQ = #{ifDamSafeReq},</if>
  312. <if test="ifDamSafeRul != null and ifDamSafeRul != ''">IF_DAM_SAFE_RUL = #{ifDamSafeRul},</if>
  313. <if test="ifDamSafeDepRul != null and ifDamSafeDepRul != ''">IF_DAM_SAFE_DEP_RUL = #{ifDamSafeDepRul},</if>
  314. <if test="ifDamSafeThr != null and ifDamSafeThr != ''">IF_DAM_SAFE_THR = #{ifDamSafeThr},</if>
  315. <if test="ifReinImpGve != null and ifReinImpGve != ''">IF_REIN_IMP_GVE = #{ifReinImpGve},</if>
  316. <if test="ifReinImpPlan != null and ifReinImpPlan != ''">IF_REIN_IMP_PLAN = #{ifReinImpPlan},</if>
  317. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  318. <if test="reverOrg != null and reverOrg != ''">REVER_ORG = #{reverOrg},</if>
  319. <if test="reverOrgName != null and reverOrgName != ''">REVER_ORG_NAME = #{reverOrgName},</if>
  320. <if test="poorCountry != null and poorCountry != ''">POOR_COUNTRY = #{poorCountry},</if>
  321. <if test="waterRunInfo != null and waterRunInfo != ''">WATER_RUN_INFO = #{waterRunInfo},</if>
  322. <if test="fsltdzInfo != null and fsltdzInfo != ''">FSLTDZ_INFO = #{fsltdzInfo},</if>
  323. <if test="diskRunInfo != null and diskRunInfo != ''">DISK_RUN_INFO = #{diskRunInfo},</if>
  324. <if test="hasSetMainFl != null and hasSetMainFl != ''">HAS_SET_MAIN_FL = #{hasSetMainFl},</if>
  325. <if test="isMainFlNormal != null and isMainFlNormal != ''">IS_MAIN_FL_NORMAL = #{isMainFlNormal},</if>
  326. <if test="hasSetPourFl != null and hasSetPourFl != ''">HAS_SET_POUR_FL = #{hasSetPourFl},</if>
  327. <if test="pourFyIsNormal != null and pourFyIsNormal != ''">POUR_FY_IS_NORMAL = #{pourFyIsNormal},</if>
  328. <if test="hasExtDamSafeAppr != null and hasExtDamSafeAppr != ''">HAS_EXT_DAM_SAFE_APPR =
  329. #{hasExtDamSafeAppr},
  330. </if>
  331. <if test="extDamSafeAppr != null and extDamSafeAppr != ''">EXT_DAM_SAFE_APPR = #{extDamSafeAppr},</if>
  332. <if test="ifReinForce != null and ifReinForce != ''">IF_REIN_FORCE = #{ifReinForce},</if>
  333. <if test="reinForceRun != null and reinForceRun != ''">REIN_FORCE_RUN = #{reinForceRun},</if>
  334. <if test="reinForceRun2 != null and reinForceRun2 != ''">REIN_FORCE_RUN2 = #{reinForceRun2},</if>
  335. <if test="reinForceRun3 != null and reinForceRun3 != ''">REIN_FORCE_RUN3 = #{reinForceRun3},</if>
  336. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  337. <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
  338. <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
  339. <if test="createTime != null">CREATE_TIME = #{createTime},</if>
  340. <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
  341. <if test="status != null and status != ''">STATUS = #{status},</if>
  342. <if test="notReinForce != null and notReinForce != ''">not_Rein_Force = #{notReinForce},</if>
  343. </trim>
  344. <include refid="page_where"/>
  345. </update>
  346. <!-- 其他自定义SQL -->
  347. <!-- 更新水库工程实体 -->
  348. <update id="updateRever" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrProject">
  349. update BIS_INSP_RSVR_PROJECT
  350. <trim prefix="set" suffixOverrides=",">
  351. <!--水库所属流域-->
  352. <if test="reverOrg != null and reverOrg != ''">REVER_ORG = #{reverOrg},</if>
  353. <!--水库所属流域名称-->
  354. <if test="reverOrgName != null and reverOrgName != ''">REVER_ORG_NAME = #{reverOrgName},</if>
  355. <!--所在县是否为贫困县-->
  356. <if test="poorCountry != null and poorCountry != ''">POOR_COUNTRY = #{poorCountry},</if>
  357. <!--挡水建筑物运行情况 是否正常运行-->
  358. <if test="diskRunInfo != null and diskRunInfo != ''">DISK_RUN_INFO = #{diskRunInfo},</if>
  359. <!--泄洪建筑物运行情况 是否设置泄洪建筑物-->
  360. <if test="hasSetMainFl != null and hasSetMainFl != ''">HAS_SET_MAIN_FL = #{hasSetMainFl},</if>
  361. <!--泄洪建筑物运行情况 泄洪建筑物 运行情况-->
  362. <if test="isMainFlNormal != null and isMainFlNormal != ''">IS_MAIN_FL_NORMAL = #{isMainFlNormal},</if>
  363. <!--放水建筑物运行情况 是否设置放水建筑物-->
  364. <if test="hasSetPourFl != null and hasSetPourFl != ''">HAS_SET_POUR_FL = #{hasSetPourFl},</if>
  365. <!--放水建筑物运行情况 放水建筑物运行情况-->
  366. <if test="pourFyIsNormal != null and pourFyIsNormal != ''">POUR_FY_IS_NORMAL = #{pourFyIsNormal},</if>
  367. </trim>
  368. where id=#{id}
  369. </update>
  370. <!-- 更新 安全鉴定及除险加固情况 -->
  371. <update id="updateRein" parameterType="cn.com.goldenwater.dcproj.model.BisInspRsvrProject">
  372. update BIS_INSP_RSVR_PROJECT
  373. <trim prefix="set" suffixOverrides=",">
  374. <!--大坝安全鉴定开展情况 是否开展 -->
  375. <if test="ifDamSafe != null and ifDamSafe != ''">IF_DAM_SAFE = #{ifDamSafe},</if>
  376. <!--大坝安全鉴定是否按要求开展 -->
  377. <if test="ifDamSafeReq != null and ifDamSafeReq != ''">IF_DAM_SAFE_REQ = #{ifDamSafeReq},</if>
  378. <!--大坝安全鉴定 报告内容是否合规 -->
  379. <if test="ifDamSafeRul != null and ifDamSafeRul != ''">IF_DAM_SAFE_RUL = #{ifDamSafeRul},</if>
  380. <!--大坝安全鉴定 鉴定单位资质是否符合规定 -->
  381. <if test="ifDamSafeDepRul != null and ifDamSafeDepRul != ''">IF_DAM_SAFE_DEP_RUL = #{ifDamSafeDepRul},</if>
  382. <!--大坝安全鉴定 安全鉴定是否被鉴定为三类坝 -->
  383. <if test="ifDamSafeThr != null and ifDamSafeThr != ''">IF_DAM_SAFE_THR = #{ifDamSafeThr},</if>
  384. <!--水库除险加固情况 -->
  385. <if test="ifReinForce != null and ifReinForce != ''">IF_REIN_FORCE = #{ifReinForce},</if>
  386. <!--最近一次除险加固情况 是否按批复内容实施 -->
  387. <if test="reinForceRun != null and reinForceRun != ''">REIN_FORCE_RUN = #{reinForceRun},</if>
  388. <!--最近一次除险加固情况 实施后是否仍有隐患 -->
  389. <if test="reinForceRun2 != null and reinForceRun2 != ''">REIN_FORCE_RUN2 = #{reinForceRun2},</if>
  390. <!--最近一次除险加固情况 是否蓄水验收 -->
  391. <if test="reinForceRun3 != null and reinForceRun3 != ''">REIN_FORCE_RUN3 = #{reinForceRun3},</if>
  392. <!--水库除险加固 正在实施水库情况 是否按批复内容实施 -->
  393. <if test="ifReinImpGve != null and ifReinImpGve != ''">IF_REIN_IMP_GVE = #{ifReinImpGve},</if>
  394. <!--正在实施水库情况 施工是否按期进行 -->
  395. <if test="ifReinImpPlan != null and ifReinImpPlan != ''">IF_REIN_IMP_PLAN = #{ifReinImpPlan},</if>
  396. <!--水库坝型 1二类 2三类(青海)-->
  397. <if test="damGrad != null and damGrad != ''">DAM_GRAD = #{damGrad},</if>
  398. <!--最近安全鉴定时间(青海)-->
  399. <if test="safeTm != null">SAFE_TM = #{safeTm},</if>
  400. <!--近安全鉴定单位(青海)-->
  401. <if test="safeDep != null and safeDep != ''">SAFE_DEP = #{safeDep},</if>
  402. <!--最近一次除险加固时间-->
  403. <if test="ifReinTm != null">IF_REIN_TM = #{ifReinTm},</if>
  404. <!--最近一次除险加固单位-->
  405. <if test="ifReinDep != null and ifReinDep != ''">IF_REIN_DEP = #{ifReinDep},</if>
  406. <!--除险加固情况正在实施单位名称-->
  407. <if test="reinDepNm != null and reinDepNm != ''">REIN_DEP_NM = #{reinDepNm},</if>
  408. </trim>
  409. where id=#{id}
  410. </update>
  411. </mapper>