|
@@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="TImportFail" id="TImportFailResult">
|
|
|
<result property="id" column="id" />
|
|
|
+ <result property="type" column="type" />
|
|
|
<result property="content" column="content" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="revision" column="revision" />
|
|
@@ -17,13 +18,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTImportFailVo">
|
|
|
- select id, content, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_import_fail
|
|
|
+ select id, type, content, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_import_fail
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTImportFailList" parameterType="TImportFail" resultMap="TImportFailResult">
|
|
|
<include refid="selectTImportFailVo"/>
|
|
|
<where>
|
|
|
1 = 1
|
|
|
+ <if test="type != null "> and type = #{type}</if>
|
|
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
|
|
<if test="revision != null "> and revision = #{revision}</if>
|
|
|
</where>
|
|
@@ -38,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<insert id="insertTImportFail" parameterType="TImportFail" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into t_import_fail
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="type != null">type,</if>
|
|
|
<if test="content != null">content,</if>
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
<if test="revision != null">revision,</if>
|
|
@@ -48,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="type != null">#{type},</if>
|
|
|
<if test="content != null">#{content},</if>
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
<if test="revision != null">#{revision},</if>
|
|
@@ -62,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateTImportFail" parameterType="TImportFail">
|
|
|
update t_import_fail
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="type != null">type = #{type},</if>
|
|
|
<if test="content != null">content = #{content},</if>
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
<if test="revision != null">revision = #{revision},</if>
|