123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="com.zhyc.xps.goaf.mapper.GoafHdangerMapper">
- <resultMap id="GoafHdangerMapper" type="com.zhyc.xps.goaf.dto.GoafHdangerDto">
- <result column="hdanger_id" property="hdangerId" jdbcType="BIGINT" />
- <result column="oc_id" property="ocId" jdbcType="BIGINT" />
- <result column="goaf_id" property="goafId" jdbcType="BIGINT" />
- <result column="goaf_dev_id" property="goafDevId" jdbcType="BIGINT" />
- <result column="hdanger_title" property="hdangerTitle" jdbcType="VARCHAR" />
- <result column="hdanger_level" property="hdangerLevel" jdbcType="BIGINT" />
- <result column="checklist_id" property="checklistId" jdbcType="BIGINT" />
- <result column="hdanger_desc" property="hdangerDesc" jdbcType="VARCHAR" />
- <result column="submit_group_id" property="submitGroupId" jdbcType="BIGINT" />
- <result column="submit_group_name" property="submitGroupName" jdbcType="BIGINT" />
- <result column="submit_position_id" property="submitPositionId" jdbcType="BIGINT" />
- <result column="submit_position_name" property="submitPositionName" jdbcType="VARCHAR" />
- <result column="submit_account_id" property="submitAccountId" jdbcType="BIGINT" />
- <result column="submit_account_name" property="submitAccountName" jdbcType="VARCHAR" />
- <result column="submit_time" property="submitTime" jdbcType="TIMESTAMP"/>
- <result column="review_group_id" property="reviewGroupId" jdbcType="BIGINT" />
- <result column="review_group_name" property="reviewGroupName" jdbcType="VARCHAR" />
- <result column="review_position_id" property="reviewPositionId" jdbcType="BIGINT" />
- <result column="review_position_name" property="reviewPositionName" jdbcType="VARCHAR" />
- <result column="review_account_id" property="reviewAccountId" jdbcType="BIGINT" />
- <result column="review_account_name" property="reviewAccountName" jdbcType="VARCHAR" />
- <result column="danger_deadline" property="dangerDeadline" jdbcType="TIMESTAMP"/>
- <result column="review_time" property="reviewTime" jdbcType="TIMESTAMP"/>
- <result column="review_remark" property="reviewRemark" jdbcType="VARCHAR" />
- <result column="rectify_group_id" property="rectifyGroupId" jdbcType="BIGINT" />
- <result column="rectify_group_name" property="rectifyGroupName" jdbcType="VARCHAR" />
- <result column="rectify_position_id" property="rectifyPositionId" jdbcType="BIGINT" />
- <result column="rectify_position_name" property="rectifyPositionName" jdbcType="VARCHAR" />
- <result column="rectify_account_id" property="rectifyAccountId" jdbcType="BIGINT" />
- <result column="rectify_account_name" property="rectifyAccountName" jdbcType="VARCHAR" />
- <result column="rectify_time" property="rectifyTime" jdbcType="TIMESTAMP"/>
- <result column="danger_reason" property="dangerReason" jdbcType="VARCHAR" />
- <result column="rectify_measure" property="rectifyMeasure" jdbcType="VARCHAR" />
- <result column="rectify_remark" property="rectifyRemark" jdbcType="VARCHAR" />
- <result column="accept_group_id" property="acceptGroupId" jdbcType="BIGINT" />
- <result column="accept_group_name" property="acceptGroupName" jdbcType="VARCHAR" />
- <result column="accept_position_id" property="acceptPositionId" jdbcType="BIGINT" />
- <result column="accept_position_name" property="acceptPositionName" jdbcType="VARCHAR" />
- <result column="accept_account_id" property="acceptAccountId" jdbcType="BIGINT" />
- <result column="accept_account_name" property="acceptAccountName" jdbcType="VARCHAR" />
- <result column="accept_time" property="acceptTime" jdbcType="TIMESTAMP"/>
- <result column="accept_remark" property="acceptRemark" jdbcType="VARCHAR" />
- <result column="finish_time" property="finishTime" jdbcType="TIMESTAMP"/>
- <result column="status" property="status" jdbcType="BIGINT" />
- <result column="wf_def_id" property="wfDefId" jdbcType="BIGINT"/>
- <result column="wf_ins_id" property="wfInsId" jdbcType="BIGINT"/>
- <result column="wf_ins_title" property="wfInsTitle" jdbcType="VARCHAR"/>
- <result column="cur_group_id" property="curGroupId" jdbcType="BIGINT"/>
- <result column="cur_group_name" property="curGroupName" jdbcType="VARCHAR"/>
- <result column="cur_position_id" property="curPositionId" jdbcType="BIGINT"/>
- <result column="cur_position_name" property="curPositionName" jdbcType="VARCHAR"/>
- <result column="cur_account_id" property="curAccountId" jdbcType="BIGINT"/>
- <result column="cur_account_name" property="curAccountName" jdbcType="VARCHAR"/>
- <result column="cur_activity_ins_id" property="curActivityInsId" jdbcType="BIGINT"/>
- <result column="cur_activity_code" property="curActivityCode" jdbcType="VARCHAR"/>
- <result column="cur_activity_title" property="curActivityTitle" jdbcType="VARCHAR"/>
- <result column="cur_form_code" property="curFormCode" jdbcType="VARCHAR"/>
- <result column="cur_activity_begin_time" property="curActivityBeginTime" jdbcType="TIMESTAMP"/>
- </resultMap>
- <sql id="GoafHdangerDto_Cols">
- A.hdanger_id,
- A.oc_id,
- A.goaf_id,
- A.hdanger_title,
- A.hdanger_level,
- A.hdanger_type,
- A.checklist_id,
- A.hdanger_desc,
- A.submit_group_id,
- A.submit_group_name,
- A.submit_position_id,
- A.submit_position_name,
- A.submit_account_id,
- A.submit_account_name,
- A.submit_time,
- A.review_group_id,
- A.review_group_name,
- A.review_position_id,
- A.review_position_name,
- A.review_account_id,
- A.review_account_name,
- A.danger_deadline,
- A.review_time,
- A.review_remark,
- A.rectify_group_id,
- A.rectify_group_name,
- A.rectify_position_id,
- A.rectify_position_name,
- A.rectify_account_id,
- A.rectify_account_name,
- A.rectify_time,
- A.danger_reason,
- A.rectify_measure,
- A.rectify_remark,
- A.accept_group_id,
- A.accept_group_name,
- A.accept_position_id,
- A.accept_position_name,
- A.accept_account_id,
- A.accept_account_name,
- A.accept_time,
- A.accept_remark,
- A.finish_time,
- A.status,
- B.wf_def_id,
- B.wf_ins_id,
- B.wf_ins_title,
- B.cur_group_id,
- B.cur_group_name,
- B.cur_position_id,
- B.cur_position_name,
- B.cur_account_id,
- B.cur_account_name,
- B.cur_activity_ins_id,
- B.cur_activity_code,
- B.cur_activity_title,
- B.cur_form_code,
- B.cur_activity_begin_time
- </sql>
- <!--列表查询-->
- <select id="getByList" parameterType="java.util.Map" resultMap="GoafHdangerMapper">
- SELECT
- <include refid="GoafHdangerDto_Cols"/>
- FROM goaf_hdanger AS A
- LEFT JOIN wf_ins AS B ON A.hdanger_id = B.wf_ins_id
- WHERE A.oc_id = #{ocId ,jdbcType=BIGINT}
- <!-- <if test="keywords != null and keywords != ''">-->
- <!-- AND A.hdanger_id like "%"#{keyword}"%"-->
- <!-- </if>-->
- <if test="goafId != null">
- AND A.goaf_id = #{goafId ,jdbcType=BIGINT}
- </if>
- <if test="submitAccountId != null">
- AND A.submit_account_id = #{submitAccountId ,jdbcType=BIGINT}
- </if>
- <if test="submitGroupId != null">
- AND A.submit_group_id = #{submitGroupId ,jdbcType=BIGINT}
- </if>
- <if test="hdangerType != null">
- AND A.hdanger_type = #{hdangerType ,jdbcType=BIGINT}
- </if>
- <if test="reviewAccountId != null">
- AND A.review_account_id = #{reviewAccountId ,jdbcType=BIGINT}
- </if>
- <if test="reviewGroupId != null">
- AND A.review_group_id = #{reviewGroupId ,jdbcType=BIGINT}
- </if>
- <if test="rectifyAccountId != null">
- AND A.rectify_account_id = #{rectifyAccountId ,jdbcType=BIGINT}
- </if>
- <if test="rectifyGroupId != null">
- AND A.rectify_group_id = #{rectifyGroupId ,jdbcType=BIGINT}
- </if>
- <if test="acceptAccountId != null">
- AND A.accept_account_id = #{acceptAccountId ,jdbcType=BIGINT}
- </if>
- <if test="hdangerLevel != null">
- AND A.hdanger_level = #{hdangerLevel ,jdbcType=BIGINT}
- </if>
- <if test="acceptGroupId != null">
- AND A.accept_group_id = #{acceptGroupId ,jdbcType=BIGINT}
- </if>
- <if test="status != null">
- AND A.status = #{status ,jdbcType=BIGINT}
- </if>
- <if test="startSubmitTime != null and endSubmitTime != null">
- <![CDATA[
- AND A.submit_time >= #{startSubmitTime, jdbcType=TIMESTAMP}
- AND A.submit_time <= #{endSubmitTime, jdbcType=TIMESTAMP}
- ]]>
- </if>
- <if test="handleAccountId != null">
- AND (
- A.review_account_id = #{handleAccountId ,jdbcType=BIGINT}
- OR
- A.rectify_account_id = #{handleAccountId ,jdbcType=BIGINT}
- OR
- A.accept_account_id = #{handleAccountId ,jdbcType=BIGINT}
- )
- </if>
- <if test="handleGroupId != null">
- AND (
- A.review_group_id = #{handleGroupId ,jdbcType=BIGINT}
- OR
- A.rectify_group_id = #{handleGroupId ,jdbcType=BIGINT}
- OR
- A.accept_group_id = #{handleGroupId ,jdbcType=BIGINT}
- )
- </if>
- ORDER BY A.submit_time DESC
- </select>
- <!--分页查询-->
- <select id="getByPage" parameterType="java.util.Map" resultMap="GoafHdangerMapper">
- SELECT
- <include refid="GoafHdangerDto_Cols"/>
- FROM goaf_hdanger AS A
- LEFT JOIN wf_ins AS B ON A.hdanger_id = B.wf_ins_id
- WHERE A.oc_id = #{ocId ,jdbcType=BIGINT}
- <!-- <if test="keywords != null and keywords != ''">-->
- <!-- AND A.hdanger_id like "%"#{keyword}"%"-->
- <!-- </if>-->
- <if test="goafId != null">
- AND A.goaf_id = #{goafId ,jdbcType=BIGINT}
- </if>
- <if test="submitAccountId != null">
- AND A.submit_account_id = #{submitAccountId ,jdbcType=BIGINT}
- </if>
- <if test="submitGroupId != null">
- AND A.submit_group_id = #{submitGroupId ,jdbcType=BIGINT}
- </if>
- <if test="hdangerType != null">
- AND A.hdanger_type = #{hdangerType ,jdbcType=BIGINT}
- </if>
- <if test="reviewAccountId != null">
- AND A.review_account_id = #{reviewAccountId ,jdbcType=BIGINT}
- </if>
- <if test="reviewGroupId != null">
- AND A.review_group_id = #{reviewGroupId ,jdbcType=BIGINT}
- </if>
- <if test="rectifyAccountId != null">
- AND A.rectify_account_id = #{rectifyAccountId ,jdbcType=BIGINT}
- </if>
- <if test="rectifyGroupId != null">
- AND A.rectify_group_id = #{rectifyGroupId ,jdbcType=BIGINT}
- </if>
- <if test="acceptAccountId != null">
- AND A.accept_account_id = #{acceptAccountId ,jdbcType=BIGINT}
- </if>
- <if test="hdangerLevel != null">
- AND A.hdanger_level = #{hdangerLevel ,jdbcType=BIGINT}
- </if>
- <if test="acceptGroupId != null">
- AND A.accept_group_id = #{acceptGroupId ,jdbcType=BIGINT}
- </if>
- <if test="status != null">
- AND A.status = #{status ,jdbcType=BIGINT}
- </if>
- <if test="startSubmitTime != null and endSubmitTime != null">
- <![CDATA[
- AND A.submit_time >= #{startSubmitTime, jdbcType=TIMESTAMP}
- AND A.submit_time <= #{endSubmitTime, jdbcType=TIMESTAMP}
- ]]>
- </if>
- <if test="handleAccountId != null">
- AND (
- A.review_account_id = #{handleAccountId ,jdbcType=BIGINT}
- OR
- A.rectify_account_id = #{handleAccountId ,jdbcType=BIGINT}
- OR
- A.accept_account_id = #{handleAccountId ,jdbcType=BIGINT}
- )
- </if>
- <if test="handleGroupId != null">
- AND (
- A.review_group_id = #{handleGroupId ,jdbcType=BIGINT}
- OR
- A.rectify_group_id = #{handleGroupId ,jdbcType=BIGINT}
- OR
- A.accept_group_id = #{handleGroupId ,jdbcType=BIGINT}
- )
- </if>
- ORDER BY A.submit_time DESC
- </select>
- <!--基于ID查询-->
- <select id="getById" resultMap="GoafHdangerMapper">
- SELECT
- <include refid="GoafHdangerDto_Cols"/>
- FROM goaf_hdanger AS A
- LEFT JOIN wf_ins AS B ON A.hdanger_id = B.wf_ins_id
- WHERE A.hdanger_id = #{hdangerId ,jdbcType=BIGINT}
- </select>
- <!--新增-->
- <insert id="create" parameterType="com.zhyc.xps.goaf.entity.GoafHdanger">
- INSERT INTO goaf_hdanger
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="hdangerId != null">
- hdanger_id,
- </if>
- <if test="ocId != null">
- oc_id,
- </if>
- <if test="goafId != null">
- goaf_id,
- </if>
- <if test="goafDevId != null">
- goaf_dev_id,
- </if>
- <if test="goafDataId != null">
- goaf_data_id,
- </if>
- <if test="hdangerTitle != null and hdangerTitle != ''">
- hdanger_title,
- </if>
- <if test="hdangerLevel!= null">
- hdanger_level,
- </if>
- <if test="hdangerType!= null">
- hdanger_type,
- </if>
- <if test="checklistId != null">
- checklist_id,
- </if>
- <if test="hdangerDesc != null and hdangerDesc != ''">
- hdanger_desc,
- </if>
- <if test="submitGroupId != null">
- submit_group_id,
- </if>
- <if test="submitGroupName != null and submitGroupName != ''">
- submit_group_name,
- </if>
- <if test="submitPositionId != null">
- submit_position_id,
- </if>
- <if test="submitPositionName != null and submitPositionName != ''">
- submit_position_name,
- </if>
- <if test="submitAccountId != null">
- submit_account_id,
- </if>
- <if test="submitAccountName != null and submitAccountName != ''">
- submit_account_name,
- </if>
- <if test="submitTime != null">
- submit_time,
- </if>
- <if test="reviewGroupId != null">
- review_group_id,
- </if>
- <if test="reviewGroupName != null and reviewGroupName != ''">
- review_group_name,
- </if>
- <if test="reviewPositionId != null">
- review_position_id,
- </if>
- <if test="reviewPositionName != null and reviewPositionName != ''">
- review_position_name,
- </if>
- <if test="reviewAccountId != null">
- review_account_id,
- </if>
- <if test="reviewAccountName != null and reviewAccountName != ''">
- review_account_name,
- </if>
- <if test="dangerDeadline != null">
- danger_deadline,
- </if>
- <if test="status != null">
- status,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="hdangerId != null">
- #{hdangerId ,jdbcType=BIGINT},
- </if>
- <if test="ocId != null">
- #{ocId ,jdbcType=BIGINT},
- </if>
- <if test="goafId != null">
- #{goafId ,jdbcType=BIGINT},
- </if>
- <if test="goafDevId != null">
- #{goafDevId ,jdbcType=BIGINT},
- </if>
- <if test="goafDataId != null">
- #{goafDataId ,jdbcType=BIGINT},
- </if>
- <if test="hdangerTitle != null and hdangerTitle != ''">
- #{hdangerTitle ,jdbcType=VARCHAR},
- </if>
- <if test="hdangerLevel!= null">
- #{hdangerLevel ,jdbcType=BIGINT},
- </if>
- <if test="hdangerType!= null">
- #{hdangerType ,jdbcType=BIGINT},
- </if>
- <if test="checklistId != null">
- #{checklistId ,jdbcType=BIGINT},
- </if>
- <if test="hdangerDesc != null and hdangerDesc != ''">
- #{hdangerDesc ,jdbcType=VARCHAR},
- </if>
- <if test="submitGroupId != null">
- #{submitGroupId ,jdbcType=BIGINT},
- </if>
- <if test="submitGroupName != null and submitGroupName != ''">
- #{submitGroupName ,jdbcType=VARCHAR},
- </if>
- <if test="submitPositionId != null">
- #{submitPositionId ,jdbcType=BIGINT},
- </if>
- <if test="submitPositionName != null and submitPositionName != ''">
- #{submitPositionName ,jdbcType=VARCHAR},
- </if>
- <if test="submitAccountId != null">
- #{submitAccountId ,jdbcType=BIGINT},
- </if>
- <if test="submitAccountName != null and submitAccountName != ''">
- #{submitAccountName ,jdbcType=VARCHAR},
- </if>
- <if test="submitTime != null">
- #{submitTime ,jdbcType=TIMESTAMP},
- </if>
- <if test="reviewGroupId != null">
- #{reviewGroupId ,jdbcType=BIGINT},
- </if>
- <if test="reviewGroupName != null and reviewGroupName != ''">
- #{reviewGroupName ,jdbcType=VARCHAR},
- </if>
- <if test="reviewPositionId != null">
- #{reviewPositionId ,jdbcType=BIGINT},
- </if>
- <if test="reviewPositionName != null and reviewPositionName != ''">
- #{reviewPositionName ,jdbcType=VARCHAR},
- </if>
- <if test="reviewAccountId != null">
- #{reviewAccountId ,jdbcType=BIGINT},
- </if>
- <if test="reviewAccountName != null and reviewAccountName != ''">
- #{reviewAccountName ,jdbcType=VARCHAR},
- </if>
- <if test="dangerDeadline != null">
- #{dangerDeadline ,jdbcType=TIMESTAMP},
- </if>
- <if test="status != null">
- #{status ,jdbcType=BIGINT},
- </if>
- </trim>
- </insert>
- <!--Update-->
- <update id="update" parameterType="com.zhyc.xps.goaf.entity.GoafHdanger">
- UPDATE goaf_hdanger
- <trim suffixOverrides=",">
- <set>
- <if test="hdangerTitle != null and hdangerTitle != ''">
- hdanger_title = #{hdangerTitle, jdbcType=VARCHAR},
- </if>
- <if test="hdangerLevel!= null">
- hdanger_level = #{hdangerLevel ,jdbcType=BIGINT},
- </if>
- <if test="hdangerDesc != null and hdangerDesc != ''">
- hdanger_desc = #{hdangerDesc, jdbcType=VARCHAR},
- </if>
- <if test="submitGroupId != null">
- submit_group_id = #{submitGroupId ,jdbcType=BIGINT},
- </if>
- <if test="submitGroupName != null and submitGroupName !=''">
- submit_group_name = #{submitGroupName ,jdbcType=VARCHAR},
- </if>
- <if test="submitPositionId != null">
- submit_position_id = #{submitPositionId ,jdbcType=BIGINT},
- </if>
- <if test="submitPositionName != null and submitPositionName != ''">
- submit_position_name = #{submitPositionName ,jdbcType=VARCHAR},
- </if>
- <if test="submitAccountId != null">
- submit_account_id = #{submitAccountId ,jdbcType=BIGINT},
- </if>
- <if test="submitAccountName != null and submitAccountName != ''">
- submit_account_name = #{submitAccountName ,jdbcType=VARCHAR},
- </if>
- <if test="submitTime != null">
- submit_time = #{submitTime ,jdbcType=TIMESTAMP},
- </if>
- <if test="reviewGroupId != null">
- review_group_id = #{reviewGroupId ,jdbcType=BIGINT},
- </if>
- <if test="reviewGroupName != null and reviewGroupName != ''">
- review_group_name = #{reviewGroupName ,jdbcType=VARCHAR},
- </if>
- <if test="reviewPositionId != null">
- review_position_id = #{reviewPositionId ,jdbcType=BIGINT},
- </if>
- <if test="reviewPositionName != null and reviewPositionName !=''">
- review_position_name = #{reviewPositionName ,jdbcType=VARCHAR},
- </if>
- <if test="reviewAccountId != null">
- review_account_id = #{reviewAccountId ,jdbcType=BIGINT},
- </if>
- <if test="reviewAccountName != null and reviewAccountName !=''">
- review_account_name = #{reviewAccountName ,jdbcType=VARCHAR},
- </if>
- <if test="dangerDeadline != null">
- danger_deadline = #{dangerDeadline ,jdbcType=TIMESTAMP},
- </if>
- <if test="reviewTime != null">
- review_time = #{reviewTime ,jdbcType=TIMESTAMP},
- </if>
- <if test="reviewRemark != null and reviewRemark != ''">
- review_remark = #{reviewRemark ,jdbcType=VARCHAR},
- </if>
- <if test="rectifyGroupId != null">
- rectify_group_id = #{rectifyGroupId ,jdbcType=BIGINT},
- </if>
- <if test="rectifyGroupName != null and rectifyGroupName !=''">
- rectify_group_name = #{rectifyGroupName ,jdbcType=VARCHAR},
- </if>
- <if test="rectifyPositionId != null">
- rectify_position_id = #{rectifyPositionId ,jdbcType=BIGINT},
- </if>
- <if test="rectifyPositionName != null and rectifyPositionName !=''">
- rectify_position_name = #{rectifyPositionName ,jdbcType=VARCHAR},
- </if>
- <if test="rectifyAccountId != null">
- rectify_account_id = #{rectifyAccountId ,jdbcType=BIGINT},
- </if>
- <if test="rectifyAccountName != null and rectifyAccountName !=''">
- rectify_account_name = #{rectifyAccountName ,jdbcType=VARCHAR},
- </if>
- <if test="rectifyTime != null">
- rectify_time = #{rectifyTime ,jdbcType=TIMESTAMP},
- </if>
- <if test="dangerReason != null and dangerReason != ''">
- danger_reason = #{dangerReason, jdbcType=VARCHAR},
- </if>
- <if test="rectifyMeasure != null and rectifyMeasure != ''">
- rectify_measure = #{rectifyMeasure, jdbcType=VARCHAR},
- </if>
- <if test="rectifyRemark != null and rectifyRemark != ''">
- rectify_remark = #{rectifyRemark, jdbcType=VARCHAR},
- </if>
- <if test="acceptGroupId != null">
- accept_group_id = #{acceptGroupId ,jdbcType=BIGINT},
- </if>
- <if test="acceptGroupName != null and acceptGroupName !=''">
- accept_group_name = #{acceptGroupName ,jdbcType=VARCHAR},
- </if>
- <if test="acceptPositionId != null">
- accept_position_id = #{acceptPositionId ,jdbcType=BIGINT},
- </if>
- <if test="acceptPositionName != null and acceptPositionName !=''">
- accept_position_name = #{acceptPositionName ,jdbcType=VARCHAR},
- </if>
- <if test="acceptAccountId != null">
- accept_account_id = #{acceptAccountId ,jdbcType=BIGINT},
- </if>
- <if test="acceptAccountName != null and acceptAccountName !=''">
- accept_account_name = #{acceptAccountName ,jdbcType=VARCHAR},
- </if>
- <if test="acceptTime != null">
- accept_time = #{acceptTime ,jdbcType=TIMESTAMP},
- </if>
- <if test="acceptRemark != null and acceptRemark != ''">
- accept_remark = #{acceptRemark ,jdbcType=VARCHAR},
- </if>
- <if test="finishTime != null">
- finish_time = #{finishTime ,jdbcType=TIMESTAMP},
- </if>
- <if test="status != null ">
- status = #{status ,jdbcType=BIGINT},
- </if>
- </set>
- </trim>
- WHERE hdanger_id = #{hdangerId ,jdbcType=BIGINT}
- </update>
- <!--删除-->
- <delete id="delete" >
- DELETE FROM goaf_hdanger
- WHERE hdanger_id = #{hdangerId ,jdbcType=BIGINT}
- </delete>
- </mapper>
|