|
|
@@ -15,11 +15,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="method" column="method"/>
|
|
|
<result property="isBack" column="is_back"/>
|
|
|
<result property="nickName" column="nick_name"/>
|
|
|
- <result property="role" column="role"/>
|
|
|
+ <result property="roleName" column="role_name"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectAlarmLogVo">
|
|
|
- select id, create_time, update_time, phone, status, notice, method, is_back from alarm_log
|
|
|
+ select id, key_id, create_time, update_time, phone, status, notice, method, is_back, nick_name, role_name from alarm_log
|
|
|
</sql>
|
|
|
<sql id="selectAlarmLogListVo">
|
|
|
select t.id, t.create_time, t.update_time, t.phone, t.status, t.notice, t.method, t.is_back from alarm_log as t
|
|
|
@@ -70,8 +70,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<insert id="insertAlarmLog" parameterType="com.zd.algorithm.api.alarm.entity.AlarmLog" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into alarm_log
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="keyId != null">key_id,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="roleName != null">role_name,</if>
|
|
|
+ <if test="nickName != null">nick_name,</if>
|
|
|
<if test="phone != null">phone,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
<if test="notice != null">notice,</if>
|
|
|
@@ -79,8 +82,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isBack != null">is_back,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="keyId != null">#{keyId},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="roleName != null">#{roleName},</if>
|
|
|
+ <if test="nickName != null">#{nickName},</if>
|
|
|
<if test="phone != null">#{phone},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="notice != null">#{notice},</if>
|
|
|
@@ -92,8 +98,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateAlarmLog" parameterType="com.zd.algorithm.api.alarm.entity.AlarmLog">
|
|
|
update alarm_log
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="keyId != null">key_id = #{keyId}</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="roleName != null">role_name = #{roleName},</if>
|
|
|
+ <if test="nickName != null">nike_name = #{nickName},</if>
|
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
<if test="notice != null">notice = #{notice},</if>
|