AttRsBaseFjDao.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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.AttRsBaseFjDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.AttRsBaseFj" id="attRsBaseFjResultMap">
  5. <result property="rsCode" column="RS_CODE"/>
  6. <result property="rsName" column="RS_NAME"/>
  7. <result property="longitude" column="LONGITUDE"/>
  8. <result property="latitude" column="LATITUDE"/>
  9. <result property="location" column="LOCATION"/>
  10. <result property="engScal" column="ENG_SCAL"/>
  11. <result property="limStag" column="LIM_STAG"/>
  12. <result property="totCap" column="TOT_CAP"/>
  13. <result property="rsAdmName" column="RS_ADM_NAME"/>
  14. <result property="rsAdmCode" column="RS_ADM_CODE"/>
  15. <result property="rsAdmDep" column="RS_ADM_DEP"/>
  16. <result property="admAttRel" column="ADM_ATT_REL"/>
  17. <result property="admDiv" column="ADM_DIV"/>
  18. <result property="rsType" column="RS_TYPE"/>
  19. <result property="damTypeMat" column="DAM_TYPE_MAT"/>
  20. <result property="damTypeStr" column="DAM_TYPE_STR"/>
  21. <result property="damSizeHig" column="DAM_SIZE_HIG"/>
  22. <result property="centerX" column="CENTER_X"/>
  23. <result property="centerY" column="CENTER_Y"/>
  24. <result property="src" column="SRC"/>
  25. <result property="dataQuality" column="DATA_QUALITY"/>
  26. <result property="centerXGd" column="CENTER_X_GD"/>
  27. <result property="centerYGd" column="CENTER_Y_GD"/>
  28. <result property="rsLoc" column="RS_LOC"/>
  29. <result property="regCode" column="REG_CODE"/>
  30. <result property="compDate" column="COMP_DATE"/>
  31. <result property="intm" column="INTM"/>
  32. <result property="regNo" column="REG_NO"/>
  33. <result property="hstInsp" column="HST_INSP"/>
  34. <result property="persId" column="PERS_ID"/>
  35. <result property="uptm" column="UPTM"/>
  36. <result property="chkState" column="CHK_STATE"/>
  37. <result property="edtrPesr" column="EDTR_PESR"/>
  38. <result property="slpcAdmDiv" column="SLPC_ADM_DIV"/>
  39. <result property="admDivName" column="ADM_DIV_NAME"/>
  40. <result property="compDateStr" column="COMP_DATE_STR"/>
  41. <result property="displayLevel" column="DISPLAY_LEVEL"/>
  42. <result property="rsClass" column="RS_CLASS"/>
  43. <result property="impdDt" column="IMPD_DT"/>
  44. <result property="rnfcImpdDt" column="RNFC_IMPD_DT"/>
  45. <result property="desFlStag" column="DES_FL_STAG"/>
  46. <result property="flConTopStag" column="FL_CON_TOP_STAG"/>
  47. <result property="wiunWaoLegPers" column="WIUN_WAO_LEG_PERS"/>
  48. <result property="wiunWaoLegPersUnit" column="WIUN_WAO_LEG_PERS_UNIT"/>
  49. <result property="wiunWaoLegPersDuty" column="WIUN_WAO_LEG_PERS_DUTY"/>
  50. <result property="wiunWaoLegPersTel" column="WIUN_WAO_LEG_PERS_TEL"/>
  51. <result property="techPers" column="TECH_PERS"/>
  52. <result property="techPersUnit" column="TECH_PERS_UNIT"/>
  53. <result property="techPersDuty" column="TECH_PERS_DUTY"/>
  54. <result property="techPersTel" column="TECH_PERS_TEL"/>
  55. <result property="patrolPers" column="PATROL_PERS"/>
  56. <result property="patrolPersUnit" column="PATROL_PERS_UNIT"/>
  57. <result property="patrolPersDuty" column="PATROL_PERS_DUTY"/>
  58. <result property="patrolPersTel" column="PATROL_PERS_TEL"/>
  59. <result property="damType" column="DAM_TYPE"/>
  60. </resultMap>
  61. <sql id="table_columns">
  62. RS_CODE,
  63. RS_NAME,
  64. LONGITUDE,
  65. LATITUDE,
  66. LOCATION,
  67. ENG_SCAL,
  68. LIM_STAG,
  69. TOT_CAP,
  70. RS_ADM_NAME,
  71. RS_ADM_CODE,
  72. RS_ADM_DEP,
  73. ADM_ATT_REL,
  74. ADM_DIV,
  75. RS_TYPE,
  76. DAM_TYPE_MAT,
  77. DAM_TYPE_STR,
  78. DAM_SIZE_HIG,
  79. CENTER_X,
  80. CENTER_Y,
  81. SRC,
  82. DATA_QUALITY,
  83. CENTER_X_GD,
  84. CENTER_Y_GD,
  85. RS_LOC,
  86. REG_CODE,
  87. COMP_DATE,
  88. INTM,
  89. REG_NO,
  90. HST_INSP,
  91. PERS_ID,
  92. UPTM,
  93. CHK_STATE,
  94. EDTR_PESR,
  95. SLPC_ADM_DIV,
  96. ADM_DIV_NAME,
  97. COMP_DATE_STR,
  98. DISPLAY_LEVEL,
  99. RS_CLASS,
  100. IMPD_DT,
  101. RNFC_IMPD_DT,
  102. DES_FL_STAG,
  103. FL_CON_TOP_STAG,
  104. WIUN_WAO_LEG_PERS,
  105. WIUN_WAO_LEG_PERS_UNIT,
  106. WIUN_WAO_LEG_PERS_DUTY,
  107. WIUN_WAO_LEG_PERS_TEL,
  108. TECH_PERS,
  109. TECH_PERS_UNIT,
  110. TECH_PERS_DUTY,
  111. TECH_PERS_TEL,
  112. PATROL_PERS,
  113. PATROL_PERS_UNIT,
  114. PATROL_PERS_DUTY,
  115. PATROL_PERS_TEL,
  116. DAM_TYPE
  117. </sql>
  118. <sql id="entity_properties">
  119. #{rsCode},
  120. #{rsName},
  121. #{longitude},
  122. #{latitude},
  123. #{location},
  124. #{engScal},
  125. #{limStag},
  126. #{totCap},
  127. #{rsAdmName},
  128. #{rsAdmCode},
  129. #{rsAdmDep},
  130. #{admAttRel},
  131. #{admDiv},
  132. #{rsType},
  133. #{damTypeMat},
  134. #{damTypeStr},
  135. #{damSizeHig},
  136. #{centerX},
  137. #{centerY},
  138. #{src},
  139. #{dataQuality},
  140. #{centerXGd},
  141. #{centerYGd},
  142. #{rsLoc},
  143. #{regCode},
  144. #{compDate},
  145. #{intm},
  146. #{regNo},
  147. #{hstInsp},
  148. #{persId},
  149. #{uptm},
  150. #{chkState},
  151. #{edtrPesr},
  152. #{slpcAdmDiv},
  153. #{admDivName},
  154. #{compDateStr},
  155. #{displayLevel},
  156. #{rsClass},
  157. #{impdDt},
  158. #{rnfcImpdDt},
  159. #{desFlStag},
  160. #{flConTopStag},
  161. #{wiunWaoLegPers},
  162. #{wiunWaoLegPersUnit},
  163. #{wiunWaoLegPersDuty},
  164. #{wiunWaoLegPersTel},
  165. #{techPers},
  166. #{techPersUnit},
  167. #{techPersDuty},
  168. #{techPersTel},
  169. #{patrolPers},
  170. #{patrolPersUnit},
  171. #{patrolPersDuty},
  172. #{patrolPersTel},
  173. #{damType}
  174. </sql>
  175. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  176. <sql id="page_where">
  177. <trim prefix="where" prefixOverrides="and | or ">
  178. <if test="rsName != null and rsName != ''">and RS_NAME = #{rsName}</if>
  179. <if test="longitude != null and longitude != ''">and LONGITUDE = #{longitude}</if>
  180. <if test="latitude != null and latitude != ''">and LATITUDE = #{latitude}</if>
  181. <if test="location != null and location != ''">and LOCATION = #{location}</if>
  182. <if test="engScal != null and engScal != ''">and ENG_SCAL = #{engScal}</if>
  183. <if test="limStag != null and limStag != ''">and LIM_STAG = #{limStag}</if>
  184. <if test="totCap != null and totCap != ''">and TOT_CAP = #{totCap}</if>
  185. <if test="rsAdmName != null and rsAdmName != ''">and RS_ADM_NAME = #{rsAdmName}</if>
  186. <if test="rsAdmCode != null and rsAdmCode != ''">and RS_ADM_CODE = #{rsAdmCode}</if>
  187. <if test="rsAdmDep != null and rsAdmDep != ''">and RS_ADM_DEP = #{rsAdmDep}</if>
  188. <if test="admAttRel != null and admAttRel != ''">and ADM_ATT_REL = #{admAttRel}</if>
  189. <if test="admDiv != null and admDiv != ''">and ADM_DIV = #{admDiv}</if>
  190. <if test="rsType != null and rsType != ''">and RS_TYPE = #{rsType}</if>
  191. <if test="damTypeMat != null and damTypeMat != ''">and DAM_TYPE_MAT = #{damTypeMat}</if>
  192. <if test="damTypeStr != null and damTypeStr != ''">and DAM_TYPE_STR = #{damTypeStr}</if>
  193. <if test="damSizeHig != null and damSizeHig != ''">and DAM_SIZE_HIG = #{damSizeHig}</if>
  194. <if test="centerX != null and centerX != ''">and CENTER_X = #{centerX}</if>
  195. <if test="centerY != null and centerY != ''">and CENTER_Y = #{centerY}</if>
  196. <if test="src != null and src != ''">and SRC = #{src}</if>
  197. <if test="dataQuality != null and dataQuality != ''">and DATA_QUALITY = #{dataQuality}</if>
  198. <if test="centerXGd != null and centerXGd != ''">and CENTER_X_GD = #{centerXGd}</if>
  199. <if test="centerYGd != null and centerYGd != ''">and CENTER_Y_GD = #{centerYGd}</if>
  200. <if test="rsLoc != null and rsLoc != ''">and RS_LOC = #{rsLoc}</if>
  201. <if test="regCode != null and regCode != ''">and REG_CODE = #{regCode}</if>
  202. <if test="compDate != null">and COMP_DATE = #{compDate}</if>
  203. <if test="intm != null">and INTM = #{intm}</if>
  204. <if test="regNo != null and regNo != ''">and REG_NO = #{regNo}</if>
  205. <if test="hstInsp != null and hstInsp != ''">and HST_INSP = #{hstInsp}</if>
  206. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  207. <if test="uptm != null">and UPTM = #{uptm}</if>
  208. <if test="chkState != null and chkState != ''">and CHK_STATE = #{chkState}</if>
  209. <if test="edtrPesr != null and edtrPesr != ''">and EDTR_PESR = #{edtrPesr}</if>
  210. <if test="slpcAdmDiv != null and slpcAdmDiv != ''">and SLPC_ADM_DIV = #{slpcAdmDiv}</if>
  211. <if test="admDivName != null and admDivName != ''">and ADM_DIV_NAME = #{admDivName}</if>
  212. <if test="compDateStr != null and compDateStr != ''">and COMP_DATE_STR = #{compDateStr}</if>
  213. <if test="displayLevel != null and displayLevel != ''">and DISPLAY_LEVEL = #{displayLevel}</if>
  214. <if test="rsClass != null and rsClass != ''">and RS_CLASS = #{rsClass}</if>
  215. <if test="impdDt != null">and IMPD_DT = #{impdDt}</if>
  216. <if test="rnfcImpdDt != null">and RNFC_IMPD_DT = #{rnfcImpdDt}</if>
  217. <if test="desFlStag != null and desFlStag != ''">and DES_FL_STAG = #{desFlStag}</if>
  218. <if test="flConTopStag != null and flConTopStag != ''">and FL_CON_TOP_STAG = #{flConTopStag}</if>
  219. <if test="wiunWaoLegPers != null and wiunWaoLegPers != ''">and WIUN_WAO_LEG_PERS = #{wiunWaoLegPers}</if>
  220. <if test="wiunWaoLegPersUnit != null and wiunWaoLegPersUnit != ''">and WIUN_WAO_LEG_PERS_UNIT = #{wiunWaoLegPersUnit}</if>
  221. <if test="wiunWaoLegPersDuty != null and wiunWaoLegPersDuty != ''">and WIUN_WAO_LEG_PERS_DUTY = #{wiunWaoLegPersDuty}</if>
  222. <if test="wiunWaoLegPersTel != null and wiunWaoLegPersTel != ''">and WIUN_WAO_LEG_PERS_TEL = #{wiunWaoLegPersTel}</if>
  223. <if test="techPers != null and techPers != ''">and TECH_PERS = #{techPers}</if>
  224. <if test="techPersUnit != null and techPersUnit != ''">and TECH_PERS_UNIT = #{techPersUnit}</if>
  225. <if test="techPersDuty != null and techPersDuty != ''">and TECH_PERS_DUTY = #{techPersDuty}</if>
  226. <if test="techPersTel != null and techPersTel != ''">and TECH_PERS_TEL = #{techPersTel}</if>
  227. <if test="patrolPers != null and patrolPers != ''">and PATROL_PERS = #{patrolPers}</if>
  228. <if test="patrolPersUnit != null and patrolPersUnit != ''">and PATROL_PERS_UNIT = #{patrolPersUnit}</if>
  229. <if test="patrolPersDuty != null and patrolPersDuty != ''">and PATROL_PERS_DUTY = #{patrolPersDuty}</if>
  230. <if test="patrolPersTel != null and patrolPersTel != ''">and PATROL_PERS_TEL = #{patrolPersTel}</if>
  231. <if test="damType != null and damType != ''">and DAM_TYPE = #{damType}</if>
  232. </trim>
  233. </sql>
  234. <select id="findMax" parameterType="String" resultType="String">
  235. select max(rs_code) as rs_code
  236. from (select rs_code from ATT_RS_BASE where rs_code like '${location}%'
  237. union all
  238. select rs_code from ATT_RS_BASE_FJ where rs_code like '${location}%'
  239. )
  240. </select>
  241. <select id="get" resultMap="attRsBaseFjResultMap" parameterType="String" >
  242. select <include refid="table_columns" /> from ATT_RS_BASE where RS_CODE = #{rsCode}
  243. </select>
  244. <select id="getBy" resultMap="attRsBaseFjResultMap">
  245. select <include refid="table_columns" /> from ATT_RS_BASE_FJ <include refid="page_where" />
  246. </select>
  247. <select id="findAll" resultMap="attRsBaseFjResultMap">
  248. select <include refid="table_columns" /> from ATT_RS_BASE_FJ
  249. </select>
  250. <select id="findList" resultMap="attRsBaseFjResultMap">
  251. select <include refid="table_columns" /> from ATT_RS_BASE_FJ <include refid="page_where" />
  252. </select>
  253. <select id="selectCount" resultType="int" >
  254. select count(ID) from ATT_RS_BASE_FJ <include refid="page_where" />
  255. </select>
  256. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.AttRsBaseFj">
  257. insert into ATT_RS_BASE_FJ( <include refid="table_columns" /> )
  258. values ( <include refid="entity_properties" /> )
  259. </insert>
  260. <delete id="delete" parameterType="java.lang.String">
  261. delete from ATT_RS_BASE_FJ where ID = #{id}
  262. </delete>
  263. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.AttRsBaseFj">
  264. delete from ATT_RS_BASE_FJ <include refid="page_where" />
  265. </delete>
  266. <update id="deleteInFlag" parameterType="java.lang.String">
  267. update ATT_RS_BASE_FJ set flag_valid = 0 where ID = #{id}
  268. </update>
  269. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.AttRsBaseFj">
  270. update ATT_RS_BASE_FJ
  271. <trim prefix="set" suffixOverrides=",">
  272. <if test="rsName != null and rsName != ''">RS_NAME = #{rsName},</if>
  273. <if test="longitude != null and longitude != ''">LONGITUDE = #{longitude},</if>
  274. <if test="latitude != null and latitude != ''">LATITUDE = #{latitude},</if>
  275. <if test="location != null and location != ''">LOCATION = #{location},</if>
  276. <if test="engScal != null and engScal != ''">ENG_SCAL = #{engScal},</if>
  277. <if test="limStag != null and limStag != ''">LIM_STAG = #{limStag},</if>
  278. <if test="totCap != null and totCap != ''">TOT_CAP = #{totCap},</if>
  279. <if test="rsAdmName != null and rsAdmName != ''">RS_ADM_NAME = #{rsAdmName},</if>
  280. <if test="rsAdmCode != null and rsAdmCode != ''">RS_ADM_CODE = #{rsAdmCode},</if>
  281. <if test="rsAdmDep != null and rsAdmDep != ''">RS_ADM_DEP = #{rsAdmDep},</if>
  282. <if test="admAttRel != null and admAttRel != ''">ADM_ATT_REL = #{admAttRel},</if>
  283. <if test="admDiv != null and admDiv != ''">ADM_DIV = #{admDiv},</if>
  284. <if test="rsType != null and rsType != ''">RS_TYPE = #{rsType},</if>
  285. <if test="damTypeMat != null and damTypeMat != ''">DAM_TYPE_MAT = #{damTypeMat},</if>
  286. <if test="damTypeStr != null and damTypeStr != ''">DAM_TYPE_STR = #{damTypeStr},</if>
  287. <if test="damSizeHig != null and damSizeHig != ''">DAM_SIZE_HIG = #{damSizeHig},</if>
  288. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  289. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  290. <if test="src != null and src != ''">SRC = #{src},</if>
  291. <if test="dataQuality != null and dataQuality != ''">DATA_QUALITY = #{dataQuality},</if>
  292. <if test="centerXGd != null and centerXGd != ''">CENTER_X_GD = #{centerXGd},</if>
  293. <if test="centerYGd != null and centerYGd != ''">CENTER_Y_GD = #{centerYGd},</if>
  294. <if test="rsLoc != null and rsLoc != ''">RS_LOC = #{rsLoc},</if>
  295. <if test="regCode != null and regCode != ''">REG_CODE = #{regCode},</if>
  296. <if test="compDate != null">COMP_DATE = #{compDate},</if>
  297. <if test="intm != null">INTM = #{intm},</if>
  298. <if test="regNo != null and regNo != ''">REG_NO = #{regNo},</if>
  299. <if test="hstInsp != null and hstInsp != ''">HST_INSP = #{hstInsp},</if>
  300. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  301. <if test="uptm != null">UPTM = #{uptm},</if>
  302. <if test="chkState != null and chkState != ''">CHK_STATE = #{chkState},</if>
  303. <if test="edtrPesr != null and edtrPesr != ''">EDTR_PESR = #{edtrPesr},</if>
  304. <if test="slpcAdmDiv != null and slpcAdmDiv != ''">SLPC_ADM_DIV = #{slpcAdmDiv},</if>
  305. <if test="admDivName != null and admDivName != ''">ADM_DIV_NAME = #{admDivName},</if>
  306. <if test="compDateStr != null and compDateStr != ''">COMP_DATE_STR = #{compDateStr},</if>
  307. <if test="displayLevel != null and displayLevel != ''">DISPLAY_LEVEL = #{displayLevel},</if>
  308. <if test="rsClass != null and rsClass != ''">RS_CLASS = #{rsClass},</if>
  309. <if test="impdDt != null">IMPD_DT = #{impdDt},</if>
  310. <if test="rnfcImpdDt != null">RNFC_IMPD_DT = #{rnfcImpdDt},</if>
  311. <if test="desFlStag != null and desFlStag != ''">DES_FL_STAG = #{desFlStag},</if>
  312. <if test="flConTopStag != null and flConTopStag != ''">FL_CON_TOP_STAG = #{flConTopStag},</if>
  313. <if test="wiunWaoLegPers != null and wiunWaoLegPers != ''">WIUN_WAO_LEG_PERS = #{wiunWaoLegPers},</if>
  314. <if test="wiunWaoLegPersUnit != null and wiunWaoLegPersUnit != ''">WIUN_WAO_LEG_PERS_UNIT = #{wiunWaoLegPersUnit},</if>
  315. <if test="wiunWaoLegPersDuty != null and wiunWaoLegPersDuty != ''">WIUN_WAO_LEG_PERS_DUTY = #{wiunWaoLegPersDuty},</if>
  316. <if test="wiunWaoLegPersTel != null and wiunWaoLegPersTel != ''">WIUN_WAO_LEG_PERS_TEL = #{wiunWaoLegPersTel},</if>
  317. <if test="techPers != null and techPers != ''">TECH_PERS = #{techPers},</if>
  318. <if test="techPersUnit != null and techPersUnit != ''">TECH_PERS_UNIT = #{techPersUnit},</if>
  319. <if test="techPersDuty != null and techPersDuty != ''">TECH_PERS_DUTY = #{techPersDuty},</if>
  320. <if test="techPersTel != null and techPersTel != ''">TECH_PERS_TEL = #{techPersTel},</if>
  321. <if test="patrolPers != null and patrolPers != ''">PATROL_PERS = #{patrolPers},</if>
  322. <if test="patrolPersUnit != null and patrolPersUnit != ''">PATROL_PERS_UNIT = #{patrolPersUnit},</if>
  323. <if test="patrolPersDuty != null and patrolPersDuty != ''">PATROL_PERS_DUTY = #{patrolPersDuty},</if>
  324. <if test="patrolPersTel != null and patrolPersTel != ''">PATROL_PERS_TEL = #{patrolPersTel},</if>
  325. <if test="damType != null and damType != ''">DAM_TYPE = #{damType},</if>
  326. </trim>
  327. <where>ID = #{id}</where>
  328. </update>
  329. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.AttRsBaseFj">
  330. update ATT_RS_BASE_FJ
  331. <trim prefix="set" suffixOverrides=",">
  332. <if test="rsName != null and rsName != ''">RS_NAME = #{rsName},</if>
  333. <if test="longitude != null and longitude != ''">LONGITUDE = #{longitude},</if>
  334. <if test="latitude != null and latitude != ''">LATITUDE = #{latitude},</if>
  335. <if test="location != null and location != ''">LOCATION = #{location},</if>
  336. <if test="engScal != null and engScal != ''">ENG_SCAL = #{engScal},</if>
  337. <if test="limStag != null and limStag != ''">LIM_STAG = #{limStag},</if>
  338. <if test="totCap != null and totCap != ''">TOT_CAP = #{totCap},</if>
  339. <if test="rsAdmName != null and rsAdmName != ''">RS_ADM_NAME = #{rsAdmName},</if>
  340. <if test="rsAdmCode != null and rsAdmCode != ''">RS_ADM_CODE = #{rsAdmCode},</if>
  341. <if test="rsAdmDep != null and rsAdmDep != ''">RS_ADM_DEP = #{rsAdmDep},</if>
  342. <if test="admAttRel != null and admAttRel != ''">ADM_ATT_REL = #{admAttRel},</if>
  343. <if test="admDiv != null and admDiv != ''">ADM_DIV = #{admDiv},</if>
  344. <if test="rsType != null and rsType != ''">RS_TYPE = #{rsType},</if>
  345. <if test="damTypeMat != null and damTypeMat != ''">DAM_TYPE_MAT = #{damTypeMat},</if>
  346. <if test="damTypeStr != null and damTypeStr != ''">DAM_TYPE_STR = #{damTypeStr},</if>
  347. <if test="damSizeHig != null and damSizeHig != ''">DAM_SIZE_HIG = #{damSizeHig},</if>
  348. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  349. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  350. <if test="src != null and src != ''">SRC = #{src},</if>
  351. <if test="dataQuality != null and dataQuality != ''">DATA_QUALITY = #{dataQuality},</if>
  352. <if test="centerXGd != null and centerXGd != ''">CENTER_X_GD = #{centerXGd},</if>
  353. <if test="centerYGd != null and centerYGd != ''">CENTER_Y_GD = #{centerYGd},</if>
  354. <if test="rsLoc != null and rsLoc != ''">RS_LOC = #{rsLoc},</if>
  355. <if test="regCode != null and regCode != ''">REG_CODE = #{regCode},</if>
  356. <if test="compDate != null">COMP_DATE = #{compDate},</if>
  357. <if test="intm != null">INTM = #{intm},</if>
  358. <if test="regNo != null and regNo != ''">REG_NO = #{regNo},</if>
  359. <if test="hstInsp != null and hstInsp != ''">HST_INSP = #{hstInsp},</if>
  360. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  361. <if test="uptm != null">UPTM = #{uptm},</if>
  362. <if test="chkState != null and chkState != ''">CHK_STATE = #{chkState},</if>
  363. <if test="edtrPesr != null and edtrPesr != ''">EDTR_PESR = #{edtrPesr},</if>
  364. <if test="slpcAdmDiv != null and slpcAdmDiv != ''">SLPC_ADM_DIV = #{slpcAdmDiv},</if>
  365. <if test="admDivName != null and admDivName != ''">ADM_DIV_NAME = #{admDivName},</if>
  366. <if test="compDateStr != null and compDateStr != ''">COMP_DATE_STR = #{compDateStr},</if>
  367. <if test="displayLevel != null and displayLevel != ''">DISPLAY_LEVEL = #{displayLevel},</if>
  368. <if test="rsClass != null and rsClass != ''">RS_CLASS = #{rsClass},</if>
  369. <if test="impdDt != null">IMPD_DT = #{impdDt},</if>
  370. <if test="rnfcImpdDt != null">RNFC_IMPD_DT = #{rnfcImpdDt},</if>
  371. <if test="desFlStag != null and desFlStag != ''">DES_FL_STAG = #{desFlStag},</if>
  372. <if test="flConTopStag != null and flConTopStag != ''">FL_CON_TOP_STAG = #{flConTopStag},</if>
  373. <if test="wiunWaoLegPers != null and wiunWaoLegPers != ''">WIUN_WAO_LEG_PERS = #{wiunWaoLegPers},</if>
  374. <if test="wiunWaoLegPersUnit != null and wiunWaoLegPersUnit != ''">WIUN_WAO_LEG_PERS_UNIT = #{wiunWaoLegPersUnit},</if>
  375. <if test="wiunWaoLegPersDuty != null and wiunWaoLegPersDuty != ''">WIUN_WAO_LEG_PERS_DUTY = #{wiunWaoLegPersDuty},</if>
  376. <if test="wiunWaoLegPersTel != null and wiunWaoLegPersTel != ''">WIUN_WAO_LEG_PERS_TEL = #{wiunWaoLegPersTel},</if>
  377. <if test="techPers != null and techPers != ''">TECH_PERS = #{techPers},</if>
  378. <if test="techPersUnit != null and techPersUnit != ''">TECH_PERS_UNIT = #{techPersUnit},</if>
  379. <if test="techPersDuty != null and techPersDuty != ''">TECH_PERS_DUTY = #{techPersDuty},</if>
  380. <if test="techPersTel != null and techPersTel != ''">TECH_PERS_TEL = #{techPersTel},</if>
  381. <if test="patrolPers != null and patrolPers != ''">PATROL_PERS = #{patrolPers},</if>
  382. <if test="patrolPersUnit != null and patrolPersUnit != ''">PATROL_PERS_UNIT = #{patrolPersUnit},</if>
  383. <if test="patrolPersDuty != null and patrolPersDuty != ''">PATROL_PERS_DUTY = #{patrolPersDuty},</if>
  384. <if test="patrolPersTel != null and patrolPersTel != ''">PATROL_PERS_TEL = #{patrolPersTel},</if>
  385. <if test="damType != null and damType != ''">DAM_TYPE = #{damType},</if>
  386. </trim>
  387. <include refid="page_where" />
  388. </update>
  389. <!-- 其他自定义SQL -->
  390. </mapper>