BisInspHystpDao.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  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.BisInspHystpDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspHystp" id="bisInspHystpResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="objId" column="OBJ_ID"/>
  7. <result property="nm" column="NM"/>
  8. <result property="code" column="CODE"/>
  9. <result property="conName" column="CON_NAME"/>
  10. <result property="conTel" column="CON_TEL"/>
  11. <result property="loc" column="LOC"/>
  12. <result property="locVill" column="LOC_VILL"/>
  13. <result property="adCode" column="AD_CODE"/>
  14. <result property="adName" column="AD_NAME"/>
  15. <result property="rvName" column="RV_NAME"/>
  16. <result property="buldTm" column="BULD_TM"/>
  17. <result property="compTm" column="COMP_TM"/>
  18. <result property="ownerType" column="OWNER_TYPE"/>
  19. <result property="exptType" column="EXPT_TYPE"/>
  20. <result property="insCap" column="INS_CAP"/>
  21. <result property="damHeig" column="DAM_HEIG"/>
  22. <result property="totCap" column="TOT_CAP"/>
  23. <result property="dsgnTop" column="DSGN_TOP"/>
  24. <result property="damType" column="DAM_TYPE"/>
  25. <result property="synNote" column="SYN_NOTE"/>
  26. <result property="isSafEdnt" column="IS_SAF_EDNT"/>
  27. <result property="safEdntTm" column="SAF_EDNT_TM"/>
  28. <result property="isSafAss" column="IS_SAF_ASS"/>
  29. <result property="safAssTm" column="SAF_ASS_TM"/>
  30. <result property="isSafPin" column="IS_SAF_PIN"/>
  31. <result property="isWaterDam" column="IS_WATER_DAM"/>
  32. <result property="centerX" column="CENTER_X"/>
  33. <result property="centerY" column="CENTER_Y"/>
  34. <result property="hystLong" column="HYST_LONG"/>
  35. <result property="hystLat" column="HYST_LAT"/>
  36. <result property="gdX" column="GD_X"/>
  37. <result property="gdY" column="GD_Y"/>
  38. <result property="persId" column="PERS_ID"/>
  39. <result property="intm" column="INTM"/>
  40. <result property="uptm" column="UPTM"/>
  41. <result property="note" column="NOTE"/>
  42. <result property="dataStat" column="DATA_STAT"/>
  43. <result property="state" column="STATE"/>
  44. <result property="bldfltState" column="BLDFLT_STATE"/>
  45. <result property="dvcState" column="DVC_STATE"/>
  46. <result property="safState" column="SAF_STATE"/>
  47. <result property="runState" column="RUN_STATE"/>
  48. <result property="dutyState" column="DUTY_STATE"/>
  49. <result property="othrState" column="OTHR_STATE"/>
  50. </resultMap>
  51. <sql id="table_columns">
  52. ID,
  53. OBJ_ID,
  54. NM,
  55. CODE,
  56. CON_NAME,
  57. CON_TEL,
  58. LOC,
  59. LOC_VILL,
  60. AD_CODE,
  61. AD_NAME,
  62. RV_NAME,
  63. BULD_TM,
  64. COMP_TM,
  65. OWNER_TYPE,
  66. EXPT_TYPE,
  67. INS_CAP,
  68. DAM_HEIG,
  69. TOT_CAP,
  70. DSGN_TOP,
  71. DAM_TYPE,
  72. SYN_NOTE,
  73. IS_SAF_EDNT,
  74. SAF_EDNT_TM,
  75. IS_SAF_ASS,
  76. SAF_ASS_TM,
  77. IS_SAF_PIN,
  78. IS_WATER_DAM,
  79. CENTER_X,
  80. CENTER_Y,
  81. GD_X,
  82. GD_Y,
  83. PERS_ID,
  84. INTM,
  85. UPTM,
  86. NOTE,
  87. DATA_STAT,
  88. STATE,
  89. BLDFLT_STATE,
  90. DVC_STATE,
  91. SAF_STATE,
  92. RUN_STATE,
  93. DUTY_STATE,
  94. OTHR_STATE,
  95. HYST_LONG,
  96. HYST_LAT
  97. </sql>
  98. <sql id="entity_properties">
  99. #{id},
  100. #{objId},
  101. #{nm},
  102. #{code},
  103. #{conName},
  104. #{conTel},
  105. #{loc},
  106. #{locVill},
  107. #{adCode},
  108. #{adName},
  109. #{rvName},
  110. #{buldTm},
  111. #{compTm},
  112. #{ownerType},
  113. #{exptType},
  114. #{insCap},
  115. #{damHeig},
  116. #{totCap},
  117. #{dsgnTop},
  118. #{damType},
  119. #{synNote},
  120. #{isSafEdnt},
  121. #{safEdntTm},
  122. #{isSafAss},
  123. #{safAssTm},
  124. #{isSafPin},
  125. #{isWaterDam},
  126. #{centerX},
  127. #{centerY},
  128. #{gdX},
  129. #{gdY},
  130. #{persId},
  131. #{intm},
  132. #{uptm},
  133. #{note},
  134. #{dataStat},
  135. #{state},
  136. #{bldfltState},
  137. #{dvcState},
  138. #{safState},
  139. #{runState},
  140. #{dutyState},
  141. #{othrState},
  142. #{hystLong},
  143. #{hystLat}
  144. </sql>
  145. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  146. <sql id="page_where">
  147. <trim prefix="where" prefixOverrides="and | or ">
  148. <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
  149. <if test="nm != null and nm != ''">and NM = #{nm}</if>
  150. <if test="code != null and code != ''">and CODE = #{code}</if>
  151. <if test="conName != null and conName != ''">and CON_NAME = #{conName}</if>
  152. <if test="conTel != null and conTel != ''">and CON_TEL = #{conTel}</if>
  153. <if test="loc != null and loc != ''">and LOC = #{loc}</if>
  154. <if test="locVill != null and locVill != ''">and LOC_VILL = #{locVill}</if>
  155. <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
  156. <if test="adName != null and adName != ''">and AD_NAME = #{adName}</if>
  157. <if test="rvName != null and rvName != ''">and RV_NAME = #{rvName}</if>
  158. <if test="buldTm != null">and BULD_TM = #{buldTm}</if>
  159. <if test="compTm != null">and COMP_TM = #{compTm}</if>
  160. <if test="ownerType != null and ownerType != ''">and OWNER_TYPE = #{ownerType}</if>
  161. <if test="exptType != null and exptType != ''">and EXPT_TYPE = #{exptType}</if>
  162. <if test="insCap != null and insCap != ''">and INS_CAP = #{insCap}</if>
  163. <if test="damHeig != null and damHeig != ''">and DAM_HEIG = #{damHeig}</if>
  164. <if test="totCap != null and totCap != ''">and TOT_CAP = #{totCap}</if>
  165. <if test="dsgnTop != null and dsgnTop != ''">and DSGN_TOP = #{dsgnTop}</if>
  166. <if test="damType != null and damType != ''">and DAM_TYPE = #{damType}</if>
  167. <if test="synNote != null and synNote != ''">and SYN_NOTE = #{synNote}</if>
  168. <if test="isSafEdnt != null and isSafEdnt != ''">and IS_SAF_EDNT = #{isSafEdnt}</if>
  169. <if test="safEdntTm != null">and SAF_EDNT_TM = #{safEdntTm}</if>
  170. <if test="isSafAss != null and isSafAss != ''">and IS_SAF_ASS = #{isSafAss}</if>
  171. <if test="safAssTm != null">and SAF_ASS_TM = #{safAssTm}</if>
  172. <if test="isSafPin != null and isSafPin != ''">and IS_SAF_PIN = #{isSafPin}</if>
  173. <if test="isWaterDam != null and isWaterDam != ''">and IS_WATER_DAM = #{isWaterDam}</if>
  174. <if test="centerX != null and centerX != ''">and CENTER_X = #{centerX}</if>
  175. <if test="centerY != null and centerY != ''">and CENTER_Y = #{centerY}</if>
  176. <if test="gdX != null and gdX != ''">and GD_X = #{gdX}</if>
  177. <if test="gdY != null and gdY != ''">and GD_Y = #{gdY}</if>
  178. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  179. <if test="intm != null">and INTM = #{intm}</if>
  180. <if test="uptm != null">and UPTM = #{uptm}</if>
  181. <if test="note != null and note != ''">and NOTE = #{note}</if>
  182. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  183. <if test="state != null and state != ''">and STATE = #{state}</if>
  184. <if test="bldfltState != null and bldfltState != ''">and BLDFLT_STATE = #{bldfltState}</if>
  185. <if test="dvcState != null and dvcState != ''">and DVC_STATE = #{dvcState}</if>
  186. <if test="safState != null and safState != ''">and SAF_STATE = #{safState}</if>
  187. <if test="runState != null and runState != ''">and RUN_STATE = #{runState}</if>
  188. <if test="dutyState != null and dutyState != ''">and DUTY_STATE = #{dutyState}</if>
  189. <if test="othrState != null and othrState != ''">and OTHR_STATE = #{othrState}</if>
  190. <if test="hystLong != null and hystLong != ''">and HYST_LONG = #{hystLong}</if>
  191. <if test="hystLat != null and hystLat != ''">and HYST_LAT = #{hystLat}</if>
  192. </trim>
  193. </sql>
  194. <select id="get" resultMap="bisInspHystpResultMap" parameterType="String" >
  195. select <include refid="table_columns" /> from BIS_INSP_HYSTP where ID = #{id}
  196. </select>
  197. <select id="getBy" resultMap="bisInspHystpResultMap">
  198. select <include refid="table_columns" /> from BIS_INSP_HYSTP <include refid="page_where" />
  199. </select>
  200. <select id="findAll" resultMap="bisInspHystpResultMap">
  201. select <include refid="table_columns" /> from BIS_INSP_HYSTP
  202. </select>
  203. <select id="findList" resultMap="bisInspHystpResultMap">
  204. select <include refid="table_columns" /> from BIS_INSP_HYSTP <include refid="page_where" />
  205. </select>
  206. <select id="selectCount" resultType="int" >
  207. select count(ID) from BIS_INSP_HYSTP <include refid="page_where" />
  208. </select>
  209. <select id="getListByInspGroupIdObjType" resultType="cn.com.goldenwater.dcproj.dto.BisInspHystpDto">
  210. select t.id,t.id as rgstrId,
  211. (case when t.STATE is null then '0' else t.state end) STATE,
  212. t.AD_CODE, t.AD_NAME,t.nm,
  213. t.CENTER_X, t.CENTER_Y, t.GD_X, t.GD_Y,
  214. t.PERS_ID, t.INTM, t.UPTM, t.DATA_STAT,C.id groupId,C.PNM groupName,B.obj_id,B.code code
  215. from BIS_INSP_HYSTP t
  216. left join BIS_INSP_ALL_OBJ B
  217. on t.OBJ_ID = B.OBJ_ID
  218. LEFT JOIN BIS_INSP_ALL C ON B.ID = C.ID
  219. and B.ptype = #{objType}
  220. where 1 = 1
  221. <if test='isAll == "0"'>and B.ID = #{inspGroupId}</if>
  222. <if test='isAll == "1"'>and B.ID LIKE '${inspGroupId}%'</if>
  223. <if test="adCode != null and adCode != ''">
  224. and t.AD_CODE like '${adCode}%'
  225. </if>
  226. <if test="wtdstNm != null and wtdstNm != ''">
  227. and t.NM like '${wtdstNm}%'
  228. </if>
  229. <choose>
  230. <when test="province != null and province != ''">
  231. and B.AD_CODE LIKE '${province}%'
  232. </when>
  233. <otherwise>
  234. and B.AD_CODE is null
  235. </otherwise>
  236. </choose>
  237. </select>
  238. <select id="findPageList" resultType="cn.com.goldenwater.dcproj.dto.BisInspHystpDto">
  239. SELECT * FROM (
  240. select
  241. A.CODE, A.ID nodeId, B.NM, A.ptype, ia.pnm groupName,
  242. B.id as rgstrId, AW.AD_FULL_NAME,
  243. B.ID,
  244. B.OBJ_ID,
  245. B.AD_CODE,
  246. B.AD_NAME,
  247. B.CENTER_X,
  248. B.CENTER_Y,
  249. B.GD_X,
  250. B.GD_Y,
  251. B.PERS_ID,
  252. B.NOTE,
  253. B.INTM,
  254. B.UPTM,
  255. B.DATA_STAT,
  256. B.STATE,
  257. B.BLDFLT_STATE,
  258. B.DVC_STATE,
  259. B.SAF_STATE,
  260. B.RUN_STATE,
  261. B.OTHR_STATE,
  262. B.DUTY_STATE
  263. FROM BIS_INSP_ALL_OBJ A
  264. JOIN BIS_INSP_HYSTP B ON A.OBJ_ID=B.OBJ_ID
  265. LEFT JOIN BIS_INSP_ALL IA ON A.ID = IA.ID
  266. LEFT JOIN ATT_AD_BASE AW ON B.AD_CODE = AW.AD_CODE
  267. where A.ptype = #{pType}
  268. and B.DATA_STAT= '0'
  269. <if test="adCodes ==null or adCodes ==''">
  270. <choose>
  271. <when test='isAll =="1"'>
  272. </when>
  273. <otherwise>
  274. and
  275. A.Id in (
  276. select distinct id from (
  277. SELECT P.id FROM BIS_INSP_ALL P
  278. WHERE FIND_IN_SET(P.id, getSubNodes_bis_insp_all( (SELECT group_concat(A.id) FROM BIS_INSP_ALL_RLATION A
  279. WHERE A.PERSID = #{presId} and A.TYPE = #{pType} and length(A.id) in (3,6,9) group by A.PERSID ),0,0) ) &gt; 0
  280. union all
  281. SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
  282. WHERE A.PERSID =#{presId} and TYPE = #{pType} and length(id)=12 )
  283. )
  284. )
  285. </otherwise>
  286. </choose>
  287. </if>
  288. <if test="adCodes !=null and adCodes !=''">
  289. and
  290. <foreach item="item" index="index" collection="adCodes.split(',')" open="(" separator="or" close=")">
  291. b.ad_code like concat('${item}','%')
  292. </foreach>
  293. </if>
  294. ) A
  295. <where>
  296. <if test="id !=null and id !=''">and nodeId like '${id}%'</if>
  297. <if test="plnaId !=null and plnaId !=''">and nodeId like '${plnaId}%'</if>
  298. <if test="groupId != null and groupId != ''">and nodeId like '${groupId}%'</if>
  299. <if test="code !=null and code !=''">and code = #{code}</if>
  300. <if test="nm !=null and nm !=''">and nm like '%${nm}%'</if>
  301. <if test="rsName !=null and rsName !=''">and nm like '%${rsName}%'</if>
  302. <if test="state !=null and state !=''">and STATE in (${state})</if>
  303. <if test="adName != null and adName != ''">and AD_NAME like '%${adName}%'</if>
  304. <if test="sttm != null and sttm != ''">and INTM &gt;= STR_TO_DATE(#{sttm},'%Y-%m-%d')</if>
  305. <if test="entm != null and entm != ''">and INTM &lt; DATE_ADD(STR_TO_DATE(#{entm},'%Y-%m-%d') , INTERVAL 1 DAY)</if>
  306. </where>
  307. order by nodeId asc
  308. <if test="orderBy != null and orderBy != ''">
  309. ,CONVERT( nm USING gbk ) COLLATE gbk_chinese_ci ASC
  310. </if>
  311. </select>
  312. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystp">
  313. insert into BIS_INSP_HYSTP( <include refid="table_columns" /> )
  314. values ( <include refid="entity_properties" /> )
  315. </insert>
  316. <delete id="delete" parameterType="java.lang.String">
  317. update BIS_INSP_HYSTP set DATA_STAT='9' where ID = #{id}
  318. </delete>
  319. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystp">
  320. delete from BIS_INSP_HYSTP <include refid="page_where" />
  321. </delete>
  322. <update id="deleteInFlag" parameterType="java.lang.String">
  323. update BIS_INSP_HYSTP set flag_valid = 0 where ID = #{id}
  324. </update>
  325. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystp">
  326. update BIS_INSP_HYSTP
  327. <trim prefix="set" suffixOverrides=",">
  328. <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
  329. <if test="nm != null and nm != ''">NM = #{nm},</if>
  330. <if test="code != null and code != ''">CODE = #{code},</if>
  331. <if test="conName != null and conName != ''">CON_NAME = #{conName},</if>
  332. <if test="conTel != null and conTel != ''">CON_TEL = #{conTel},</if>
  333. <if test="loc != null and loc != ''">LOC = #{loc},</if>
  334. <if test="locVill != null and locVill != ''">LOC_VILL = #{locVill},</if>
  335. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  336. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  337. <if test="rvName != null and rvName != ''">RV_NAME = #{rvName},</if>
  338. <if test="buldTm != null">BULD_TM = #{buldTm},</if>
  339. <if test="compTm != null">COMP_TM = #{compTm},</if>
  340. <if test="ownerType != null and ownerType != ''">OWNER_TYPE = #{ownerType},</if>
  341. <if test="exptType != null and exptType != ''">EXPT_TYPE = #{exptType},</if>
  342. <if test="insCap != null and insCap != ''">INS_CAP = #{insCap},</if>
  343. <if test="damHeig != null and damHeig != ''">DAM_HEIG = #{damHeig},</if>
  344. <if test="totCap != null and totCap != ''">TOT_CAP = #{totCap},</if>
  345. <if test="dsgnTop != null and dsgnTop != ''">DSGN_TOP = #{dsgnTop},</if>
  346. <if test="damType != null and damType != ''">DAM_TYPE = #{damType},</if>
  347. <if test="synNote != null and synNote != ''">SYN_NOTE = #{synNote},</if>
  348. <if test="isSafEdnt != null and isSafEdnt != ''">IS_SAF_EDNT = #{isSafEdnt},</if>
  349. <if test="safEdntTm != null">SAF_EDNT_TM = #{safEdntTm},</if>
  350. <if test="isSafAss != null and isSafAss != ''">IS_SAF_ASS = #{isSafAss},</if>
  351. <if test="safAssTm != null">SAF_ASS_TM = #{safAssTm},</if>
  352. <if test="isSafPin != null and isSafPin != ''">IS_SAF_PIN = #{isSafPin},</if>
  353. <if test="isWaterDam != null and isWaterDam != ''">IS_WATER_DAM = #{isWaterDam},</if>
  354. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  355. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  356. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  357. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  358. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  359. <if test="intm != null">INTM = #{intm},</if>
  360. <if test="uptm != null">UPTM = #{uptm},</if>
  361. <if test="note != null and note != ''">NOTE = #{note},</if>
  362. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  363. <if test="state != null and state != ''">STATE = #{state},</if>
  364. <if test="bldfltState != null and bldfltState != ''">BLDFLT_STATE = #{bldfltState},</if>
  365. <if test="dvcState != null and dvcState != ''">DVC_STATE = #{dvcState},</if>
  366. <if test="safState != null and safState != ''">SAF_STATE = #{safState},</if>
  367. <if test="runState != null and runState != ''">RUN_STATE = #{runState},</if>
  368. <if test="dutyState != null and dutyState != ''">DUTY_STATE = #{dutyState},</if>
  369. <if test="othrState != null and othrState != ''">OTHR_STATE = #{othrState},</if>
  370. <if test="hystLong != null and hystLong != ''">HYST_LONG = #{hystLong},</if>
  371. <if test="hystLat != null and hystLat != ''">HYST_LAT = #{hystLat},</if>
  372. </trim>
  373. <where>ID = #{id}</where>
  374. </update>
  375. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspHystp">
  376. update BIS_INSP_HYSTP
  377. <trim prefix="set" suffixOverrides=",">
  378. <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
  379. <if test="nm != null and nm != ''">NM = #{nm},</if>
  380. <if test="code != null and code != ''">CODE = #{code},</if>
  381. <if test="conName != null and conName != ''">CON_NAME = #{conName},</if>
  382. <if test="conTel != null and conTel != ''">CON_TEL = #{conTel},</if>
  383. <if test="loc != null and loc != ''">LOC = #{loc},</if>
  384. <if test="locVill != null and locVill != ''">LOC_VILL = #{locVill},</if>
  385. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  386. <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
  387. <if test="rvName != null and rvName != ''">RV_NAME = #{rvName},</if>
  388. <if test="buldTm != null">BULD_TM = #{buldTm},</if>
  389. <if test="compTm != null">COMP_TM = #{compTm},</if>
  390. <if test="ownerType != null and ownerType != ''">OWNER_TYPE = #{ownerType},</if>
  391. <if test="exptType != null and exptType != ''">EXPT_TYPE = #{exptType},</if>
  392. <if test="insCap != null and insCap != ''">INS_CAP = #{insCap},</if>
  393. <if test="damHeig != null and damHeig != ''">DAM_HEIG = #{damHeig},</if>
  394. <if test="totCap != null and totCap != ''">TOT_CAP = #{totCap},</if>
  395. <if test="dsgnTop != null and dsgnTop != ''">DSGN_TOP = #{dsgnTop},</if>
  396. <if test="damType != null and damType != ''">DAM_TYPE = #{damType},</if>
  397. <if test="synNote != null and synNote != ''">SYN_NOTE = #{synNote},</if>
  398. <if test="isSafEdnt != null and isSafEdnt != ''">IS_SAF_EDNT = #{isSafEdnt},</if>
  399. <if test="safEdntTm != null">SAF_EDNT_TM = #{safEdntTm},</if>
  400. <if test="isSafAss != null and isSafAss != ''">IS_SAF_ASS = #{isSafAss},</if>
  401. <if test="safAssTm != null">SAF_ASS_TM = #{safAssTm},</if>
  402. <if test="isSafPin != null and isSafPin != ''">IS_SAF_PIN = #{isSafPin},</if>
  403. <if test="isWaterDam != null and isWaterDam != ''">IS_WATER_DAM = #{isWaterDam},</if>
  404. <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
  405. <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
  406. <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
  407. <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
  408. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  409. <if test="intm != null">INTM = #{intm},</if>
  410. <if test="uptm != null">UPTM = #{uptm},</if>
  411. <if test="note != null and note != ''">NOTE = #{note},</if>
  412. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  413. <if test="state != null and state != ''">STATE = #{state},</if>
  414. <if test="bldfltState != null and bldfltState != ''">BLDFLT_STATE = #{bldfltState},</if>
  415. <if test="dvcState != null and dvcState != ''">DVC_STATE = #{dvcState},</if>
  416. <if test="safState != null and safState != ''">SAF_STATE = #{safState},</if>
  417. <if test="runState != null and runState != ''">RUN_STATE = #{runState},</if>
  418. <if test="dutyState != null and dutyState != ''">DUTY_STATE = #{dutyState},</if>
  419. <if test="othrState != null and othrState != ''">OTHR_STATE = #{othrState},</if>
  420. <if test="hystLong != null and hystLong != ''">HYST_LONG = #{hystLong},</if>
  421. <if test="hystLat != null and hystLat != ''">HYST_LAT = #{hystLat},</if>
  422. </trim>
  423. <include refid="page_where" />
  424. </update>
  425. <!-- 其他自定义SQL -->
  426. </mapper>