马宇豪
2023-08-25 aa2051a2327c079105110f5424f3a44ffaa0c7bb
src/main/resources/mybatis/tr/HiddenDangerCheckMapper.xml
@@ -85,6 +85,7 @@
    <select id="selectHiddenDangerCheckList" parameterType="HiddenDangerCheck" resultMap="HiddenDangerCheckResult">
        <include refid="selectHiddenDangerCheckVo"/>
        <where>
            <if test="checkId != null  and checkId != ''"> and a.check_id = #{checkId}</if>
            <if test="planCreateUserId != null  and planCreateUserId != ''"> and a.plan_create_user_id = #{planCreateUserId}</if>
@@ -359,4 +360,29 @@
        </foreach>
    </delete>
<!--    HiddenDangerCheck getHiddenDangerCheckById(Long checkId);-->
    <select id="getHiddenDangerCheckById"  parameterType="HiddenDangerCheck" resultMap="HiddenDangerCheckResult">
        select * from tr_hidden_danger_check
        where check_id = #{checkId}
    </select>
    <update id="getHiddenDangerCheckByIdOld" parameterType="Long">
        update tr_hidden_danger_check set
            create_by = #{createBy},
            update_by = #{updateBy},
            create_time = #{createTime},
            update_time = #{updateTime}
        where id = #{checkId}
    </update>
<!--    <if test="createBy != null  and createBy != ''">create_by = #{createBy},</if>-->
<!--    <if test="createTime != null ">create_time = #{createTime},</if>-->
<!--    <if test="updateBy != null  and updateBy != ''">update_by = #{updateBy},</if>-->
<!--    <if test="updateTime != null ">update_time = #{updateTime},</if>-->
<!--    <if test="remark != null  and remark != ''">remark = #{remark},</if>-->
<!--    <if test="planCreateUserId != null  and planCreateUserId != ''">plan_create_user_id = #{planCreateUserId},</if>-->
</mapper>