GoafHdangerMapper.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  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="com.zhyc.xps.goaf.mapper.GoafHdangerMapper">
  4. <resultMap id="GoafHdangerMapper" type="com.zhyc.xps.goaf.dto.GoafHdangerDto">
  5. <result column="hdanger_id" property="hdangerId" jdbcType="BIGINT" />
  6. <result column="oc_id" property="ocId" jdbcType="BIGINT" />
  7. <result column="goaf_id" property="goafId" jdbcType="BIGINT" />
  8. <result column="goaf_dev_id" property="goafDevId" jdbcType="BIGINT" />
  9. <result column="hdanger_title" property="hdangerTitle" jdbcType="VARCHAR" />
  10. <result column="hdanger_level" property="hdangerLevel" jdbcType="BIGINT" />
  11. <result column="checklist_id" property="checklistId" jdbcType="BIGINT" />
  12. <result column="hdanger_desc" property="hdangerDesc" jdbcType="VARCHAR" />
  13. <result column="submit_group_id" property="submitGroupId" jdbcType="BIGINT" />
  14. <result column="submit_group_name" property="submitGroupName" jdbcType="BIGINT" />
  15. <result column="submit_position_id" property="submitPositionId" jdbcType="BIGINT" />
  16. <result column="submit_position_name" property="submitPositionName" jdbcType="VARCHAR" />
  17. <result column="submit_account_id" property="submitAccountId" jdbcType="BIGINT" />
  18. <result column="submit_account_name" property="submitAccountName" jdbcType="VARCHAR" />
  19. <result column="submit_time" property="submitTime" jdbcType="TIMESTAMP"/>
  20. <result column="review_group_id" property="reviewGroupId" jdbcType="BIGINT" />
  21. <result column="review_group_name" property="reviewGroupName" jdbcType="VARCHAR" />
  22. <result column="review_position_id" property="reviewPositionId" jdbcType="BIGINT" />
  23. <result column="review_position_name" property="reviewPositionName" jdbcType="VARCHAR" />
  24. <result column="review_account_id" property="reviewAccountId" jdbcType="BIGINT" />
  25. <result column="review_account_name" property="reviewAccountName" jdbcType="VARCHAR" />
  26. <result column="danger_deadline" property="dangerDeadline" jdbcType="TIMESTAMP"/>
  27. <result column="review_time" property="reviewTime" jdbcType="TIMESTAMP"/>
  28. <result column="review_remark" property="reviewRemark" jdbcType="VARCHAR" />
  29. <result column="rectify_group_id" property="rectifyGroupId" jdbcType="BIGINT" />
  30. <result column="rectify_group_name" property="rectifyGroupName" jdbcType="VARCHAR" />
  31. <result column="rectify_position_id" property="rectifyPositionId" jdbcType="BIGINT" />
  32. <result column="rectify_position_name" property="rectifyPositionName" jdbcType="VARCHAR" />
  33. <result column="rectify_account_id" property="rectifyAccountId" jdbcType="BIGINT" />
  34. <result column="rectify_account_name" property="rectifyAccountName" jdbcType="VARCHAR" />
  35. <result column="rectify_time" property="rectifyTime" jdbcType="TIMESTAMP"/>
  36. <result column="danger_reason" property="dangerReason" jdbcType="VARCHAR" />
  37. <result column="rectify_measure" property="rectifyMeasure" jdbcType="VARCHAR" />
  38. <result column="rectify_remark" property="rectifyRemark" jdbcType="VARCHAR" />
  39. <result column="accept_group_id" property="acceptGroupId" jdbcType="BIGINT" />
  40. <result column="accept_group_name" property="acceptGroupName" jdbcType="VARCHAR" />
  41. <result column="accept_position_id" property="acceptPositionId" jdbcType="BIGINT" />
  42. <result column="accept_position_name" property="acceptPositionName" jdbcType="VARCHAR" />
  43. <result column="accept_account_id" property="acceptAccountId" jdbcType="BIGINT" />
  44. <result column="accept_account_name" property="acceptAccountName" jdbcType="VARCHAR" />
  45. <result column="accept_time" property="acceptTime" jdbcType="TIMESTAMP"/>
  46. <result column="accept_remark" property="acceptRemark" jdbcType="VARCHAR" />
  47. <result column="finish_time" property="finishTime" jdbcType="TIMESTAMP"/>
  48. <result column="status" property="status" jdbcType="BIGINT" />
  49. <result column="wf_def_id" property="wfDefId" jdbcType="BIGINT"/>
  50. <result column="wf_ins_id" property="wfInsId" jdbcType="BIGINT"/>
  51. <result column="wf_ins_title" property="wfInsTitle" jdbcType="VARCHAR"/>
  52. <result column="cur_group_id" property="curGroupId" jdbcType="BIGINT"/>
  53. <result column="cur_group_name" property="curGroupName" jdbcType="VARCHAR"/>
  54. <result column="cur_position_id" property="curPositionId" jdbcType="BIGINT"/>
  55. <result column="cur_position_name" property="curPositionName" jdbcType="VARCHAR"/>
  56. <result column="cur_account_id" property="curAccountId" jdbcType="BIGINT"/>
  57. <result column="cur_account_name" property="curAccountName" jdbcType="VARCHAR"/>
  58. <result column="cur_activity_ins_id" property="curActivityInsId" jdbcType="BIGINT"/>
  59. <result column="cur_activity_code" property="curActivityCode" jdbcType="VARCHAR"/>
  60. <result column="cur_activity_title" property="curActivityTitle" jdbcType="VARCHAR"/>
  61. <result column="cur_form_code" property="curFormCode" jdbcType="VARCHAR"/>
  62. <result column="cur_activity_begin_time" property="curActivityBeginTime" jdbcType="TIMESTAMP"/>
  63. </resultMap>
  64. <sql id="GoafHdangerDto_Cols">
  65. A.hdanger_id,
  66. A.oc_id,
  67. A.goaf_id,
  68. A.hdanger_title,
  69. A.hdanger_level,
  70. A.hdanger_type,
  71. A.checklist_id,
  72. A.hdanger_desc,
  73. A.submit_group_id,
  74. A.submit_group_name,
  75. A.submit_position_id,
  76. A.submit_position_name,
  77. A.submit_account_id,
  78. A.submit_account_name,
  79. A.submit_time,
  80. A.review_group_id,
  81. A.review_group_name,
  82. A.review_position_id,
  83. A.review_position_name,
  84. A.review_account_id,
  85. A.review_account_name,
  86. A.danger_deadline,
  87. A.review_time,
  88. A.review_remark,
  89. A.rectify_group_id,
  90. A.rectify_group_name,
  91. A.rectify_position_id,
  92. A.rectify_position_name,
  93. A.rectify_account_id,
  94. A.rectify_account_name,
  95. A.rectify_time,
  96. A.danger_reason,
  97. A.rectify_measure,
  98. A.rectify_remark,
  99. A.accept_group_id,
  100. A.accept_group_name,
  101. A.accept_position_id,
  102. A.accept_position_name,
  103. A.accept_account_id,
  104. A.accept_account_name,
  105. A.accept_time,
  106. A.accept_remark,
  107. A.finish_time,
  108. A.status,
  109. B.wf_def_id,
  110. B.wf_ins_id,
  111. B.wf_ins_title,
  112. B.cur_group_id,
  113. B.cur_group_name,
  114. B.cur_position_id,
  115. B.cur_position_name,
  116. B.cur_account_id,
  117. B.cur_account_name,
  118. B.cur_activity_ins_id,
  119. B.cur_activity_code,
  120. B.cur_activity_title,
  121. B.cur_form_code,
  122. B.cur_activity_begin_time
  123. </sql>
  124. <!--列表查询-->
  125. <select id="getByList" parameterType="java.util.Map" resultMap="GoafHdangerMapper">
  126. SELECT
  127. <include refid="GoafHdangerDto_Cols"/>
  128. FROM goaf_hdanger AS A
  129. LEFT JOIN wf_ins AS B ON A.hdanger_id = B.wf_ins_id
  130. WHERE A.oc_id = #{ocId ,jdbcType=BIGINT}
  131. <!-- <if test="keywords != null and keywords != ''">-->
  132. <!-- AND A.hdanger_id like "%"#{keyword}"%"-->
  133. <!-- </if>-->
  134. <if test="goafId != null">
  135. AND A.goaf_id = #{goafId ,jdbcType=BIGINT}
  136. </if>
  137. <if test="submitAccountId != null">
  138. AND A.submit_account_id = #{submitAccountId ,jdbcType=BIGINT}
  139. </if>
  140. <if test="submitGroupId != null">
  141. AND A.submit_group_id = #{submitGroupId ,jdbcType=BIGINT}
  142. </if>
  143. <if test="hdangerType != null">
  144. AND A.hdanger_type = #{hdangerType ,jdbcType=BIGINT}
  145. </if>
  146. <if test="reviewAccountId != null">
  147. AND A.review_account_id = #{reviewAccountId ,jdbcType=BIGINT}
  148. </if>
  149. <if test="reviewGroupId != null">
  150. AND A.review_group_id = #{reviewGroupId ,jdbcType=BIGINT}
  151. </if>
  152. <if test="rectifyAccountId != null">
  153. AND A.rectify_account_id = #{rectifyAccountId ,jdbcType=BIGINT}
  154. </if>
  155. <if test="rectifyGroupId != null">
  156. AND A.rectify_group_id = #{rectifyGroupId ,jdbcType=BIGINT}
  157. </if>
  158. <if test="acceptAccountId != null">
  159. AND A.accept_account_id = #{acceptAccountId ,jdbcType=BIGINT}
  160. </if>
  161. <if test="hdangerLevel != null">
  162. AND A.hdanger_level = #{hdangerLevel ,jdbcType=BIGINT}
  163. </if>
  164. <if test="acceptGroupId != null">
  165. AND A.accept_group_id = #{acceptGroupId ,jdbcType=BIGINT}
  166. </if>
  167. <if test="status != null">
  168. AND A.status = #{status ,jdbcType=BIGINT}
  169. </if>
  170. <if test="startSubmitTime != null and endSubmitTime != null">
  171. <![CDATA[
  172. AND A.submit_time >= #{startSubmitTime, jdbcType=TIMESTAMP}
  173. AND A.submit_time <= #{endSubmitTime, jdbcType=TIMESTAMP}
  174. ]]>
  175. </if>
  176. <if test="handleAccountId != null">
  177. AND (
  178. A.review_account_id = #{handleAccountId ,jdbcType=BIGINT}
  179. OR
  180. A.rectify_account_id = #{handleAccountId ,jdbcType=BIGINT}
  181. OR
  182. A.accept_account_id = #{handleAccountId ,jdbcType=BIGINT}
  183. )
  184. </if>
  185. <if test="handleGroupId != null">
  186. AND (
  187. A.review_group_id = #{handleGroupId ,jdbcType=BIGINT}
  188. OR
  189. A.rectify_group_id = #{handleGroupId ,jdbcType=BIGINT}
  190. OR
  191. A.accept_group_id = #{handleGroupId ,jdbcType=BIGINT}
  192. )
  193. </if>
  194. ORDER BY A.submit_time DESC
  195. </select>
  196. <!--分页查询-->
  197. <select id="getByPage" parameterType="java.util.Map" resultMap="GoafHdangerMapper">
  198. SELECT
  199. <include refid="GoafHdangerDto_Cols"/>
  200. FROM goaf_hdanger AS A
  201. LEFT JOIN wf_ins AS B ON A.hdanger_id = B.wf_ins_id
  202. WHERE A.oc_id = #{ocId ,jdbcType=BIGINT}
  203. <!-- <if test="keywords != null and keywords != ''">-->
  204. <!-- AND A.hdanger_id like "%"#{keyword}"%"-->
  205. <!-- </if>-->
  206. <if test="goafId != null">
  207. AND A.goaf_id = #{goafId ,jdbcType=BIGINT}
  208. </if>
  209. <if test="submitAccountId != null">
  210. AND A.submit_account_id = #{submitAccountId ,jdbcType=BIGINT}
  211. </if>
  212. <if test="submitGroupId != null">
  213. AND A.submit_group_id = #{submitGroupId ,jdbcType=BIGINT}
  214. </if>
  215. <if test="hdangerType != null">
  216. AND A.hdanger_type = #{hdangerType ,jdbcType=BIGINT}
  217. </if>
  218. <if test="reviewAccountId != null">
  219. AND A.review_account_id = #{reviewAccountId ,jdbcType=BIGINT}
  220. </if>
  221. <if test="reviewGroupId != null">
  222. AND A.review_group_id = #{reviewGroupId ,jdbcType=BIGINT}
  223. </if>
  224. <if test="rectifyAccountId != null">
  225. AND A.rectify_account_id = #{rectifyAccountId ,jdbcType=BIGINT}
  226. </if>
  227. <if test="rectifyGroupId != null">
  228. AND A.rectify_group_id = #{rectifyGroupId ,jdbcType=BIGINT}
  229. </if>
  230. <if test="acceptAccountId != null">
  231. AND A.accept_account_id = #{acceptAccountId ,jdbcType=BIGINT}
  232. </if>
  233. <if test="hdangerLevel != null">
  234. AND A.hdanger_level = #{hdangerLevel ,jdbcType=BIGINT}
  235. </if>
  236. <if test="acceptGroupId != null">
  237. AND A.accept_group_id = #{acceptGroupId ,jdbcType=BIGINT}
  238. </if>
  239. <if test="status != null">
  240. AND A.status = #{status ,jdbcType=BIGINT}
  241. </if>
  242. <if test="startSubmitTime != null and endSubmitTime != null">
  243. <![CDATA[
  244. AND A.submit_time >= #{startSubmitTime, jdbcType=TIMESTAMP}
  245. AND A.submit_time <= #{endSubmitTime, jdbcType=TIMESTAMP}
  246. ]]>
  247. </if>
  248. <if test="handleAccountId != null">
  249. AND (
  250. A.review_account_id = #{handleAccountId ,jdbcType=BIGINT}
  251. OR
  252. A.rectify_account_id = #{handleAccountId ,jdbcType=BIGINT}
  253. OR
  254. A.accept_account_id = #{handleAccountId ,jdbcType=BIGINT}
  255. )
  256. </if>
  257. <if test="handleGroupId != null">
  258. AND (
  259. A.review_group_id = #{handleGroupId ,jdbcType=BIGINT}
  260. OR
  261. A.rectify_group_id = #{handleGroupId ,jdbcType=BIGINT}
  262. OR
  263. A.accept_group_id = #{handleGroupId ,jdbcType=BIGINT}
  264. )
  265. </if>
  266. ORDER BY A.submit_time DESC
  267. </select>
  268. <!--基于ID查询-->
  269. <select id="getById" resultMap="GoafHdangerMapper">
  270. SELECT
  271. <include refid="GoafHdangerDto_Cols"/>
  272. FROM goaf_hdanger AS A
  273. LEFT JOIN wf_ins AS B ON A.hdanger_id = B.wf_ins_id
  274. WHERE A.hdanger_id = #{hdangerId ,jdbcType=BIGINT}
  275. </select>
  276. <!--新增-->
  277. <insert id="create" parameterType="com.zhyc.xps.goaf.entity.GoafHdanger">
  278. INSERT INTO goaf_hdanger
  279. <trim prefix="(" suffix=")" suffixOverrides=",">
  280. <if test="hdangerId != null">
  281. hdanger_id,
  282. </if>
  283. <if test="ocId != null">
  284. oc_id,
  285. </if>
  286. <if test="goafId != null">
  287. goaf_id,
  288. </if>
  289. <if test="goafDevId != null">
  290. goaf_dev_id,
  291. </if>
  292. <if test="goafDataId != null">
  293. goaf_data_id,
  294. </if>
  295. <if test="hdangerTitle != null and hdangerTitle != ''">
  296. hdanger_title,
  297. </if>
  298. <if test="hdangerLevel!= null">
  299. hdanger_level,
  300. </if>
  301. <if test="hdangerType!= null">
  302. hdanger_type,
  303. </if>
  304. <if test="checklistId != null">
  305. checklist_id,
  306. </if>
  307. <if test="hdangerDesc != null and hdangerDesc != ''">
  308. hdanger_desc,
  309. </if>
  310. <if test="submitGroupId != null">
  311. submit_group_id,
  312. </if>
  313. <if test="submitGroupName != null and submitGroupName != ''">
  314. submit_group_name,
  315. </if>
  316. <if test="submitPositionId != null">
  317. submit_position_id,
  318. </if>
  319. <if test="submitPositionName != null and submitPositionName != ''">
  320. submit_position_name,
  321. </if>
  322. <if test="submitAccountId != null">
  323. submit_account_id,
  324. </if>
  325. <if test="submitAccountName != null and submitAccountName != ''">
  326. submit_account_name,
  327. </if>
  328. <if test="submitTime != null">
  329. submit_time,
  330. </if>
  331. <if test="reviewGroupId != null">
  332. review_group_id,
  333. </if>
  334. <if test="reviewGroupName != null and reviewGroupName != ''">
  335. review_group_name,
  336. </if>
  337. <if test="reviewPositionId != null">
  338. review_position_id,
  339. </if>
  340. <if test="reviewPositionName != null and reviewPositionName != ''">
  341. review_position_name,
  342. </if>
  343. <if test="reviewAccountId != null">
  344. review_account_id,
  345. </if>
  346. <if test="reviewAccountName != null and reviewAccountName != ''">
  347. review_account_name,
  348. </if>
  349. <if test="dangerDeadline != null">
  350. danger_deadline,
  351. </if>
  352. <if test="status != null">
  353. status,
  354. </if>
  355. </trim>
  356. <trim prefix="values (" suffix=")" suffixOverrides=",">
  357. <if test="hdangerId != null">
  358. #{hdangerId ,jdbcType=BIGINT},
  359. </if>
  360. <if test="ocId != null">
  361. #{ocId ,jdbcType=BIGINT},
  362. </if>
  363. <if test="goafId != null">
  364. #{goafId ,jdbcType=BIGINT},
  365. </if>
  366. <if test="goafDevId != null">
  367. #{goafDevId ,jdbcType=BIGINT},
  368. </if>
  369. <if test="goafDataId != null">
  370. #{goafDataId ,jdbcType=BIGINT},
  371. </if>
  372. <if test="hdangerTitle != null and hdangerTitle != ''">
  373. #{hdangerTitle ,jdbcType=VARCHAR},
  374. </if>
  375. <if test="hdangerLevel!= null">
  376. #{hdangerLevel ,jdbcType=BIGINT},
  377. </if>
  378. <if test="hdangerType!= null">
  379. #{hdangerType ,jdbcType=BIGINT},
  380. </if>
  381. <if test="checklistId != null">
  382. #{checklistId ,jdbcType=BIGINT},
  383. </if>
  384. <if test="hdangerDesc != null and hdangerDesc != ''">
  385. #{hdangerDesc ,jdbcType=VARCHAR},
  386. </if>
  387. <if test="submitGroupId != null">
  388. #{submitGroupId ,jdbcType=BIGINT},
  389. </if>
  390. <if test="submitGroupName != null and submitGroupName != ''">
  391. #{submitGroupName ,jdbcType=VARCHAR},
  392. </if>
  393. <if test="submitPositionId != null">
  394. #{submitPositionId ,jdbcType=BIGINT},
  395. </if>
  396. <if test="submitPositionName != null and submitPositionName != ''">
  397. #{submitPositionName ,jdbcType=VARCHAR},
  398. </if>
  399. <if test="submitAccountId != null">
  400. #{submitAccountId ,jdbcType=BIGINT},
  401. </if>
  402. <if test="submitAccountName != null and submitAccountName != ''">
  403. #{submitAccountName ,jdbcType=VARCHAR},
  404. </if>
  405. <if test="submitTime != null">
  406. #{submitTime ,jdbcType=TIMESTAMP},
  407. </if>
  408. <if test="reviewGroupId != null">
  409. #{reviewGroupId ,jdbcType=BIGINT},
  410. </if>
  411. <if test="reviewGroupName != null and reviewGroupName != ''">
  412. #{reviewGroupName ,jdbcType=VARCHAR},
  413. </if>
  414. <if test="reviewPositionId != null">
  415. #{reviewPositionId ,jdbcType=BIGINT},
  416. </if>
  417. <if test="reviewPositionName != null and reviewPositionName != ''">
  418. #{reviewPositionName ,jdbcType=VARCHAR},
  419. </if>
  420. <if test="reviewAccountId != null">
  421. #{reviewAccountId ,jdbcType=BIGINT},
  422. </if>
  423. <if test="reviewAccountName != null and reviewAccountName != ''">
  424. #{reviewAccountName ,jdbcType=VARCHAR},
  425. </if>
  426. <if test="dangerDeadline != null">
  427. #{dangerDeadline ,jdbcType=TIMESTAMP},
  428. </if>
  429. <if test="status != null">
  430. #{status ,jdbcType=BIGINT},
  431. </if>
  432. </trim>
  433. </insert>
  434. <!--Update-->
  435. <update id="update" parameterType="com.zhyc.xps.goaf.entity.GoafHdanger">
  436. UPDATE goaf_hdanger
  437. <trim suffixOverrides=",">
  438. <set>
  439. <if test="hdangerTitle != null and hdangerTitle != ''">
  440. hdanger_title = #{hdangerTitle, jdbcType=VARCHAR},
  441. </if>
  442. <if test="hdangerLevel!= null">
  443. hdanger_level = #{hdangerLevel ,jdbcType=BIGINT},
  444. </if>
  445. <if test="hdangerDesc != null and hdangerDesc != ''">
  446. hdanger_desc = #{hdangerDesc, jdbcType=VARCHAR},
  447. </if>
  448. <if test="submitGroupId != null">
  449. submit_group_id = #{submitGroupId ,jdbcType=BIGINT},
  450. </if>
  451. <if test="submitGroupName != null and submitGroupName !=''">
  452. submit_group_name = #{submitGroupName ,jdbcType=VARCHAR},
  453. </if>
  454. <if test="submitPositionId != null">
  455. submit_position_id = #{submitPositionId ,jdbcType=BIGINT},
  456. </if>
  457. <if test="submitPositionName != null and submitPositionName != ''">
  458. submit_position_name = #{submitPositionName ,jdbcType=VARCHAR},
  459. </if>
  460. <if test="submitAccountId != null">
  461. submit_account_id = #{submitAccountId ,jdbcType=BIGINT},
  462. </if>
  463. <if test="submitAccountName != null and submitAccountName != ''">
  464. submit_account_name = #{submitAccountName ,jdbcType=VARCHAR},
  465. </if>
  466. <if test="submitTime != null">
  467. submit_time = #{submitTime ,jdbcType=TIMESTAMP},
  468. </if>
  469. <if test="reviewGroupId != null">
  470. review_group_id = #{reviewGroupId ,jdbcType=BIGINT},
  471. </if>
  472. <if test="reviewGroupName != null and reviewGroupName != ''">
  473. review_group_name = #{reviewGroupName ,jdbcType=VARCHAR},
  474. </if>
  475. <if test="reviewPositionId != null">
  476. review_position_id = #{reviewPositionId ,jdbcType=BIGINT},
  477. </if>
  478. <if test="reviewPositionName != null and reviewPositionName !=''">
  479. review_position_name = #{reviewPositionName ,jdbcType=VARCHAR},
  480. </if>
  481. <if test="reviewAccountId != null">
  482. review_account_id = #{reviewAccountId ,jdbcType=BIGINT},
  483. </if>
  484. <if test="reviewAccountName != null and reviewAccountName !=''">
  485. review_account_name = #{reviewAccountName ,jdbcType=VARCHAR},
  486. </if>
  487. <if test="dangerDeadline != null">
  488. danger_deadline = #{dangerDeadline ,jdbcType=TIMESTAMP},
  489. </if>
  490. <if test="reviewTime != null">
  491. review_time = #{reviewTime ,jdbcType=TIMESTAMP},
  492. </if>
  493. <if test="reviewRemark != null and reviewRemark != ''">
  494. review_remark = #{reviewRemark ,jdbcType=VARCHAR},
  495. </if>
  496. <if test="rectifyGroupId != null">
  497. rectify_group_id = #{rectifyGroupId ,jdbcType=BIGINT},
  498. </if>
  499. <if test="rectifyGroupName != null and rectifyGroupName !=''">
  500. rectify_group_name = #{rectifyGroupName ,jdbcType=VARCHAR},
  501. </if>
  502. <if test="rectifyPositionId != null">
  503. rectify_position_id = #{rectifyPositionId ,jdbcType=BIGINT},
  504. </if>
  505. <if test="rectifyPositionName != null and rectifyPositionName !=''">
  506. rectify_position_name = #{rectifyPositionName ,jdbcType=VARCHAR},
  507. </if>
  508. <if test="rectifyAccountId != null">
  509. rectify_account_id = #{rectifyAccountId ,jdbcType=BIGINT},
  510. </if>
  511. <if test="rectifyAccountName != null and rectifyAccountName !=''">
  512. rectify_account_name = #{rectifyAccountName ,jdbcType=VARCHAR},
  513. </if>
  514. <if test="rectifyTime != null">
  515. rectify_time = #{rectifyTime ,jdbcType=TIMESTAMP},
  516. </if>
  517. <if test="dangerReason != null and dangerReason != ''">
  518. danger_reason = #{dangerReason, jdbcType=VARCHAR},
  519. </if>
  520. <if test="rectifyMeasure != null and rectifyMeasure != ''">
  521. rectify_measure = #{rectifyMeasure, jdbcType=VARCHAR},
  522. </if>
  523. <if test="rectifyRemark != null and rectifyRemark != ''">
  524. rectify_remark = #{rectifyRemark, jdbcType=VARCHAR},
  525. </if>
  526. <if test="acceptGroupId != null">
  527. accept_group_id = #{acceptGroupId ,jdbcType=BIGINT},
  528. </if>
  529. <if test="acceptGroupName != null and acceptGroupName !=''">
  530. accept_group_name = #{acceptGroupName ,jdbcType=VARCHAR},
  531. </if>
  532. <if test="acceptPositionId != null">
  533. accept_position_id = #{acceptPositionId ,jdbcType=BIGINT},
  534. </if>
  535. <if test="acceptPositionName != null and acceptPositionName !=''">
  536. accept_position_name = #{acceptPositionName ,jdbcType=VARCHAR},
  537. </if>
  538. <if test="acceptAccountId != null">
  539. accept_account_id = #{acceptAccountId ,jdbcType=BIGINT},
  540. </if>
  541. <if test="acceptAccountName != null and acceptAccountName !=''">
  542. accept_account_name = #{acceptAccountName ,jdbcType=VARCHAR},
  543. </if>
  544. <if test="acceptTime != null">
  545. accept_time = #{acceptTime ,jdbcType=TIMESTAMP},
  546. </if>
  547. <if test="acceptRemark != null and acceptRemark != ''">
  548. accept_remark = #{acceptRemark ,jdbcType=VARCHAR},
  549. </if>
  550. <if test="finishTime != null">
  551. finish_time = #{finishTime ,jdbcType=TIMESTAMP},
  552. </if>
  553. <if test="status != null ">
  554. status = #{status ,jdbcType=BIGINT},
  555. </if>
  556. </set>
  557. </trim>
  558. WHERE hdanger_id = #{hdangerId ,jdbcType=BIGINT}
  559. </update>
  560. <!--删除-->
  561. <delete id="delete" >
  562. DELETE FROM goaf_hdanger
  563. WHERE hdanger_id = #{hdangerId ,jdbcType=BIGINT}
  564. </delete>
  565. </mapper>