BisInspRsvrProjectDao.xml 23 KB

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