|
@@ -19,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTWarningRecordVo">
|
|
|
- select id, type, desc, read, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_warning_record
|
|
|
+ select id, type, `DESC`, `READ`, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_warning_record
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTWarningRecordList" parameterType="TWarningRecord" resultMap="TWarningRecordResult">
|
|
@@ -27,8 +27,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
|
1 = 1
|
|
|
<if test="type != null "> and type = #{type}</if>
|
|
|
- <if test="desc != null and desc != ''"> and desc = #{desc}</if>
|
|
|
- <if test="read != null "> and read = #{read}</if>
|
|
|
+ <if test="desc != null and desc != ''"> and `DESC` = #{desc}</if>
|
|
|
+ <if test="read != null "> and `READ` = #{read}</if>
|
|
|
<if test="revision != null "> and revision = #{revision}</if>
|
|
|
</where>
|
|
|
and del_flag = 0 order by id desc
|
|
@@ -43,8 +43,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into t_warning_record
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="type != null">type,</if>
|
|
|
- <if test="desc != null">desc,</if>
|
|
|
- <if test="read != null">read,</if>
|
|
|
+ <if test="desc != null">`DESC`,</if>
|
|
|
+ <if test="read != null">`READ`,</if>
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
<if test="revision != null">revision,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -71,8 +71,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update t_warning_record
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="type != null">type = #{type},</if>
|
|
|
- <if test="desc != null">desc = #{desc},</if>
|
|
|
- <if test="read != null">read = #{read},</if>
|
|
|
+ <if test="desc != null">`DESC` = #{desc},</if>
|
|
|
+ <if test="read != null">`READ` = #{read},</if>
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
<if test="revision != null">revision = #{revision},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|