BisInspBasePresExtRDao.xml 31 KB

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