|
@@ -22,25 +22,26 @@
|
|
<result column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId" />
|
|
<result column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId" />
|
|
<result column="ISDEDUCT" jdbcType="DECIMAL" property="isdeduct" />
|
|
<result column="ISDEDUCT" jdbcType="DECIMAL" property="isdeduct" />
|
|
<result column="ISQUALITY" jdbcType="DECIMAL" property="isquality" />
|
|
<result column="ISQUALITY" jdbcType="DECIMAL" property="isquality" />
|
|
|
|
+ <result column="SEGMENT_SQE" jdbcType="DECIMAL" property="segmentSqe" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
- WEIGHT_TASK_RESULT_ID, RESULT_TOTAL_ID, RESULT_POUND_NO, RESULT_GROSS_WEIGHT, RESULT_GROSS_WEIGHT_TIME,
|
|
|
|
- RESULT_TARE_WEIGHT, RESULT_TARE_WEIGHT_TIME, RESULT_NET_WEIGHT, INSERT_USERNAME,
|
|
|
|
- INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETE_NAME, DELETE_TIME,
|
|
|
|
- RESULT_GROSS_PLACE_ID, RESULT_TARE_PLACE_ID, MATERIAL_ID, ISDEDUCT, ISQUALITY
|
|
|
|
|
|
+ WEIGHT_TASK_RESULT_ID, RESULT_TOTAL_ID, RESULT_POUND_NO, RESULT_GROSS_WEIGHT, RESULT_GROSS_WEIGHT_TIME,
|
|
|
|
+ RESULT_TARE_WEIGHT, RESULT_TARE_WEIGHT_TIME, RESULT_NET_WEIGHT, INSERT_USERNAME,
|
|
|
|
+ INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETE_NAME, DELETE_TIME,
|
|
|
|
+ RESULT_GROSS_PLACE_ID, RESULT_TARE_PLACE_ID, MATERIAL_ID, ISDEDUCT, ISQUALITY, SEGMENT_SQE
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
- t.WEIGHT_TASK_RESULT_ID, t.RESULT_TOTAL_ID, t.RESULT_POUND_NO, t.RESULT_GROSS_WEIGHT,
|
|
|
|
- t.RESULT_GROSS_WEIGHT_TIME, t.RESULT_TARE_WEIGHT, t.RESULT_TARE_WEIGHT_TIME, t.RESULT_NET_WEIGHT,
|
|
|
|
- t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK,
|
|
|
|
- t.DELETE_NAME, t.DELETE_TIME, t.RESULT_GROSS_PLACE_ID, t.RESULT_TARE_PLACE_ID, t.MATERIAL_ID,
|
|
|
|
- t.ISDEDUCT, t.ISQUALITY
|
|
|
|
|
|
+ t.WEIGHT_TASK_RESULT_ID, t.RESULT_TOTAL_ID, t.RESULT_POUND_NO, t.RESULT_GROSS_WEIGHT,
|
|
|
|
+ t.RESULT_GROSS_WEIGHT_TIME, t.RESULT_TARE_WEIGHT, t.RESULT_TARE_WEIGHT_TIME, t.RESULT_NET_WEIGHT,
|
|
|
|
+ t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK,
|
|
|
|
+ t.DELETE_NAME, t.DELETE_TIME, t.RESULT_GROSS_PLACE_ID, t.RESULT_TARE_PLACE_ID, t.MATERIAL_ID,
|
|
|
|
+ t.ISDEDUCT, t.ISQUALITY, t.SEGMENT_SQE
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
- SELECT <include refid="columns" /> FROM TMSTRUCK_WEIGHT_RESULT
|
|
|
|
|
|
+ SELECT <include refid="columns"/> FROM TMSTRUCK_WEIGHT_RESULT
|
|
</sql>
|
|
</sql>
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
- SELECT <include refid="columns_alias" /> FROM TMSTRUCK_WEIGHT_RESULT t
|
|
|
|
|
|
+ SELECT <include refid="columns_alias"/> FROM TMSTRUCK_WEIGHT_RESULT t
|
|
</sql>
|
|
</sql>
|
|
<sql id="where">
|
|
<sql id="where">
|
|
<where>
|
|
<where>
|
|
@@ -104,6 +105,9 @@
|
|
<if test="isquality != null">
|
|
<if test="isquality != null">
|
|
and ISQUALITY = #{isquality}
|
|
and ISQUALITY = #{isquality}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="segmentSqe != null">
|
|
|
|
+ and SEGMENT_SQE = #{segmentSqe}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -168,6 +172,9 @@
|
|
<if test="isquality != null">
|
|
<if test="isquality != null">
|
|
and ISQUALITY = #{isquality}
|
|
and ISQUALITY = #{isquality}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="segmentSqe != null">
|
|
|
|
+ and SEGMENT_SQE = #{segmentSqe}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
@@ -234,6 +241,9 @@
|
|
<if test="isquality != null">
|
|
<if test="isquality != null">
|
|
or ISQUALITY = #{isquality}
|
|
or ISQUALITY = #{isquality}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="segmentSqe != null">
|
|
|
|
+ or SEGMENT_SQE = #{segmentSqe}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
insert into TMSTRUCK_WEIGHT_RESULT (WEIGHT_TASK_RESULT_ID, RESULT_TOTAL_ID,
|
|
insert into TMSTRUCK_WEIGHT_RESULT (WEIGHT_TASK_RESULT_ID, RESULT_TOTAL_ID,
|
|
@@ -243,7 +253,7 @@
|
|
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
DELETE_NAME, DELETE_TIME, RESULT_GROSS_PLACE_ID,
|
|
DELETE_NAME, DELETE_TIME, RESULT_GROSS_PLACE_ID,
|
|
RESULT_TARE_PLACE_ID, MATERIAL_ID, ISDEDUCT,
|
|
RESULT_TARE_PLACE_ID, MATERIAL_ID, ISDEDUCT,
|
|
- ISQUALITY)
|
|
|
|
|
|
+ ISQUALITY, SEGMENT_SQE)
|
|
values (#{weightTaskResultId,jdbcType=DECIMAL}, #{resultTotalId,jdbcType=DECIMAL},
|
|
values (#{weightTaskResultId,jdbcType=DECIMAL}, #{resultTotalId,jdbcType=DECIMAL},
|
|
#{resultPoundNo,jdbcType=VARCHAR}, #{resultGrossWeight,jdbcType=DECIMAL}, #{resultGrossWeightTime,jdbcType=TIMESTAMP},
|
|
#{resultPoundNo,jdbcType=VARCHAR}, #{resultGrossWeight,jdbcType=DECIMAL}, #{resultGrossWeightTime,jdbcType=TIMESTAMP},
|
|
#{resultTareWeight,jdbcType=DECIMAL}, #{resultTareWeightTime,jdbcType=TIMESTAMP},
|
|
#{resultTareWeight,jdbcType=DECIMAL}, #{resultTareWeightTime,jdbcType=TIMESTAMP},
|
|
@@ -251,7 +261,7 @@
|
|
#{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP}, #{resultGrossPlaceId,jdbcType=DECIMAL},
|
|
#{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP}, #{resultGrossPlaceId,jdbcType=DECIMAL},
|
|
#{resultTarePlaceId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL}, #{isdeduct,jdbcType=DECIMAL},
|
|
#{resultTarePlaceId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL}, #{isdeduct,jdbcType=DECIMAL},
|
|
- #{isquality,jdbcType=DECIMAL})
|
|
|
|
|
|
+ #{isquality,jdbcType=DECIMAL}, #{segmentSqe,jdbcType=DECIMAL})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
insert into TMSTRUCK_WEIGHT_RESULT
|
|
insert into TMSTRUCK_WEIGHT_RESULT
|
|
@@ -316,6 +326,9 @@
|
|
<if test="isquality != null">
|
|
<if test="isquality != null">
|
|
ISQUALITY,
|
|
ISQUALITY,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="segmentSqe != null">
|
|
|
|
+ SEGMENT_SQE,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="weightTaskResultId != null">
|
|
<if test="weightTaskResultId != null">
|
|
@@ -378,6 +391,9 @@
|
|
<if test="isquality != null">
|
|
<if test="isquality != null">
|
|
#{isquality,jdbcType=DECIMAL},
|
|
#{isquality,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="segmentSqe != null">
|
|
|
|
+ #{segmentSqe,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
@@ -400,7 +416,8 @@
|
|
RESULT_TARE_PLACE_ID = #{resultTarePlaceId,jdbcType=DECIMAL},
|
|
RESULT_TARE_PLACE_ID = #{resultTarePlaceId,jdbcType=DECIMAL},
|
|
MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
|
|
MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
|
|
ISDEDUCT = #{isdeduct,jdbcType=DECIMAL},
|
|
ISDEDUCT = #{isdeduct,jdbcType=DECIMAL},
|
|
- ISQUALITY = #{isquality,jdbcType=DECIMAL}
|
|
|
|
|
|
+ ISQUALITY = #{isquality,jdbcType=DECIMAL},
|
|
|
|
+ SEGMENT_SQE = #{segmentSqe,jdbcType=DECIMAL}
|
|
where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL}
|
|
where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
@@ -463,20 +480,23 @@
|
|
<if test="isquality != null">
|
|
<if test="isquality != null">
|
|
ISQUALITY = #{isquality,jdbcType=DECIMAL},
|
|
ISQUALITY = #{isquality,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="segmentSqe != null">
|
|
|
|
+ SEGMENT_SQE = #{segmentSqe,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL}
|
|
where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
- <include refid="select" />
|
|
|
|
|
|
+ <include refid="select"/>
|
|
where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL}
|
|
where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL}
|
|
</select>
|
|
</select>
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
- <include refid="select" />
|
|
|
|
- <include refid="where" />
|
|
|
|
|
|
+ <include refid="select"/>
|
|
|
|
+ <include refid="where"/>
|
|
</select>
|
|
</select>
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
- <include refid="select" />
|
|
|
|
- <include refid="whereLike" />
|
|
|
|
|
|
+ <include refid="select"/>
|
|
|
|
+ <include refid="whereLike"/>
|
|
</select>
|
|
</select>
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
insert into TMSTRUCK_WEIGHT_RESULT
|
|
insert into TMSTRUCK_WEIGHT_RESULT
|
|
@@ -489,7 +509,8 @@
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
DELETE_NAME, DELETE_TIME, RESULT_GROSS_PLACE_ID,
|
|
DELETE_NAME, DELETE_TIME, RESULT_GROSS_PLACE_ID,
|
|
RESULT_TARE_PLACE_ID, MATERIAL_ID,
|
|
RESULT_TARE_PLACE_ID, MATERIAL_ID,
|
|
- ISDEDUCT, ISQUALITY)
|
|
|
|
|
|
+ ISDEDUCT, ISQUALITY, SEGMENT_SQE
|
|
|
|
+ )
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.weightTaskResultId,jdbcType=DECIMAL},
|
|
#{item.weightTaskResultId,jdbcType=DECIMAL},
|
|
@@ -501,107 +522,111 @@
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.deleteName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP}, #{item.resultGrossPlaceId,jdbcType=DECIMAL},
|
|
#{item.deleteName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP}, #{item.resultGrossPlaceId,jdbcType=DECIMAL},
|
|
#{item.resultTarePlaceId,jdbcType=DECIMAL}, #{item.materialId,jdbcType=DECIMAL},
|
|
#{item.resultTarePlaceId,jdbcType=DECIMAL}, #{item.materialId,jdbcType=DECIMAL},
|
|
- #{item.isdeduct,jdbcType=DECIMAL}, #{item.isquality,jdbcType=DECIMAL} from dual
|
|
|
|
|
|
+ #{item.isdeduct,jdbcType=DECIMAL}, #{item.isquality,jdbcType=DECIMAL}, #{item.segmentSqe,jdbcType=DECIMAL}
|
|
|
|
+ from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
update TMSTRUCK_WEIGHT_RESULT
|
|
update TMSTRUCK_WEIGHT_RESULT
|
|
set
|
|
set
|
|
WEIGHT_TASK_RESULT_ID=
|
|
WEIGHT_TASK_RESULT_ID=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.weightTaskResultId,jdbcType=DECIMAL}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.weightTaskResultId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_TOTAL_ID=
|
|
,RESULT_TOTAL_ID=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultTotalId,jdbcType=DECIMAL}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultTotalId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_POUND_NO=
|
|
,RESULT_POUND_NO=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultPoundNo,jdbcType=VARCHAR}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultPoundNo,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_GROSS_WEIGHT=
|
|
,RESULT_GROSS_WEIGHT=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultGrossWeight,jdbcType=DECIMAL}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultGrossWeight,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_GROSS_WEIGHT_TIME=
|
|
,RESULT_GROSS_WEIGHT_TIME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultGrossWeightTime,jdbcType=TIMESTAMP}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultGrossWeightTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_TARE_WEIGHT=
|
|
,RESULT_TARE_WEIGHT=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultTareWeight,jdbcType=DECIMAL}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultTareWeight,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_TARE_WEIGHT_TIME=
|
|
,RESULT_TARE_WEIGHT_TIME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultTareWeightTime,jdbcType=TIMESTAMP}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultTareWeightTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_NET_WEIGHT=
|
|
,RESULT_NET_WEIGHT=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultNetWeight,jdbcType=DECIMAL}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultNetWeight,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_USERNAME=
|
|
,INSERT_USERNAME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_TIME=
|
|
,INSERT_TIME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_USERNAME=
|
|
,UPDATE_USERNAME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_TIME=
|
|
,UPDATE_TIME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_UPDATE_REMARK=
|
|
,INSERT_UPDATE_REMARK=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,DELETE_NAME=
|
|
,DELETE_NAME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.deleteName,jdbcType=VARCHAR}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.deleteName,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,DELETE_TIME=
|
|
,DELETE_TIME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=TIMESTAMP}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_GROSS_PLACE_ID=
|
|
,RESULT_GROSS_PLACE_ID=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultGrossPlaceId,jdbcType=DECIMAL}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultGrossPlaceId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_TARE_PLACE_ID=
|
|
,RESULT_TARE_PLACE_ID=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultTarePlaceId,jdbcType=DECIMAL}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.resultTarePlaceId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,MATERIAL_ID=
|
|
,MATERIAL_ID=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,ISDEDUCT=
|
|
,ISDEDUCT=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.isdeduct,jdbcType=DECIMAL}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.isdeduct,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,ISQUALITY=
|
|
,ISQUALITY=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case WEIGHT_TASK_RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.isquality,jdbcType=DECIMAL}
|
|
when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.isquality,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,SEGMENT_SQE=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID" close="end">
|
|
|
|
+ when #{item.weightTaskResultId,jdbcType=DECIMAL} then #{item.segmentSqe,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
where WEIGHT_TASK_RESULT_ID in
|
|
where WEIGHT_TASK_RESULT_ID in
|
|
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
#{item.weightTaskResultId,jdbcType=DECIMAL}
|
|
#{item.weightTaskResultId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
delete from TMSTRUCK_WEIGHT_RESULT
|
|
delete from TMSTRUCK_WEIGHT_RESULT
|
|
where WEIGHT_TASK_RESULT_ID in
|
|
where WEIGHT_TASK_RESULT_ID in
|
|
- <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
-
|
|
|
|
<!-- 进行排序 -->
|
|
<!-- 进行排序 -->
|
|
<sql id="orderBy">
|
|
<sql id="orderBy">
|
|
<if test="orderField != null and orderField != ''">
|
|
<if test="orderField != null and orderField != ''">
|