BisInspBasePresExtDao.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  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.BisInspBasePresExtDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspBasePresExt" id="bisInspBasePresExtResultMap">
  5. <result property="hasAttendTrainNote" column="HAS_ATTEND_TRAIN_NOTE"/>
  6. <result property="hasAttendTrain" column="HAS_ATTEND_TRAIN"/>
  7. <result property="patrolFundSour" column="PATROL_FUND_SOUR"/>
  8. <result property="patrolReward" column="PATROL_REWARD"/>
  9. <result property="hasExtPatrol" column="HAS_EXT_PATROL"/>
  10. <result property="isPatrolMsgComp" column="IS_PATROL_MSG_COMP"/>
  11. <result property="protalRate" column="PROTAL_RATE"/>
  12. <result property="hasRepDangReal" column="HAS_REP_DANG_REAL"/>
  13. <result property="dangReportObj" column="DANG_REPORT_OBJ"/>
  14. <result property="hasReport" column="HAS_REPORT"/>
  15. <result property="hasFlLowLimLev" column="HAS_FL_LOW_LIM_LEV"/>
  16. <result property="hasKnowEmerPlanSame" column="HAS_KNOW_EMER_PLAN_SAME"/>
  17. <result property="otherReasonNote" column="OTHER_REASON_NOTE"/>
  18. <result property="recPersId" column="REC_PERS_ID"/>
  19. <result property="recPers2" column="REC_PERS2"/>
  20. <result property="recPersTel" column="REC_PERS_TEL"/>
  21. <result property="createTime" column="CREATE_TIME"/>
  22. <result property="updateTime" column="UPDATE_TIME"/>
  23. <result property="status" column="STATUS"/>
  24. <result property="dtyprsnId" column="DTYPRSN_ID"/>
  25. <result property="rgstrId" column="RGSTR_ID"/>
  26. <result property="dutyId" column="DUTY_ID"/>
  27. <result property="command" column="COMMAND"/>
  28. <result property="specialManage" column="SPECIAL_MANAGE"/>
  29. <result property="manaOrg" column="MANA_ORG"/>
  30. <result property="orgProp" column="ORG_PROP"/>
  31. <result property="fundSour" column="FUND_SOUR"/>
  32. <result property="fundSourCount" column="FUND_SOUR_COUNT"/>
  33. <result property="noManHasPres" column="NO_MAN_HAS_PRES"/>
  34. <result property="hasWiunWaoLegPers" column="HAS_WIUN_WAO_LEG_PERS"/>
  35. <result property="wiunWaoLegPersId" column="WIUN_WAO_LEG_PERS_ID"/>
  36. <result property="wiunWaoLegPers" column="WIUN_WAO_LEG_PERS"/>
  37. <result property="wiunWaoLegPersTel" column="WIUN_WAO_LEG_PERS_TEL"/>
  38. <result property="wiunWaoLegPersDuty" column="WIUN_WAO_LEG_PERS_DUTY"/>
  39. <result property="wiunWaoLegPersResu" column="WIUN_WAO_LEG_PERS_RESU"/>
  40. <result property="hasTechPers" column="HAS_TECH_PERS"/>
  41. <result property="techPersId" column="TECH_PERS_ID"/>
  42. <result property="techPers" column="TECH_PERS"/>
  43. <result property="techPersTel" column="TECH_PERS_TEL"/>
  44. <result property="techPersDuty" column="TECH_PERS_DUTY"/>
  45. <result property="techPresNote" column="TECH_PRES_NOTE"/>
  46. <result property="techPersResuNote" column="TECH_PERS_RESU_NOTE"/>
  47. <result property="techPersResu" column="TECH_PERS_RESU"/>
  48. <result property="hasPatrolPers" column="HAS_PATROL_PERS"/>
  49. <result property="patrolPersId" column="PATROL_PERS_ID"/>
  50. <result property="patrolPers" column="PATROL_PERS"/>
  51. <result property="patrolPersTel" column="PATROL_PERS_TEL"/>
  52. <result property="patrolPersNote" column="PATROL_PERS_NOTE"/>
  53. <result property="patrolPersDuty" column="PATROL_PERS_DUTY"/>
  54. <result property="patrolPersResuNote" column="PATROL_PERS_RESU_NOTE"/>
  55. <result property="patrolPersResu" column="PATROL_PERS_RESU"/>
  56. <result property="wiunWaoLegPersTrain" column="WIUN_WAO_LEG_PERS_TRAIN"/>
  57. <result property="wiunWaoLegPersCnps" column="WIUN_WAO_LEG_PERS_CNPS"/>
  58. <result property="techPersTrain" column="TECH_PERS_TRAIN"/>
  59. <result property="techPersCnps" column="TECH_PERS_CNPS"/>
  60. <result property="patrolPersTrain" column="PATROL_PERS_TRAIN"/>
  61. <result property="patrolPersCnps" column="PATROL_PERS_CNPS"/>
  62. </resultMap>
  63. <sql id="table_columns">
  64. HAS_ATTEND_TRAIN_NOTE,WIUN_WAO_LEG_PERS_TRAIN,WIUN_WAO_LEG_PERS_CNPS,TECH_PERS_TRAIN,TECH_PERS_CNPS,
  65. PATROL_PERS_TRAIN,PATROL_PERS_CNPS,
  66. HAS_ATTEND_TRAIN,
  67. PATROL_FUND_SOUR,
  68. PATROL_REWARD,
  69. HAS_EXT_PATROL,
  70. IS_PATROL_MSG_COMP,
  71. PROTAL_RATE,
  72. HAS_REP_DANG_REAL,
  73. DANG_REPORT_OBJ,
  74. HAS_REPORT,
  75. HAS_FL_LOW_LIM_LEV,
  76. HAS_KNOW_EMER_PLAN_SAME,
  77. OTHER_REASON_NOTE,
  78. REC_PERS_ID,
  79. REC_PERS2,
  80. REC_PERS_TEL,
  81. CREATE_TIME,
  82. UPDATE_TIME,
  83. STATUS,
  84. DTYPRSN_ID,
  85. RGSTR_ID,
  86. DUTY_ID,
  87. COMMAND,
  88. SPECIAL_MANAGE,
  89. MANA_ORG,
  90. ORG_PROP,
  91. FUND_SOUR,
  92. FUND_SOUR_COUNT,
  93. NO_MAN_HAS_PRES,
  94. HAS_WIUN_WAO_LEG_PERS,
  95. WIUN_WAO_LEG_PERS_ID,
  96. WIUN_WAO_LEG_PERS,
  97. WIUN_WAO_LEG_PERS_TEL,
  98. WIUN_WAO_LEG_PERS_DUTY,
  99. WIUN_WAO_LEG_PERS_RESU,
  100. HAS_TECH_PERS,
  101. TECH_PERS_ID,
  102. TECH_PERS,
  103. TECH_PERS_TEL,
  104. TECH_PERS_DUTY,
  105. TECH_PRES_NOTE,
  106. TECH_PERS_RESU_NOTE,
  107. TECH_PERS_RESU,
  108. HAS_PATROL_PERS,
  109. PATROL_PERS_ID,
  110. PATROL_PERS,
  111. PATROL_PERS_TEL,
  112. PATROL_PERS_NOTE,
  113. PATROL_PERS_DUTY,
  114. PATROL_PERS_RESU_NOTE,
  115. PATROL_PERS_RESU
  116. </sql>
  117. <sql id="entity_properties">
  118. #{hasAttendTrainNote},#{wiunWaoLegPersTrain},#{wiunWaoLegPersCnps},#{techPersTrain},#{techPersCnps},#{patrolPersTrain},#{patrolPersCnps},
  119. #{hasAttendTrain},
  120. #{patrolFundSour},
  121. #{patrolReward},
  122. #{hasExtPatrol},
  123. #{isPatrolMsgComp},
  124. #{protalRate},
  125. #{hasRepDangReal},
  126. #{dangReportObj},
  127. #{hasReport},
  128. #{hasFlLowLimLev},
  129. #{hasKnowEmerPlanSame},
  130. #{otherReasonNote},
  131. #{recPersId},
  132. #{recPers2},
  133. #{recPersTel},
  134. #{createTime},
  135. #{updateTime},
  136. #{status},
  137. #{dtyprsnId},
  138. #{rgstrId},
  139. #{dutyId},
  140. #{command},
  141. #{specialManage},
  142. #{manaOrg},
  143. #{orgProp},
  144. #{fundSour},
  145. #{fundSourCount},
  146. #{noManHasPres},
  147. #{hasWiunWaoLegPers},
  148. #{wiunWaoLegPersId},
  149. #{wiunWaoLegPers},
  150. #{wiunWaoLegPersTel},
  151. #{wiunWaoLegPersDuty},
  152. #{wiunWaoLegPersResu},
  153. #{hasTechPers},
  154. #{techPersId},
  155. #{techPers},
  156. #{techPersTel},
  157. #{techPersDuty},
  158. #{techPresNote},
  159. #{techPersResuNote},
  160. #{techPersResu},
  161. #{hasPatrolPers},
  162. #{patrolPersId},
  163. #{patrolPers},
  164. #{patrolPersTel},
  165. #{patrolPersNote},
  166. #{patrolPersDuty},
  167. #{patrolPersResuNote},
  168. #{patrolPersResu}
  169. </sql>
  170. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  171. <sql id="page_where">
  172. <trim prefix="where" prefixOverrides="and | or ">
  173. <if test="hasAttendTrain != null and hasAttendTrain != ''">and HAS_ATTEND_TRAIN = #{hasAttendTrain}</if>
  174. <if test="patrolFundSour != null and patrolFundSour != ''">and PATROL_FUND_SOUR = #{patrolFundSour}</if>
  175. <if test="patrolReward != null and patrolReward != ''">and PATROL_REWARD = #{patrolReward}</if>
  176. <if test="hasExtPatrol != null and hasExtPatrol != ''">and HAS_EXT_PATROL = #{hasExtPatrol}</if>
  177. <if test="isPatrolMsgComp != null and isPatrolMsgComp != ''">and IS_PATROL_MSG_COMP = #{isPatrolMsgComp}
  178. </if>
  179. <if test="protalRate != null and protalRate != ''">and PROTAL_RATE = #{protalRate}</if>
  180. <if test="hasRepDangReal != null and hasRepDangReal != ''">and HAS_REP_DANG_REAL = #{hasRepDangReal}</if>
  181. <if test="dangReportObj != null and dangReportObj != ''">and DANG_REPORT_OBJ = #{dangReportObj}</if>
  182. <if test="hasReport != null and hasReport != ''">and HAS_REPORT = #{hasReport}</if>
  183. <if test="hasFlLowLimLev != null and hasFlLowLimLev != ''">and HAS_FL_LOW_LIM_LEV = #{hasFlLowLimLev}</if>
  184. <if test="hasKnowEmerPlanSame != null and hasKnowEmerPlanSame != ''">and HAS_KNOW_EMER_PLAN_SAME =
  185. #{hasKnowEmerPlanSame}
  186. </if>
  187. <if test="otherReasonNote != null and otherReasonNote != ''">and OTHER_REASON_NOTE = #{otherReasonNote}</if>
  188. <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
  189. <if test="recPers2 != null and recPers2 != ''">and REC_PERS2 = #{recPers2}</if>
  190. <if test="recPersTel != null and recPersTel != ''">and REC_PERS_TEL = #{recPersTel}</if>
  191. <if test="createTime != null">and CREATE_TIME = #{createTime}</if>
  192. <if test="updateTime != null">and UPDATE_TIME = #{updateTime}</if>
  193. <if test="status != null and status != ''">and STATUS = #{status}</if>
  194. <if test="dtyprsnId != null and dtyprsnId != ''">and DTYPRSN_ID = #{dtyprsnId}</if>
  195. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  196. <if test="dutyId != null and dutyId != ''">and DUTY_ID = #{dutyId}</if>
  197. <if test="command != null and command != ''">and COMMAND = #{command}</if>
  198. <if test="specialManage != null and specialManage != ''">and SPECIAL_MANAGE = #{specialManage}</if>
  199. <if test="manaOrg != null and manaOrg != ''">and MANA_ORG = #{manaOrg}</if>
  200. <if test="orgProp != null and orgProp != ''">and ORG_PROP = #{orgProp}</if>
  201. <if test="fundSour != null and fundSour != ''">and FUND_SOUR = #{fundSour}</if>
  202. <if test="fundSourCount != null and fundSourCount != ''">and FUND_SOUR_COUNT = #{fundSourCount}</if>
  203. <if test="noManHasPres != null and noManHasPres != ''">and NO_MAN_HAS_PRES = #{noManHasPres}</if>
  204. <if test="hasWiunWaoLegPers != null and hasWiunWaoLegPers != ''">and HAS_WIUN_WAO_LEG_PERS =
  205. #{hasWiunWaoLegPers}
  206. </if>
  207. <if test="wiunWaoLegPersId != null and wiunWaoLegPersId != ''">and WIUN_WAO_LEG_PERS_ID =
  208. #{wiunWaoLegPersId}
  209. </if>
  210. <if test="wiunWaoLegPers != null and wiunWaoLegPers != ''">and WIUN_WAO_LEG_PERS = #{wiunWaoLegPers}</if>
  211. <if test="wiunWaoLegPersTel != null and wiunWaoLegPersTel != ''">and WIUN_WAO_LEG_PERS_TEL =
  212. #{wiunWaoLegPersTel}
  213. </if>
  214. <if test="wiunWaoLegPersDuty != null and wiunWaoLegPersDuty != ''">and WIUN_WAO_LEG_PERS_DUTY =
  215. #{wiunWaoLegPersDuty}
  216. </if>
  217. <if test="wiunWaoLegPersResu != null and wiunWaoLegPersResu != ''">and WIUN_WAO_LEG_PERS_RESU =
  218. #{wiunWaoLegPersResu}
  219. </if>
  220. <if test="hasTechPers != null and hasTechPers != ''">and HAS_TECH_PERS = #{hasTechPers}</if>
  221. <if test="techPersId != null and techPersId != ''">and TECH_PERS_ID = #{techPersId}</if>
  222. <if test="techPers != null and techPers != ''">and TECH_PERS = #{techPers}</if>
  223. <if test="techPersTel != null and techPersTel != ''">and TECH_PERS_TEL = #{techPersTel}</if>
  224. <if test="techPersDuty != null and techPersDuty != ''">and TECH_PERS_DUTY = #{techPersDuty}</if>
  225. <if test="techPresNote != null and techPresNote != ''">and TECH_PRES_NOTE = #{techPresNote}</if>
  226. <if test="techPersResuNote != null and techPersResuNote != ''">and TECH_PERS_RESU_NOTE =
  227. #{techPersResuNote}
  228. </if>
  229. <if test="techPersResu != null and techPersResu != ''">and TECH_PERS_RESU = #{techPersResu}</if>
  230. <if test="hasPatrolPers != null and hasPatrolPers != ''">and HAS_PATROL_PERS = #{hasPatrolPers}</if>
  231. <if test="patrolPersId != null and patrolPersId != ''">and PATROL_PERS_ID = #{patrolPersId}</if>
  232. <if test="patrolPers != null and patrolPers != ''">and PATROL_PERS = #{patrolPers}</if>
  233. <if test="patrolPersTel != null and patrolPersTel != ''">and PATROL_PERS_TEL = #{patrolPersTel}</if>
  234. <if test="patrolPersNote != null and patrolPersNote != ''">and PATROL_PERS_NOTE = #{patrolPersNote}</if>
  235. <if test="patrolPersDuty != null and patrolPersDuty != ''">and PATROL_PERS_DUTY = #{patrolPersDuty}</if>
  236. <if test="patrolPersResuNote != null and patrolPersResuNote != ''">and PATROL_PERS_RESU_NOTE =
  237. #{patrolPersResuNote}
  238. </if>
  239. <if test="patrolPersResu != null and patrolPersResu != ''">and PATROL_PERS_RESU = #{patrolPersResu}</if>
  240. <if test="wiunWaoLegPersTrain != null and wiunWaoLegPersTrain != ''">and WIUN_WAO_LEG_PERS_TRAIN =
  241. #{wiunWaoLegPersTrain}
  242. </if>
  243. <if test="wiunWaoLegPersCnps != null and wiunWaoLegPersCnps != ''">and WIUN_WAO_LEG_PERS_CNPS =
  244. #{wiunWaoLegPersCnps}
  245. </if>
  246. <if test="techPersTrain != null and techPersTrain != ''">and TECH_PERS_TRAIN = #{techPersTrain}</if>
  247. <if test="techPersCnps != null and techPersCnps != ''">and TECH_PERS_CNPS = #{techPersCnps}</if>
  248. <if test="patrolPersTrain != null and patrolPersTrain != ''">and PATROL_PERS_TRAIN = #{patrolPersTrain}</if>
  249. <if test="patrolPersCnps != null and patrolPersCnps != ''">and PATROL_PERS_CNPS = #{patrolPersCnps}</if>
  250. </trim>
  251. </sql>
  252. <select id="get" resultMap="bisInspBasePresExtResultMap" parameterType="String">
  253. select
  254. <include refid="table_columns"/>
  255. from bis_insp_base_pres_ext where DUTY_ID = #{dutyId}
  256. <if test="dtyprsnId !=null and dtyprsnId !=''">
  257. and DTYPRSN_ID=#{dtyprsnId}
  258. </if>
  259. </select>
  260. <select id="getById" resultMap="bisInspBasePresExtResultMap" parameterType="String">
  261. select
  262. <include refid="table_columns"/>
  263. from bis_insp_base_pres_ext where DUTY_ID = #{dutyId}
  264. </select>
  265. <select id="getBy" resultMap="bisInspBasePresExtResultMap">
  266. select
  267. <include refid="table_columns"/>
  268. from BIS_INSP_BASE_PRES_EXT
  269. <include refid="page_where"/>
  270. </select>
  271. <select id="findAll" resultMap="bisInspBasePresExtResultMap">
  272. select
  273. <include refid="table_columns"/>
  274. from BIS_INSP_BASE_PRES_EXT
  275. </select>
  276. <select id="findList" resultMap="bisInspBasePresExtResultMap">
  277. select
  278. <include refid="table_columns"/>
  279. from BIS_INSP_BASE_PRES_EXT
  280. <include refid="page_where"/>
  281. </select>
  282. <select id="selectCount" resultType="int">
  283. select count(ID) from BIS_INSP_BASE_PRES_EXT
  284. <include refid="page_where"/>
  285. </select>
  286. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspBasePresExt">
  287. insert into BIS_INSP_BASE_PRES_EXT(
  288. <include refid="table_columns"/>
  289. )
  290. values (
  291. <include refid="entity_properties"/>
  292. )
  293. </insert>
  294. <delete id="delete" parameterType="java.lang.String">
  295. delete from bis_insp_base_pres_ext where DUTY_ID = #{DUTY_ID} and DTYPRSN_ID=#{DTYPRSN_ID}
  296. </delete>
  297. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspBasePresExt">
  298. delete from BIS_INSP_BASE_PRES_EXT
  299. <include refid="page_where"/>
  300. </delete>
  301. <update id="deleteInFlag" parameterType="java.lang.String">
  302. update BIS_INSP_BASE_PRES_EXT set flag_valid = 0 where ID = #{id}
  303. </update>
  304. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspBasePresExt">
  305. update BIS_INSP_BASE_PRES_EXT
  306. <trim prefix="set" suffixOverrides=",">
  307. <if test="hasAttendTrain != null and hasAttendTrain != ''">HAS_ATTEND_TRAIN = #{hasAttendTrain},</if>
  308. <if test="patrolFundSour != null and patrolFundSour != ''">PATROL_FUND_SOUR = #{patrolFundSour},</if>
  309. <if test="patrolReward != null and patrolReward != ''">PATROL_REWARD = #{patrolReward},</if>
  310. <if test="hasExtPatrol != null and hasExtPatrol != ''">HAS_EXT_PATROL = #{hasExtPatrol},</if>
  311. <if test="isPatrolMsgComp != null and isPatrolMsgComp != ''">IS_PATROL_MSG_COMP = #{isPatrolMsgComp},</if>
  312. <if test="protalRate != null and protalRate != ''">PROTAL_RATE = #{protalRate},</if>
  313. <if test="hasRepDangReal != null and hasRepDangReal != ''">HAS_REP_DANG_REAL = #{hasRepDangReal},</if>
  314. <if test="dangReportObj != null and dangReportObj != ''">DANG_REPORT_OBJ = #{dangReportObj},</if>
  315. <if test="hasReport != null and hasReport != ''">HAS_REPORT = #{hasReport},</if>
  316. <if test="hasFlLowLimLev != null and hasFlLowLimLev != ''">HAS_FL_LOW_LIM_LEV = #{hasFlLowLimLev},</if>
  317. <if test="hasKnowEmerPlanSame != null and hasKnowEmerPlanSame != ''">HAS_KNOW_EMER_PLAN_SAME =
  318. #{hasKnowEmerPlanSame},
  319. </if>
  320. <if test="otherReasonNote != null and otherReasonNote != ''">OTHER_REASON_NOTE = #{otherReasonNote},</if>
  321. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  322. <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
  323. <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
  324. <if test="createTime != null">CREATE_TIME = #{createTime},</if>
  325. <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
  326. <if test="status != null and status != ''">STATUS = #{status},</if>
  327. <if test="dtyprsnId != null and dtyprsnId != ''">DTYPRSN_ID = #{dtyprsnId},</if>
  328. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  329. <if test="dutyId != null and dutyId != ''">DUTY_ID = #{dutyId},</if>
  330. <if test="command != null and command != ''">COMMAND = #{command},</if>
  331. <if test="specialManage != null and specialManage != ''">SPECIAL_MANAGE = #{specialManage},</if>
  332. <if test="manaOrg != null and manaOrg != ''">MANA_ORG = #{manaOrg},</if>
  333. <if test="orgProp != null and orgProp != ''">ORG_PROP = #{orgProp},</if>
  334. <if test="fundSour != null and fundSour != ''">FUND_SOUR = #{fundSour},</if>
  335. <if test="fundSourCount != null and fundSourCount != ''">FUND_SOUR_COUNT = #{fundSourCount},</if>
  336. <if test="noManHasPres != null and noManHasPres != ''">NO_MAN_HAS_PRES = #{noManHasPres},</if>
  337. <if test="hasWiunWaoLegPers != null and hasWiunWaoLegPers != ''">HAS_WIUN_WAO_LEG_PERS =
  338. #{hasWiunWaoLegPers},
  339. </if>
  340. <if test="wiunWaoLegPersId != null and wiunWaoLegPersId != ''">WIUN_WAO_LEG_PERS_ID = #{wiunWaoLegPersId},
  341. </if>
  342. <if test="wiunWaoLegPers != null and wiunWaoLegPers != ''">WIUN_WAO_LEG_PERS = #{wiunWaoLegPers},</if>
  343. <if test="wiunWaoLegPersTel != null and wiunWaoLegPersTel != ''">WIUN_WAO_LEG_PERS_TEL =
  344. #{wiunWaoLegPersTel},
  345. </if>
  346. <if test="wiunWaoLegPersDuty != null and wiunWaoLegPersDuty != ''">WIUN_WAO_LEG_PERS_DUTY =
  347. #{wiunWaoLegPersDuty},
  348. </if>
  349. <if test="wiunWaoLegPersResu != null and wiunWaoLegPersResu != ''">WIUN_WAO_LEG_PERS_RESU =
  350. #{wiunWaoLegPersResu},
  351. </if>
  352. <if test="hasTechPers != null and hasTechPers != ''">HAS_TECH_PERS = #{hasTechPers},</if>
  353. <if test="techPersId != null and techPersId != ''">TECH_PERS_ID = #{techPersId},</if>
  354. <if test="techPers != null and techPers != ''">TECH_PERS = #{techPers},</if>
  355. <if test="techPersTel != null and techPersTel != ''">TECH_PERS_TEL = #{techPersTel},</if>
  356. <if test="techPersDuty != null and techPersDuty != ''">TECH_PERS_DUTY = #{techPersDuty},</if>
  357. <if test="techPresNote != null and techPresNote != ''">TECH_PRES_NOTE = #{techPresNote},</if>
  358. <if test="techPersResuNote != null and techPersResuNote != ''">TECH_PERS_RESU_NOTE = #{techPersResuNote},
  359. </if>
  360. <if test="techPersResu != null and techPersResu != ''">TECH_PERS_RESU = #{techPersResu},</if>
  361. <if test="hasPatrolPers != null and hasPatrolPers != ''">HAS_PATROL_PERS = #{hasPatrolPers},</if>
  362. <if test="patrolPersId != null and patrolPersId != ''">PATROL_PERS_ID = #{patrolPersId},</if>
  363. <if test="patrolPers != null and patrolPers != ''">PATROL_PERS = #{patrolPers},</if>
  364. <if test="patrolPersTel != null and patrolPersTel != ''">PATROL_PERS_TEL = #{patrolPersTel},</if>
  365. <if test="patrolPersNote != null and patrolPersNote != ''">PATROL_PERS_NOTE = #{patrolPersNote},</if>
  366. <if test="patrolPersDuty != null and patrolPersDuty != ''">PATROL_PERS_DUTY = #{patrolPersDuty},</if>
  367. <if test="patrolPersResuNote != null and patrolPersResuNote != ''">PATROL_PERS_RESU_NOTE =
  368. #{patrolPersResuNote},
  369. </if>
  370. <if test="patrolPersResu != null and patrolPersResu != ''">PATROL_PERS_RESU = #{patrolPersResu},</if>
  371. <if test="wiunWaoLegPersTrain != null and wiunWaoLegPersTrain != ''">WIUN_WAO_LEG_PERS_TRAIN =
  372. #{wiunWaoLegPersTrain},
  373. </if>
  374. <if test="wiunWaoLegPersCnps != null and wiunWaoLegPersCnps != ''">WIUN_WAO_LEG_PERS_CNPS =
  375. #{wiunWaoLegPersCnps},
  376. </if>
  377. <if test="techPersTrain != null and techPersTrain != ''">TECH_PERS_TRAIN = #{techPersTrain},</if>
  378. <if test="techPersCnps != null and techPersCnps != ''">TECH_PERS_CNPS = #{techPersCnps},</if>
  379. <if test="patrolPersTrain != null and patrolPersTrain != ''">PATROL_PERS_TRAIN = #{patrolPersTrain},</if>
  380. <if test="patrolPersCnps != null and patrolPersCnps != ''">PATROL_PERS_CNPS = #{patrolPersCnps},</if>
  381. </trim>
  382. <where>DUTY_ID = #{dutyId}</where>
  383. </update>
  384. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspBasePresExt">
  385. update BIS_INSP_BASE_PRES_EXT
  386. <trim prefix="set" suffixOverrides=",">
  387. <if test="hasAttendTrain != null and hasAttendTrain != ''">HAS_ATTEND_TRAIN = #{hasAttendTrain},</if>
  388. <if test="patrolFundSour != null and patrolFundSour != ''">PATROL_FUND_SOUR = #{patrolFundSour},</if>
  389. <if test="patrolReward != null and patrolReward != ''">PATROL_REWARD = #{patrolReward},</if>
  390. <if test="hasExtPatrol != null and hasExtPatrol != ''">HAS_EXT_PATROL = #{hasExtPatrol},</if>
  391. <if test="isPatrolMsgComp != null and isPatrolMsgComp != ''">IS_PATROL_MSG_COMP = #{isPatrolMsgComp},</if>
  392. <if test="protalRate != null and protalRate != ''">PROTAL_RATE = #{protalRate},</if>
  393. <if test="hasRepDangReal != null and hasRepDangReal != ''">HAS_REP_DANG_REAL = #{hasRepDangReal},</if>
  394. <if test="dangReportObj != null and dangReportObj != ''">DANG_REPORT_OBJ = #{dangReportObj},</if>
  395. <if test="hasReport != null and hasReport != ''">HAS_REPORT = #{hasReport},</if>
  396. <if test="hasFlLowLimLev != null and hasFlLowLimLev != ''">HAS_FL_LOW_LIM_LEV = #{hasFlLowLimLev},</if>
  397. <if test="hasKnowEmerPlanSame != null and hasKnowEmerPlanSame != ''">HAS_KNOW_EMER_PLAN_SAME =
  398. #{hasKnowEmerPlanSame},
  399. </if>
  400. <if test="otherReasonNote != null and otherReasonNote != ''">OTHER_REASON_NOTE = #{otherReasonNote},</if>
  401. <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
  402. <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
  403. <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
  404. <if test="createTime != null">CREATE_TIME = #{createTime},</if>
  405. <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
  406. <if test="status != null and status != ''">STATUS = #{status},</if>
  407. <if test="dtyprsnId != null and dtyprsnId != ''">DTYPRSN_ID = #{dtyprsnId},</if>
  408. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  409. <if test="dutyId != null and dutyId != ''">DUTY_ID = #{dutyId},</if>
  410. <if test="command != null and command != ''">COMMAND = #{command},</if>
  411. <if test="specialManage != null and specialManage != ''">SPECIAL_MANAGE = #{specialManage},</if>
  412. <if test="manaOrg != null and manaOrg != ''">MANA_ORG = #{manaOrg},</if>
  413. <if test="orgProp != null and orgProp != ''">ORG_PROP = #{orgProp},</if>
  414. <if test="fundSour != null and fundSour != ''">FUND_SOUR = #{fundSour},</if>
  415. <if test="fundSourCount != null and fundSourCount != ''">FUND_SOUR_COUNT = #{fundSourCount},</if>
  416. <if test="noManHasPres != null and noManHasPres != ''">NO_MAN_HAS_PRES = #{noManHasPres},</if>
  417. <if test="hasWiunWaoLegPers != null and hasWiunWaoLegPers != ''">HAS_WIUN_WAO_LEG_PERS =
  418. #{hasWiunWaoLegPers},
  419. </if>
  420. <if test="wiunWaoLegPersId != null and wiunWaoLegPersId != ''">WIUN_WAO_LEG_PERS_ID = #{wiunWaoLegPersId},
  421. </if>
  422. <if test="wiunWaoLegPers != null and wiunWaoLegPers != ''">WIUN_WAO_LEG_PERS = #{wiunWaoLegPers},</if>
  423. <if test="wiunWaoLegPersTel != null and wiunWaoLegPersTel != ''">WIUN_WAO_LEG_PERS_TEL =
  424. #{wiunWaoLegPersTel},
  425. </if>
  426. <if test="wiunWaoLegPersDuty != null and wiunWaoLegPersDuty != ''">WIUN_WAO_LEG_PERS_DUTY =
  427. #{wiunWaoLegPersDuty},
  428. </if>
  429. <if test="wiunWaoLegPersResu != null and wiunWaoLegPersResu != ''">WIUN_WAO_LEG_PERS_RESU =
  430. #{wiunWaoLegPersResu},
  431. </if>
  432. <if test="hasTechPers != null and hasTechPers != ''">HAS_TECH_PERS = #{hasTechPers},</if>
  433. <if test="techPersId != null and techPersId != ''">TECH_PERS_ID = #{techPersId},</if>
  434. <if test="techPers != null and techPers != ''">TECH_PERS = #{techPers},</if>
  435. <if test="techPersTel != null and techPersTel != ''">TECH_PERS_TEL = #{techPersTel},</if>
  436. <if test="techPersDuty != null and techPersDuty != ''">TECH_PERS_DUTY = #{techPersDuty},</if>
  437. <if test="techPresNote != null and techPresNote != ''">TECH_PRES_NOTE = #{techPresNote},</if>
  438. <if test="techPersResuNote != null and techPersResuNote != ''">TECH_PERS_RESU_NOTE = #{techPersResuNote},
  439. </if>
  440. <if test="techPersResu != null and techPersResu != ''">TECH_PERS_RESU = #{techPersResu},</if>
  441. <if test="hasPatrolPers != null and hasPatrolPers != ''">HAS_PATROL_PERS = #{hasPatrolPers},</if>
  442. <if test="patrolPersId != null and patrolPersId != ''">PATROL_PERS_ID = #{patrolPersId},</if>
  443. <if test="patrolPers != null and patrolPers != ''">PATROL_PERS = #{patrolPers},</if>
  444. <if test="patrolPersTel != null and patrolPersTel != ''">PATROL_PERS_TEL = #{patrolPersTel},</if>
  445. <if test="patrolPersNote != null and patrolPersNote != ''">PATROL_PERS_NOTE = #{patrolPersNote},</if>
  446. <if test="patrolPersDuty != null and patrolPersDuty != ''">PATROL_PERS_DUTY = #{patrolPersDuty},</if>
  447. <if test="patrolPersResuNote != null and patrolPersResuNote != ''">PATROL_PERS_RESU_NOTE =
  448. #{patrolPersResuNote},
  449. </if>
  450. <if test="patrolPersResu != null and patrolPersResu != ''">PATROL_PERS_RESU = #{patrolPersResu},</if>
  451. <if test="wiunWaoLegPersTrain != null and wiunWaoLegPersTrain != ''">WIUN_WAO_LEG_PERS_TRAIN =
  452. #{wiunWaoLegPersTrain},
  453. </if>
  454. <if test="wiunWaoLegPersCnps != null and wiunWaoLegPersCnps != ''">WIUN_WAO_LEG_PERS_CNPS =
  455. #{wiunWaoLegPersCnps},
  456. </if>
  457. <if test="techPersTrain != null and techPersTrain != ''">TECH_PERS_TRAIN = #{techPersTrain},</if>
  458. <if test="techPersCnps != null and techPersCnps != ''">TECH_PERS_CNPS = #{techPersCnps},</if>
  459. <if test="patrolPersTrain != null and patrolPersTrain != ''">PATROL_PERS_TRAIN = #{patrolPersTrain},</if>
  460. <if test="patrolPersCnps != null and patrolPersCnps != ''">PATROL_PERS_CNPS = #{patrolPersCnps},</if>
  461. </trim>
  462. <include refid="page_where"/>
  463. </update>
  464. <!-- 其他自定义SQL -->
  465. </mapper>