|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<?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.sztzjy.digital_credit.mappers.AdminExcelErrorMessageMapper">
|
|
|
|
|
<mapper namespace="com.sztzjy.digital_credit.mapper.AdminExcelErrorMessageMapper">
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.digital_credit.entity.AdminExcelErrorMessage">
|
|
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
|
|
<result column="topic_name" jdbcType="VARCHAR" property="topicName" />
|
|
|
|
@ -11,6 +11,7 @@
|
|
|
|
|
<result column="module" jdbcType="VARCHAR" property="module" />
|
|
|
|
|
<result column="userId" jdbcType="VARCHAR" property="userid" />
|
|
|
|
|
<result column="submission_state" jdbcType="INTEGER" property="submissionState" />
|
|
|
|
|
<result column="ascription" jdbcType="VARCHAR" property="ascription" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
@ -71,7 +72,8 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id, topic_name, topic_type, topic_id, state, result_msg, module, userId, submission_state
|
|
|
|
|
id, topic_name, topic_type, topic_id, state, result_msg, module, userId, submission_state,
|
|
|
|
|
ascription
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.digital_credit.entity.AdminExcelErrorMessageExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
@ -106,12 +108,12 @@
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.digital_credit.entity.AdminExcelErrorMessage">
|
|
|
|
|
insert into admin_excel_error_message (id, topic_name, topic_type,
|
|
|
|
|
topic_id, state, result_msg,
|
|
|
|
|
module, userId, submission_state
|
|
|
|
|
)
|
|
|
|
|
module, userId, submission_state,
|
|
|
|
|
ascription)
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{topicName,jdbcType=VARCHAR}, #{topicType,jdbcType=VARCHAR},
|
|
|
|
|
#{topicId,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR}, #{resultMsg,jdbcType=VARCHAR},
|
|
|
|
|
#{module,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR}, #{submissionState,jdbcType=INTEGER}
|
|
|
|
|
)
|
|
|
|
|
#{module,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR}, #{submissionState,jdbcType=INTEGER},
|
|
|
|
|
#{ascription,jdbcType=VARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.digital_credit.entity.AdminExcelErrorMessage">
|
|
|
|
|
insert into admin_excel_error_message
|
|
|
|
@ -143,6 +145,9 @@
|
|
|
|
|
<if test="submissionState != null">
|
|
|
|
|
submission_state,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ascription != null">
|
|
|
|
|
ascription,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
@ -172,6 +177,9 @@
|
|
|
|
|
<if test="submissionState != null">
|
|
|
|
|
#{submissionState,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ascription != null">
|
|
|
|
|
#{ascription,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.digital_credit.entity.AdminExcelErrorMessageExample" resultType="java.lang.Long">
|
|
|
|
@ -210,6 +218,9 @@
|
|
|
|
|
<if test="record.submissionState != null">
|
|
|
|
|
submission_state = #{record.submissionState,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.ascription != null">
|
|
|
|
|
ascription = #{record.ascription,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -225,7 +236,8 @@
|
|
|
|
|
result_msg = #{record.resultMsg,jdbcType=VARCHAR},
|
|
|
|
|
module = #{record.module,jdbcType=VARCHAR},
|
|
|
|
|
userId = #{record.userid,jdbcType=VARCHAR},
|
|
|
|
|
submission_state = #{record.submissionState,jdbcType=INTEGER}
|
|
|
|
|
submission_state = #{record.submissionState,jdbcType=INTEGER},
|
|
|
|
|
ascription = #{record.ascription,jdbcType=VARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -257,6 +269,9 @@
|
|
|
|
|
<if test="submissionState != null">
|
|
|
|
|
submission_state = #{submissionState,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ascription != null">
|
|
|
|
|
ascription = #{ascription,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
@ -269,7 +284,8 @@
|
|
|
|
|
result_msg = #{resultMsg,jdbcType=VARCHAR},
|
|
|
|
|
module = #{module,jdbcType=VARCHAR},
|
|
|
|
|
userId = #{userid,jdbcType=VARCHAR},
|
|
|
|
|
submission_state = #{submissionState,jdbcType=INTEGER}
|
|
|
|
|
submission_state = #{submissionState,jdbcType=INTEGER},
|
|
|
|
|
ascription = #{ascription,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|