|
@@ -12,14 +12,15 @@
|
|
<result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="UPDATE_USERNAME" jdbcType="TIMESTAMP" property="updateUsername" />
|
|
<result column="UPDATE_USERNAME" jdbcType="TIMESTAMP" property="updateUsername" />
|
|
<result column="DELETED" jdbcType="DECIMAL" property="deleted" />
|
|
<result column="DELETED" jdbcType="DECIMAL" property="deleted" />
|
|
|
|
+ <result column="IS_VIP" jdbcType="TIMESTAMP" property="isVip" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
SPELLING_RESULT_ID, QUEUE_RESULT_ID, SPELILING_NUM, SPELLING_SURE_TIME, ENTRY_SURE_TIME,
|
|
SPELLING_RESULT_ID, QUEUE_RESULT_ID, SPELILING_NUM, SPELLING_SURE_TIME, ENTRY_SURE_TIME,
|
|
- INSERT_TIME, INSERT_USERNAME, UPDATE_TIME, UPDATE_USERNAME, DELETED
|
|
|
|
|
|
+ INSERT_TIME, INSERT_USERNAME, UPDATE_TIME, UPDATE_USERNAME, DELETED, IS_VIP
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
t.SPELLING_RESULT_ID, t.QUEUE_RESULT_ID, t.SPELILING_NUM, t.SPELLING_SURE_TIME, t.ENTRY_SURE_TIME,
|
|
t.SPELLING_RESULT_ID, t.QUEUE_RESULT_ID, t.SPELILING_NUM, t.SPELLING_SURE_TIME, t.ENTRY_SURE_TIME,
|
|
- t.INSERT_TIME, t.INSERT_USERNAME, t.UPDATE_TIME, t.UPDATE_USERNAME, t.DELETED
|
|
|
|
|
|
+ t.INSERT_TIME, t.INSERT_USERNAME, t.UPDATE_TIME, t.UPDATE_USERNAME, t.DELETED, t.IS_VIP
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
SELECT <include refid="columns" /> FROM QMS_QUEUE_SPELLING_LIST
|
|
SELECT <include refid="columns" /> FROM QMS_QUEUE_SPELLING_LIST
|
|
@@ -28,7 +29,7 @@
|
|
SELECT <include refid="columns_alias" /> FROM QMS_QUEUE_SPELLING_LIST t
|
|
SELECT <include refid="columns_alias" /> FROM QMS_QUEUE_SPELLING_LIST t
|
|
</sql>
|
|
</sql>
|
|
<sql id="where">
|
|
<sql id="where">
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="spellingResultId != null">
|
|
<if test="spellingResultId != null">
|
|
and SPELLING_RESULT_ID = #{spellingResultId}
|
|
and SPELLING_RESULT_ID = #{spellingResultId}
|
|
</if>
|
|
</if>
|
|
@@ -59,10 +60,13 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
and DELETED = #{deleted}
|
|
and DELETED = #{deleted}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isVip != null">
|
|
|
|
+ and TO_CHAR(IS_VIP,'yyyy-MM-dd') = #{isVip}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="spellingResultId != null">
|
|
<if test="spellingResultId != null">
|
|
and SPELLING_RESULT_ID = #{spellingResultId}
|
|
and SPELLING_RESULT_ID = #{spellingResultId}
|
|
</if>
|
|
</if>
|
|
@@ -93,6 +97,9 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
and DELETED = #{deleted}
|
|
and DELETED = #{deleted}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isVip != null">
|
|
|
|
+ and TO_CHAR(IS_VIP,'yyyy-MM-dd') = #{isVip}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
@@ -101,44 +108,49 @@
|
|
</delete>
|
|
</delete>
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
delete from QMS_QUEUE_SPELLING_LIST
|
|
delete from QMS_QUEUE_SPELLING_LIST
|
|
- where 1!=1
|
|
|
|
- <if test="queueResultId != null">
|
|
|
|
- or QUEUE_RESULT_ID = #{queueResultId}
|
|
|
|
- </if>
|
|
|
|
- <if test="spelilingNum != null">
|
|
|
|
- or SPELILING_NUM = #{spelilingNum}
|
|
|
|
- </if>
|
|
|
|
- <if test="spellingSureTime != null">
|
|
|
|
- or TO_CHAR(SPELLING_SURE_TIME,'yyyy-MM-dd') = '#{spellingSureTime}'
|
|
|
|
- </if>
|
|
|
|
- <if test="entrySureTime != null">
|
|
|
|
- or TO_CHAR(ENTRY_SURE_TIME,'yyyy-MM-dd') = '#{entrySureTime}'
|
|
|
|
- </if>
|
|
|
|
- <if test="insertTime != null">
|
|
|
|
- or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
|
|
|
|
- </if>
|
|
|
|
- <if test="insertUsername != null and insertUsername != ''">
|
|
|
|
- or INSERT_USERNAME = #{insertUsername}
|
|
|
|
- </if>
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
- or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
|
- </if>
|
|
|
|
- <if test="updateUsername != null">
|
|
|
|
- or TO_CHAR(UPDATE_USERNAME,'yyyy-MM-dd') = '#{updateUsername}'
|
|
|
|
- </if>
|
|
|
|
- <if test="deleted != null">
|
|
|
|
- or DELETED = #{deleted}
|
|
|
|
- </if>
|
|
|
|
|
|
+ where 1!=1
|
|
|
|
+ <if test="queueResultId != null">
|
|
|
|
+ or QUEUE_RESULT_ID = #{queueResultId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="spelilingNum != null">
|
|
|
|
+ or SPELILING_NUM = #{spelilingNum}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="spellingSureTime != null">
|
|
|
|
+ or TO_CHAR(SPELLING_SURE_TIME,'yyyy-MM-dd') = '#{spellingSureTime}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="entrySureTime != null">
|
|
|
|
+ or TO_CHAR(ENTRY_SURE_TIME,'yyyy-MM-dd') = '#{entrySureTime}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertTime != null">
|
|
|
|
+ or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
|
+ or INSERT_USERNAME = #{insertUsername}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateUsername != null">
|
|
|
|
+ or TO_CHAR(UPDATE_USERNAME,'yyyy-MM-dd') = '#{updateUsername}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="deleted != null">
|
|
|
|
+ or DELETED = #{deleted}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isVip != null">
|
|
|
|
+ or TO_CHAR(IS_VIP,'yyyy-MM-dd') = '#{isVip}'
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.QmsQueueSpellingList">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.QmsQueueSpellingList">
|
|
- insert into QMS_QUEUE_SPELLING_LIST (SPELLING_RESULT_ID, QUEUE_RESULT_ID,
|
|
|
|
- SPELILING_NUM, SPELLING_SURE_TIME, ENTRY_SURE_TIME,
|
|
|
|
- INSERT_TIME, INSERT_USERNAME, UPDATE_TIME,
|
|
|
|
- UPDATE_USERNAME, DELETED)
|
|
|
|
- values (#{spellingResultId,jdbcType=DECIMAL}, #{queueResultId,jdbcType=DECIMAL},
|
|
|
|
- #{spelilingNum,jdbcType=DECIMAL}, #{spellingSureTime,jdbcType=TIMESTAMP}, #{entrySureTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{insertTime,jdbcType=TIMESTAMP}, #{insertUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{updateUsername,jdbcType=TIMESTAMP}, #{deleted,jdbcType=DECIMAL})
|
|
|
|
|
|
+ insert into QMS_QUEUE_SPELLING_LIST (SPELLING_RESULT_ID, QUEUE_RESULT_ID,
|
|
|
|
+ SPELILING_NUM, SPELLING_SURE_TIME, ENTRY_SURE_TIME,
|
|
|
|
+ INSERT_TIME, INSERT_USERNAME, UPDATE_TIME,
|
|
|
|
+ UPDATE_USERNAME, DELETED, IS_VIP
|
|
|
|
+ )
|
|
|
|
+ values (#{spellingResultId,jdbcType=DECIMAL}, #{queueResultId,jdbcType=DECIMAL},
|
|
|
|
+ #{spelilingNum,jdbcType=DECIMAL}, #{spellingSureTime,jdbcType=TIMESTAMP}, #{entrySureTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{insertTime,jdbcType=TIMESTAMP}, #{insertUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{updateUsername,jdbcType=TIMESTAMP}, #{deleted,jdbcType=DECIMAL}, #{isVip,jdbcType=TIMESTAMP}
|
|
|
|
+ )
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.QmsQueueSpellingList">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.QmsQueueSpellingList">
|
|
insert into QMS_QUEUE_SPELLING_LIST
|
|
insert into QMS_QUEUE_SPELLING_LIST
|
|
@@ -173,6 +185,9 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
DELETED,
|
|
DELETED,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isVip != null">
|
|
|
|
+ IS_VIP,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="spellingResultId != null">
|
|
<if test="spellingResultId != null">
|
|
@@ -205,19 +220,23 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
#{deleted,jdbcType=DECIMAL},
|
|
#{deleted,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isVip != null">
|
|
|
|
+ #{isVip,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.QmsQueueSpellingList">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.QmsQueueSpellingList">
|
|
update QMS_QUEUE_SPELLING_LIST
|
|
update QMS_QUEUE_SPELLING_LIST
|
|
set QUEUE_RESULT_ID = #{queueResultId,jdbcType=DECIMAL},
|
|
set QUEUE_RESULT_ID = #{queueResultId,jdbcType=DECIMAL},
|
|
- SPELILING_NUM = #{spelilingNum,jdbcType=DECIMAL},
|
|
|
|
- SPELLING_SURE_TIME = #{spellingSureTime,jdbcType=TIMESTAMP},
|
|
|
|
- ENTRY_SURE_TIME = #{entrySureTime,jdbcType=TIMESTAMP},
|
|
|
|
- INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
- INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
- UPDATE_USERNAME = #{updateUsername,jdbcType=TIMESTAMP},
|
|
|
|
- DELETED = #{deleted,jdbcType=DECIMAL}
|
|
|
|
|
|
+ SPELILING_NUM = #{spelilingNum,jdbcType=DECIMAL},
|
|
|
|
+ SPELLING_SURE_TIME = #{spellingSureTime,jdbcType=TIMESTAMP},
|
|
|
|
+ ENTRY_SURE_TIME = #{entrySureTime,jdbcType=TIMESTAMP},
|
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ UPDATE_USERNAME = #{updateUsername,jdbcType=TIMESTAMP},
|
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
|
+ IS_VIP = #{isVip,jdbcType=TIMESTAMP}
|
|
where SPELLING_RESULT_ID = #{spellingResultId,jdbcType=DECIMAL}
|
|
where SPELLING_RESULT_ID = #{spellingResultId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.QmsQueueSpellingList">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.QmsQueueSpellingList">
|
|
@@ -250,6 +269,9 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isVip != null">
|
|
|
|
+ IS_VIP = #{isVip,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where SPELLING_RESULT_ID = #{spellingResultId,jdbcType=DECIMAL}
|
|
where SPELLING_RESULT_ID = #{spellingResultId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
@@ -266,79 +288,82 @@
|
|
<include refid="whereLike" />
|
|
<include refid="whereLike" />
|
|
</select>
|
|
</select>
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
- insert into QMS_QUEUE_SPELLING_LIST
|
|
|
|
- (SPELLING_RESULT_ID,
|
|
|
|
- QUEUE_RESULT_ID, SPELILING_NUM,
|
|
|
|
- SPELLING_SURE_TIME, ENTRY_SURE_TIME,
|
|
|
|
- INSERT_TIME, INSERT_USERNAME,
|
|
|
|
- UPDATE_TIME, UPDATE_USERNAME,
|
|
|
|
- DELETED)
|
|
|
|
- ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
- select
|
|
|
|
- #{item.spellingResultId,jdbcType=DECIMAL},
|
|
|
|
- #{item.queueResultId,jdbcType=DECIMAL}, #{item.spelilingNum,jdbcType=DECIMAL},
|
|
|
|
- #{item.spellingSureTime,jdbcType=TIMESTAMP}, #{item.entrySureTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{item.insertTime,jdbcType=TIMESTAMP}, #{item.insertUsername,jdbcType=VARCHAR},
|
|
|
|
- #{item.updateTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=TIMESTAMP},
|
|
|
|
- #{item.deleted,jdbcType=DECIMAL} from dual
|
|
|
|
- </foreach> )
|
|
|
|
|
|
+ insert into QMS_QUEUE_SPELLING_LIST
|
|
|
|
+ (SPELLING_RESULT_ID,
|
|
|
|
+ QUEUE_RESULT_ID, SPELILING_NUM,
|
|
|
|
+ SPELLING_SURE_TIME, ENTRY_SURE_TIME,
|
|
|
|
+ INSERT_TIME, INSERT_USERNAME,
|
|
|
|
+ UPDATE_TIME, UPDATE_USERNAME,
|
|
|
|
+ DELETED, IS_VIP)
|
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
+ select
|
|
|
|
+ #{item.spellingResultId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.queueResultId,jdbcType=DECIMAL}, #{item.spelilingNum,jdbcType=DECIMAL},
|
|
|
|
+ #{item.spellingSureTime,jdbcType=TIMESTAMP}, #{item.entrySureTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.insertTime,jdbcType=TIMESTAMP}, #{item.insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ #{item.updateTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.deleted,jdbcType=DECIMAL}, #{item.isVip,jdbcType=TIMESTAMP} from dual
|
|
|
|
+ </foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
- update QMS_QUEUE_SPELLING_LIST
|
|
|
|
- set
|
|
|
|
- SPELLING_RESULT_ID=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
- when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.spellingResultId,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,QUEUE_RESULT_ID=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
- when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.queueResultId,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,SPELILING_NUM=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
- when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.spelilingNum,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,SPELLING_SURE_TIME=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
- when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.spellingSureTime,jdbcType=TIMESTAMP}
|
|
|
|
- </foreach>
|
|
|
|
- ,ENTRY_SURE_TIME=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
- when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.entrySureTime,jdbcType=TIMESTAMP}
|
|
|
|
- </foreach>
|
|
|
|
- ,INSERT_TIME=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
- when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
|
- </foreach>
|
|
|
|
- ,INSERT_USERNAME=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
- when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
|
- </foreach>
|
|
|
|
- ,UPDATE_TIME=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
- when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
- </foreach>
|
|
|
|
- ,UPDATE_USERNAME=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
- when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=TIMESTAMP}
|
|
|
|
- </foreach>
|
|
|
|
- ,DELETED=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
- when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- where SPELLING_RESULT_ID in
|
|
|
|
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
|
- #{item.spellingResultId,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
|
|
+ update QMS_QUEUE_SPELLING_LIST
|
|
|
|
+ set
|
|
|
|
+ SPELLING_RESULT_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.spellingResultId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,QUEUE_RESULT_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.queueResultId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,SPELILING_NUM=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.spelilingNum,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,SPELLING_SURE_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.spellingSureTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ENTRY_SURE_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.entrySureTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_USERNAME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_USERNAME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,DELETED=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,IS_VIP=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SPELLING_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.spellingResultId,jdbcType=DECIMAL} then #{item.isVip,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ where SPELLING_RESULT_ID in
|
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
|
+ #{item.spellingResultId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
</update>
|
|
</update>
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
delete from QMS_QUEUE_SPELLING_LIST
|
|
delete from QMS_QUEUE_SPELLING_LIST
|
|
- where SPELLING_RESULT_ID in
|
|
|
|
|
|
+ where SPELLING_RESULT_ID in
|
|
<foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
<foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
-
|
|
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
|