AttRsBaseCrrctDao.xml 23 KB

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