|
@@ -2,52 +2,50 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.steerinfo.dil.mapper.QmsQueueResultMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.steerinfo.dil.model.QmsQueueResult">
|
|
|
- <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId"/>
|
|
|
- <result column="RESULT_TOTAL_ID" jdbcType="DECIMAL" property="resultTotalId"/>
|
|
|
- <result column="CAPACITY_ID" jdbcType="DECIMAL" property="capacityId"/>
|
|
|
- <result column="RESULT_APPLYFOR_TIME" jdbcType="TIMESTAMP" property="resultApplyforTime"/>
|
|
|
- <result column="RESULT_APPLYFOR_LOCATION" jdbcType="VARCHAR" property="resultApplyforLocation"/>
|
|
|
- <result column="GRID_ID" jdbcType="DECIMAL" property="gridId"/>
|
|
|
- <result column="RESULT_DOWN_TIME" jdbcType="TIMESTAMP" property="resultDownTime"/>
|
|
|
- <result column="RESULT_ACCEPT_TIME" jdbcType="TIMESTAMP" property="resultAcceptTime"/>
|
|
|
- <result column="RESULT_START_TIME" jdbcType="TIMESTAMP" property="resultStartTime"/>
|
|
|
- <result column="RESULT_END_TIME" jdbcType="TIMESTAMP" property="resultEndTime"/>
|
|
|
- <result column="RESULT_CANCEL_TIME" jdbcType="TIMESTAMP" property="resultCancelTime"/>
|
|
|
- <result column="RESULT_CANCEL_REASON" jdbcType="VARCHAR" property="resultCancelReason"/>
|
|
|
- <result column="RESULT_INSERT_TIME" jdbcType="TIMESTAMP" property="resultInsertTime"/>
|
|
|
- <result column="RESULT_INSERT_REASON" jdbcType="VARCHAR" property="resultInsertReason"/>
|
|
|
- <result column="RESULT_TRANSFER_TIME" jdbcType="TIMESTAMP" property="resultTransferTime"/>
|
|
|
- <result column="RESULT_TRANSFER_REASON" jdbcType="VARCHAR" property="resultTransferReason"/>
|
|
|
- <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername"/>
|
|
|
- <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime"/>
|
|
|
- <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername"/>
|
|
|
- <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
- <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark"/>
|
|
|
- <result column="LIST_ID" jdbcType="DECIMAL" property="listId"/>
|
|
|
+ <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId" />
|
|
|
+ <result column="RESULT_TOTAL_ID" jdbcType="DECIMAL" property="resultTotalId" />
|
|
|
+ <result column="CAPACITY_ID" jdbcType="DECIMAL" property="capacityId" />
|
|
|
+ <result column="RESULT_APPLYFOR_TIME" jdbcType="TIMESTAMP" property="resultApplyforTime" />
|
|
|
+ <result column="RESULT_APPLYFOR_LOCATION" jdbcType="VARCHAR" property="resultApplyforLocation" />
|
|
|
+ <result column="GRID_ID" jdbcType="DECIMAL" property="gridId" />
|
|
|
+ <result column="RESULT_DOWN_TIME" jdbcType="TIMESTAMP" property="resultDownTime" />
|
|
|
+ <result column="RESULT_ACCEPT_TIME" jdbcType="TIMESTAMP" property="resultAcceptTime" />
|
|
|
+ <result column="RESULT_START_TIME" jdbcType="TIMESTAMP" property="resultStartTime" />
|
|
|
+ <result column="RESULT_END_TIME" jdbcType="TIMESTAMP" property="resultEndTime" />
|
|
|
+ <result column="RESULT_CANCEL_TIME" jdbcType="TIMESTAMP" property="resultCancelTime" />
|
|
|
+ <result column="RESULT_CANCEL_REASON" jdbcType="VARCHAR" property="resultCancelReason" />
|
|
|
+ <result column="RESULT_INSERT_TIME" jdbcType="TIMESTAMP" property="resultInsertTime" />
|
|
|
+ <result column="RESULT_INSERT_REASON" jdbcType="VARCHAR" property="resultInsertReason" />
|
|
|
+ <result column="RESULT_TRANSFER_TIME" jdbcType="TIMESTAMP" property="resultTransferTime" />
|
|
|
+ <result column="RESULT_TRANSFER_REASON" jdbcType="VARCHAR" property="resultTransferReason" />
|
|
|
+ <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
|
|
|
+ <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
|
|
|
+ <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
|
|
|
+ <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
+ <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
|
|
|
+ <result column="LIST_ID" jdbcType="DECIMAL" property="listId" />
|
|
|
+ <result column="AREA_ID" jdbcType="VARCHAR" property="areaId" />
|
|
|
+ <result column="IS_SPELLING" jdbcType="DECIMAL" property="isSpelling" />
|
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
|
RESULT_ID, RESULT_TOTAL_ID, CAPACITY_ID, RESULT_APPLYFOR_TIME, RESULT_APPLYFOR_LOCATION,
|
|
|
GRID_ID, RESULT_DOWN_TIME, RESULT_ACCEPT_TIME, RESULT_START_TIME, RESULT_END_TIME,
|
|
|
RESULT_CANCEL_TIME, RESULT_CANCEL_REASON, RESULT_INSERT_TIME, RESULT_INSERT_REASON,
|
|
|
RESULT_TRANSFER_TIME, RESULT_TRANSFER_REASON, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
|
- UPDATE_TIME, INSERT_UPDATE_REMARK, LIST_ID
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK, LIST_ID, AREA_ID, IS_SPELLING
|
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
|
t.RESULT_ID, t.RESULT_TOTAL_ID, t.CAPACITY_ID, t.RESULT_APPLYFOR_TIME, t.RESULT_APPLYFOR_LOCATION,
|
|
|
t.GRID_ID, t.RESULT_DOWN_TIME, t.RESULT_ACCEPT_TIME, t.RESULT_START_TIME, t.RESULT_END_TIME,
|
|
|
t.RESULT_CANCEL_TIME, t.RESULT_CANCEL_REASON, t.RESULT_INSERT_TIME, t.RESULT_INSERT_REASON,
|
|
|
t.RESULT_TRANSFER_TIME, t.RESULT_TRANSFER_REASON, t.INSERT_USERNAME, t.INSERT_TIME,
|
|
|
- t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.LIST_ID
|
|
|
+ t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.LIST_ID, t.AREA_ID, t.IS_SPELLING
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
- SELECT
|
|
|
- <include refid="columns"/>
|
|
|
- FROM QMS_QUEUE_RESULT
|
|
|
+ SELECT <include refid="columns" /> FROM QMS_QUEUE_RESULT
|
|
|
</sql>
|
|
|
<sql id="select_alias">
|
|
|
- SELECT
|
|
|
- <include refid="columns_alias"/>
|
|
|
- FROM QMS_QUEUE_RESULT t
|
|
|
+ SELECT <include refid="columns_alias" /> FROM QMS_QUEUE_RESULT t
|
|
|
</sql>
|
|
|
<sql id="where">
|
|
|
<where>
|
|
@@ -117,6 +115,12 @@
|
|
|
<if test="listId != null">
|
|
|
and LIST_ID = #{listId}
|
|
|
</if>
|
|
|
+ <if test="areaId != null and areaId != ''">
|
|
|
+ and AREA_ID = #{areaId}
|
|
|
+ </if>
|
|
|
+ <if test="isSpelling != null">
|
|
|
+ and IS_SPELLING = #{isSpelling}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
@@ -187,11 +191,16 @@
|
|
|
<if test="listId != null">
|
|
|
and LIST_ID = #{listId}
|
|
|
</if>
|
|
|
+ <if test="areaId != null and areaId != ''">
|
|
|
+ and AREA_ID LIKE '%${areaId}%'
|
|
|
+ </if>
|
|
|
+ <if test="isSpelling != null">
|
|
|
+ and IS_SPELLING = #{isSpelling}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
- delete
|
|
|
- from QMS_QUEUE_RESULT
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
|
+ delete from QMS_QUEUE_RESULT
|
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
</delete>
|
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
@@ -260,6 +269,12 @@
|
|
|
<if test="listId != null">
|
|
|
or LIST_ID = #{listId}
|
|
|
</if>
|
|
|
+ <if test="areaId != null and areaId != ''">
|
|
|
+ or AREA_ID = #{areaId}
|
|
|
+ </if>
|
|
|
+ <if test="isSpelling != null">
|
|
|
+ or IS_SPELLING = #{isSpelling}
|
|
|
+ </if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.QmsQueueResult">
|
|
|
insert into QMS_QUEUE_RESULT (RESULT_ID, RESULT_TOTAL_ID, CAPACITY_ID,
|
|
@@ -270,20 +285,18 @@
|
|
|
RESULT_INSERT_REASON, RESULT_TRANSFER_TIME,
|
|
|
RESULT_TRANSFER_REASON, INSERT_USERNAME, INSERT_TIME,
|
|
|
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
- LIST_ID)
|
|
|
+ LIST_ID, AREA_ID, IS_SPELLING
|
|
|
+ )
|
|
|
values (#{resultId,jdbcType=DECIMAL}, #{resultTotalId,jdbcType=DECIMAL}, #{capacityId,jdbcType=DECIMAL},
|
|
|
#{resultApplyforTime,jdbcType=TIMESTAMP}, #{resultApplyforLocation,jdbcType=VARCHAR},
|
|
|
- #{gridId,jdbcType=DECIMAL}, #{resultDownTime,jdbcType=TIMESTAMP},
|
|
|
- #{resultAcceptTime,jdbcType=TIMESTAMP},
|
|
|
- #{resultStartTime,jdbcType=TIMESTAMP}, #{resultEndTime,jdbcType=TIMESTAMP},
|
|
|
- #{resultCancelTime,jdbcType=TIMESTAMP},
|
|
|
+ #{gridId,jdbcType=DECIMAL}, #{resultDownTime,jdbcType=TIMESTAMP}, #{resultAcceptTime,jdbcType=TIMESTAMP},
|
|
|
+ #{resultStartTime,jdbcType=TIMESTAMP}, #{resultEndTime,jdbcType=TIMESTAMP}, #{resultCancelTime,jdbcType=TIMESTAMP},
|
|
|
#{resultCancelReason,jdbcType=VARCHAR}, #{resultInsertTime,jdbcType=TIMESTAMP},
|
|
|
#{resultInsertReason,jdbcType=VARCHAR}, #{resultTransferTime,jdbcType=TIMESTAMP},
|
|
|
- #{resultTransferReason,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
- #{insertTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
- #{listId,jdbcType=DECIMAL})
|
|
|
+ #{resultTransferReason,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
+ #{listId,jdbcType=DECIMAL}, #{areaId,jdbcType=VARCHAR}, #{isSpelling,jdbcType=DECIMAL}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.QmsQueueResult">
|
|
|
insert into QMS_QUEUE_RESULT
|
|
@@ -354,6 +367,12 @@
|
|
|
<if test="listId != null">
|
|
|
LIST_ID,
|
|
|
</if>
|
|
|
+ <if test="areaId != null">
|
|
|
+ AREA_ID,
|
|
|
+ </if>
|
|
|
+ <if test="isSpelling != null">
|
|
|
+ IS_SPELLING,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="resultId != null">
|
|
@@ -422,31 +441,39 @@
|
|
|
<if test="listId != null">
|
|
|
#{listId,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="areaId != null">
|
|
|
+ #{areaId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isSpelling != null">
|
|
|
+ #{isSpelling,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.QmsQueueResult">
|
|
|
update QMS_QUEUE_RESULT
|
|
|
- set RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL},
|
|
|
- CAPACITY_ID = #{capacityId,jdbcType=DECIMAL},
|
|
|
- RESULT_APPLYFOR_TIME = #{resultApplyforTime,jdbcType=TIMESTAMP},
|
|
|
+ set RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL},
|
|
|
+ CAPACITY_ID = #{capacityId,jdbcType=DECIMAL},
|
|
|
+ RESULT_APPLYFOR_TIME = #{resultApplyforTime,jdbcType=TIMESTAMP},
|
|
|
RESULT_APPLYFOR_LOCATION = #{resultApplyforLocation,jdbcType=VARCHAR},
|
|
|
- GRID_ID = #{gridId,jdbcType=DECIMAL},
|
|
|
- RESULT_DOWN_TIME = #{resultDownTime,jdbcType=TIMESTAMP},
|
|
|
- RESULT_ACCEPT_TIME = #{resultAcceptTime,jdbcType=TIMESTAMP},
|
|
|
- RESULT_START_TIME = #{resultStartTime,jdbcType=TIMESTAMP},
|
|
|
- RESULT_END_TIME = #{resultEndTime,jdbcType=TIMESTAMP},
|
|
|
- RESULT_CANCEL_TIME = #{resultCancelTime,jdbcType=TIMESTAMP},
|
|
|
- RESULT_CANCEL_REASON = #{resultCancelReason,jdbcType=VARCHAR},
|
|
|
- RESULT_INSERT_TIME = #{resultInsertTime,jdbcType=TIMESTAMP},
|
|
|
- RESULT_INSERT_REASON = #{resultInsertReason,jdbcType=VARCHAR},
|
|
|
- RESULT_TRANSFER_TIME = #{resultTransferTime,jdbcType=TIMESTAMP},
|
|
|
- RESULT_TRANSFER_REASON = #{resultTransferReason,jdbcType=VARCHAR},
|
|
|
- INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
- INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
- UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
- LIST_ID = #{listId,jdbcType=DECIMAL}
|
|
|
+ GRID_ID = #{gridId,jdbcType=DECIMAL},
|
|
|
+ RESULT_DOWN_TIME = #{resultDownTime,jdbcType=TIMESTAMP},
|
|
|
+ RESULT_ACCEPT_TIME = #{resultAcceptTime,jdbcType=TIMESTAMP},
|
|
|
+ RESULT_START_TIME = #{resultStartTime,jdbcType=TIMESTAMP},
|
|
|
+ RESULT_END_TIME = #{resultEndTime,jdbcType=TIMESTAMP},
|
|
|
+ RESULT_CANCEL_TIME = #{resultCancelTime,jdbcType=TIMESTAMP},
|
|
|
+ RESULT_CANCEL_REASON = #{resultCancelReason,jdbcType=VARCHAR},
|
|
|
+ RESULT_INSERT_TIME = #{resultInsertTime,jdbcType=TIMESTAMP},
|
|
|
+ RESULT_INSERT_REASON = #{resultInsertReason,jdbcType=VARCHAR},
|
|
|
+ RESULT_TRANSFER_TIME = #{resultTransferTime,jdbcType=TIMESTAMP},
|
|
|
+ RESULT_TRANSFER_REASON = #{resultTransferReason,jdbcType=VARCHAR},
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
+ LIST_ID = #{listId,jdbcType=DECIMAL},
|
|
|
+ AREA_ID = #{areaId,jdbcType=VARCHAR},
|
|
|
+ IS_SPELLING = #{isSpelling,jdbcType=DECIMAL}
|
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.QmsQueueResult">
|
|
@@ -515,20 +542,26 @@
|
|
|
<if test="listId != null">
|
|
|
LIST_ID = #{listId,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="areaId != null">
|
|
|
+ AREA_ID = #{areaId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isSpelling != null">
|
|
|
+ IS_SPELLING = #{isSpelling,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
|
+ <include refid="select" />
|
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
</select>
|
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
- <include refid="where"/>
|
|
|
+ <include refid="select" />
|
|
|
+ <include refid="where" />
|
|
|
</select>
|
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
- <include refid="whereLike"/>
|
|
|
+ <include refid="select" />
|
|
|
+ <include refid="whereLike" />
|
|
|
</select>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
insert into QMS_QUEUE_RESULT
|
|
@@ -542,12 +575,12 @@
|
|
|
RESULT_TRANSFER_TIME, RESULT_TRANSFER_REASON,
|
|
|
INSERT_USERNAME, INSERT_TIME,
|
|
|
UPDATE_USERNAME, UPDATE_TIME,
|
|
|
- INSERT_UPDATE_REMARK, LIST_ID)
|
|
|
+ INSERT_UPDATE_REMARK, LIST_ID, AREA_ID,
|
|
|
+ IS_SPELLING)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
|
#{item.resultId,jdbcType=DECIMAL},
|
|
|
- #{item.resultTotalId,jdbcType=DECIMAL}, #{item.capacityId,jdbcType=DECIMAL},
|
|
|
- #{item.resultApplyforTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.resultTotalId,jdbcType=DECIMAL}, #{item.capacityId,jdbcType=DECIMAL}, #{item.resultApplyforTime,jdbcType=TIMESTAMP},
|
|
|
#{item.resultApplyforLocation,jdbcType=VARCHAR}, #{item.gridId,jdbcType=DECIMAL},
|
|
|
#{item.resultDownTime,jdbcType=TIMESTAMP}, #{item.resultAcceptTime,jdbcType=TIMESTAMP},
|
|
|
#{item.resultStartTime,jdbcType=TIMESTAMP}, #{item.resultEndTime,jdbcType=TIMESTAMP},
|
|
@@ -556,109 +589,118 @@
|
|
|
#{item.resultTransferTime,jdbcType=TIMESTAMP}, #{item.resultTransferReason,jdbcType=VARCHAR},
|
|
|
#{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
#{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.listId,jdbcType=DECIMAL} from dual
|
|
|
+ #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.listId,jdbcType=DECIMAL}, #{item.areaId,jdbcType=VARCHAR},
|
|
|
+ #{item.isSpelling,jdbcType=DECIMAL} from dual
|
|
|
</foreach> )
|
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
update QMS_QUEUE_RESULT
|
|
|
set
|
|
|
RESULT_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,RESULT_TOTAL_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultTotalId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,CAPACITY_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.capacityId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,RESULT_APPLYFOR_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultApplyforTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,RESULT_APPLYFOR_LOCATION=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultApplyforLocation,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,GRID_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.gridId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,RESULT_DOWN_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultDownTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,RESULT_ACCEPT_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultAcceptTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,RESULT_START_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultStartTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,RESULT_END_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultEndTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,RESULT_CANCEL_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultCancelTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,RESULT_CANCEL_REASON=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultCancelReason,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,RESULT_INSERT_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultInsertTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,RESULT_INSERT_REASON=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultInsertReason,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,RESULT_TRANSFER_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultTransferTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,RESULT_TRANSFER_REASON=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultTransferReason,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,INSERT_USERNAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,INSERT_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,UPDATE_USERNAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,UPDATE_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,INSERT_UPDATE_REMARK=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,LIST_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.listId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
+ ,AREA_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.areaId,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,IS_SPELLING=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.isSpelling,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
where RESULT_ID in
|
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
#{item.resultId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
|
delete from QMS_QUEUE_RESULT
|
|
|
where RESULT_ID in
|
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|
|
@@ -780,93 +822,72 @@
|
|
|
|
|
|
<!-- 查询排队开始 -->
|
|
|
<select id="getQueueListByQueueUp" parameterType="java.util.Map" resultType="java.util.LinkedHashMap">
|
|
|
- select
|
|
|
+ SELECT
|
|
|
*
|
|
|
- from(
|
|
|
- select
|
|
|
- QQR.RESULT_ID "resultId",
|
|
|
+ FROM
|
|
|
(
|
|
|
- case
|
|
|
- when OO.ORDER_TYPE in (5, 6, 7, 8) then
|
|
|
- (
|
|
|
- select APO.PURCHASE_ORDER_NO from AMS_PURCHASE_ORDER APO
|
|
|
- where APO.PURCHASE_ORDER_ID = OO.ORDER_PLAN_ID
|
|
|
- )
|
|
|
- when OO.ORDER_TYPE in (1, 2, 3) then
|
|
|
- (
|
|
|
- select ASO.SALE_NUMBER from AMS_SALE_ORDER ASO
|
|
|
- where ASO.SALE_ORDER_ID = OO.ORDER_PLAN_ID
|
|
|
- )
|
|
|
- end
|
|
|
- ) "orderNo",
|
|
|
- OO.ORDER_NUMBER "orderNumber",
|
|
|
- RC.CAPACITY_NUMBER "capacityNumber",
|
|
|
- QQR.RESULT_START_TIME "resultStartTime",
|
|
|
- RG.GATEPOST_NAME "gatepostName",
|
|
|
- (
|
|
|
- <![CDATA[
|
|
|
- select
|
|
|
- count(*)
|
|
|
- from
|
|
|
- QMS_QUEUE_LIST QQL2
|
|
|
- join QMS_QUEUE_GRID QQG2
|
|
|
- on QQG2.GRID_ID = QQL2.GRID_ID
|
|
|
- where
|
|
|
- QQL2.LIST_NODE_ORDER <= QQL.list_node_order
|
|
|
- and QQL2.GRID_ID = QQL.GRID_ID
|
|
|
- and QQL2.DELETED = 0
|
|
|
- ]]>
|
|
|
- ) "listNodeOrder",
|
|
|
- RC.CAPACITY_VIP "capacityVip"
|
|
|
-
|
|
|
- from QMS_QUEUE_RESULT QQR
|
|
|
- left join QMS_QUEUE_LIST QQL
|
|
|
- on QQR.LIST_ID = QQL.LIST_ID
|
|
|
- left join QMS_QUEUE_GRID QQG
|
|
|
- on QQG.GRID_ID = QQL.GRID_ID
|
|
|
- left join RMS_GATEPOST RG
|
|
|
- on RG.GATEPOST_ID = QQG.QUEUE_LOCATION_ID
|
|
|
- left join TMSTRUCK_TOTAL_RESULT TTR
|
|
|
- on TTR.RESULT_TOTAL_ID = QQR.RESULT_TOTAL_ID
|
|
|
- left join OMSTRUCK_ORDER OO
|
|
|
- on OO.ORDER_ID = TTR.ORDER_ID
|
|
|
- left join RMS_CAPACITY RC
|
|
|
- on QQR.CAPACITY_ID = RC.CAPACITY_ID
|
|
|
-
|
|
|
- where QQR.RESULT_START_TIME is not null
|
|
|
- and QQL.DELETED = 0
|
|
|
- <if test="gridId != null">
|
|
|
- and QQL.GRID_ID = #{gridId}
|
|
|
- </if>
|
|
|
+ SELECT QQR.RESULT_ID "resultId",
|
|
|
+ QQR.RESULT_TOTAL_ID "resultTotalId",
|
|
|
+ QQR.RESULT_START_TIME "resultStartTime",
|
|
|
+ RM.MATERIAL_NAME || RM.MATERIAL_SPECIFICATION || RM.MATERIAL_MODEL "grid",
|
|
|
+ RM.MATERIAL_ID "materialId",
|
|
|
+ RM.MATERIAL_NAME "materialName",
|
|
|
+ RM.MATERIAL_SPECIFICATION "materialSpecification",
|
|
|
+ RM.MATERIAL_MODEL "materialModel",
|
|
|
+ QQL.LIST_ID "listId",
|
|
|
+ RC.CAPACITY_NUMBER "capacityNumber",
|
|
|
+ RC.CAPACITY_ID "capacityId",
|
|
|
+ QQL.ENTRY_SURE_TIME "sureTime",
|
|
|
+ OOM.ORDER_MATERIAL_NUMBER "materialNumber",
|
|
|
+ OO.DRIVER_TEL "driverTel",
|
|
|
+ (
|
|
|
+ select COUNT(QQL2.LIST_ID)
|
|
|
+ from QMS_QUEUE_LIST QQL2
|
|
|
+ where QQL2.GRID_ID = QQL.GRID_ID
|
|
|
+ and QQL2.LIST_NODE_ORDER >= QQL.LIST_NODE_ORDER
|
|
|
+ ) "listNodeOrder"
|
|
|
+ FROM QMS_QUEUE_LIST QQL
|
|
|
+ LEFT JOIN QMS_QUEUE_RESULT QQR ON QQL.QUEUE_RESULT_ID = QQR.RESULT_ID
|
|
|
+ LEFT JOIN TMSTRUCK_TOTAL_RESULT TTR ON QQR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
|
|
|
+ LEFT JOIN OMSTRUCK_ORDER_MATERIAL OOM ON TTR.ORDER_ID = OOM.ORDER_ID
|
|
|
+ LEFT JOIN RMS_MATERIAL RM ON OOM.MATERIAL_ID = RM.MATERIAL_ID
|
|
|
+ LEFT JOIN RMS_CAPACITY RC ON QQL.CAPACITY_ID = RC.CAPACITY_ID
|
|
|
+ LEFT JOIN OMSTRUCK_ORDER OO ON TTR.ORDER_ID = OO.ORDER_ID
|
|
|
+ <where>
|
|
|
+ <if test="capacityNumber != null">
|
|
|
+ instr(RC.CAPACITY_NUMBER, #{capacityNumber}) > 0
|
|
|
+ </if>
|
|
|
+ <if test="locationId != null">
|
|
|
+ and QQL.GRID_ID = #{locationId}
|
|
|
+ ORDER BY "listNodeOrder"
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ <if test="locationId == null">
|
|
|
+ ORDER BY "materialName" DESC, "listNodeOrder"
|
|
|
+ </if>
|
|
|
)
|
|
|
<where>
|
|
|
- <if test="purchaseOrderNo != null">
|
|
|
- <foreach collection="purchaseOrderNo" item="item" open="(" separator="or" close=")">
|
|
|
- "purchaseOrderNo" like '%${item}%'
|
|
|
+ <if test="resultStartTime != null">
|
|
|
+ <foreach collection="resultStartTime" item="item" open="(" separator="or" close=")">
|
|
|
+ "resultStartTime" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="orderNumber != null">
|
|
|
+ <if test="materialName != null">
|
|
|
and
|
|
|
- <foreach collection="orderNumber" item="item" open="(" separator="or" close=")">
|
|
|
- "orderNumber" like '%${item}%'
|
|
|
+ <foreach collection="materialName" item="item" open="(" separator="or" close=")">
|
|
|
+ "materialName" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="capacityNumber != null">
|
|
|
+ <if test="materialSpecification != null">
|
|
|
and
|
|
|
- <foreach collection="capacityNumber" item="item" open="(" separator="or" close=")">
|
|
|
- "capacityNumber" like '%${item}%'
|
|
|
+ <foreach collection="materialSpecification" item="item" open="(" separator="or" close=")">
|
|
|
+ "materialSpecification" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="resultStartTime != null">
|
|
|
+ <if test="materialModel != null">
|
|
|
and
|
|
|
- <foreach collection="resultStartTime" item="item" open="(" separator="or" close=")">
|
|
|
- "resultStartTime" like '%${item}%'
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="gatepostName != null">
|
|
|
- and
|
|
|
- <foreach collection="gatepostName" item="item" open="(" separator="or" close=")">
|
|
|
- "gatepostName" like '%${item}%'
|
|
|
+ <foreach collection="materialModel" item="item" open="(" separator="or" close=")">
|
|
|
+ "materialModel" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="listNodeOrder != null">
|
|
@@ -876,12 +897,53 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
</where>
|
|
|
- <include refid="orderBy"></include>
|
|
|
- <if test="orderField == null ">
|
|
|
- order by "resultStartTime" desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="getQueueListByQueueUpSpelling" parameterType="map" resultType="java.util.LinkedHashMap">
|
|
|
+ select QQR.RESULT_ID "resultId",
|
|
|
+ QQR.RESULT_TOTAL_ID "resultTotalId",
|
|
|
+ QQR.RESULT_START_TIME "resultStartTime",
|
|
|
+ RC.CAPACITY_NUMBER "capacityNumber",
|
|
|
+ QQSL.SPELILING_NUM "grid",
|
|
|
+ QQSL.SPELLING_RESULT_ID "spellingResultId",
|
|
|
+ RM.MATERIAL_ID "materialId",
|
|
|
+ RM.MATERIAL_NAME "materialName",
|
|
|
+ RM.MATERIAL_SPECIFICATION "materialSpecification",
|
|
|
+ RC.CAPACITY_ID "capacityId",
|
|
|
+ RM.MATERIAL_MODEL "materialModel",
|
|
|
+ QQSL.ENTRY_SURE_TIME "sureTime",
|
|
|
+ OOM.ORDER_MATERIAL_NUMBER "materialNumber",
|
|
|
+ OO.DRIVER_TEL "driverTel",
|
|
|
+ (
|
|
|
+ select count(QQSL2.SPELLING_RESULT_ID) from QMS_QUEUE_SPELLING_LIST QQSL2
|
|
|
+ where QQSL.SPELILING_NUM = QQSL2.SPELILING_NUM
|
|
|
+ and QQSL.SPELLING_SURE_TIME <= QQSL2.SPELLING_SURE_TIME
|
|
|
+
|
|
|
+ ) "listNodeOrder"
|
|
|
+
|
|
|
+ from QMS_QUEUE_SPELLING_LIST QQSL
|
|
|
+ left join QMS_QUEUE_RESULT QQR ON QQSL.QUEUE_RESULT_ID = QQR.RESULT_ID
|
|
|
+ left join RMS_CAPACITY RC ON QQR.CAPACITY_ID = RC.CAPACITY_ID
|
|
|
+ left join TMSTRUCK_TOTAL_RESULT TTR on QQR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
|
|
|
+ left join OMSTRUCK_ORDER_MATERIAL OOM on TTR.ORDER_ID = OOM.ORDER_ID
|
|
|
+ left join RMS_MATERIAL RM on OOM.MATERIAL_ID = RM.MATERIAL_ID
|
|
|
+ left join OMSTRUCK_ORDER OO on TTR.ORDER_ID = OO.ORDER_ID
|
|
|
+ <where>
|
|
|
+ <if test="capacityNumber != null">
|
|
|
+ instr(RC.CAPACITY_NUMBER, #{capacityNumber}) > 0
|
|
|
+ </if>
|
|
|
+ <if test="locationId != null">
|
|
|
+ and QQSL.SPELILING_NUM = #{locationId}
|
|
|
+ ORDER BY "listNodeOrder"
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ <if test="locationId == null">
|
|
|
+ order by QQSL.SPELILING_NUM DESC, "listNodeOrder"
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
<!-- 查看进厂排队详情 -->
|
|
|
<select id="getQueueMes" resultType="java.util.Map" parameterType="java.util.Map">
|
|
|
select *
|
|
@@ -2252,4 +2314,32 @@
|
|
|
where QQG.GRID_ID = #{gridId}
|
|
|
</select>
|
|
|
|
|
|
+<!-- 通过订单Id查询物资下面的仓储网格ID -->
|
|
|
+ <select id="getGridIdByOrderId" parameterType="java.math.BigDecimal" resultType="java.math.BigDecimal">
|
|
|
+ select QQR.GRID_ID "grid"
|
|
|
+ from OMSTRUCK_ORDER_MATERIAL OOM
|
|
|
+ left join QMS_QUEUE_GRID QQR on OOM.MATERIAL_ID = QQR.QUEUE_LOCATION_ID
|
|
|
+ where OOM.ORDER_ID = #{orderId} and QQR.GRID_TYPE = 4
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getMaterialIdByOrderId" parameterType="java.math.BigDecimal" resultType="java.lang.Integer">
|
|
|
+ select OOM.MATERIAL_ID from OMSTRUCK_ORDER_MATERIAL OOM where OOM.ORDER_ID = #{orderId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getQueueResultByOrderId" parameterType="java.math.BigDecimal" resultType="java.util.Map">
|
|
|
+ select QQR.RESULT_ID "resultId",
|
|
|
+ QQR.RESULT_DOWN_TIME "resultDownTime"
|
|
|
+ from TMSTRUCK_TOTAL_RESULT TTR
|
|
|
+ left join QMS_QUEUE_RESULT QQR on TTR.RESULT_TOTAL_ID = QQR.RESULT_TOTAL_ID
|
|
|
+ where TTR.ORDER_ID = #{orderId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getResultMesByTotalId" parameterType="java.math.BigDecimal" resultType="java.util.Map">
|
|
|
+ select QQR.RESULT_ID "resultId",
|
|
|
+ QQR.IS_SPELLING "isSpelling"
|
|
|
+ from QMS_QUEUE_RESULT QQR
|
|
|
+ where QQR.RESULT_TOTAL_ID = #{resultTotalId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
</mapper>
|