|
@@ -2,50 +2,48 @@
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.steerinfo.dil.mapper.TmstruckWeightResultMapper">
|
|
<mapper namespace="com.steerinfo.dil.mapper.TmstruckWeightResultMapper">
|
|
<resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
<resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
- <id column="WEIGHT_TASK_RESULT_ID" jdbcType="DECIMAL" property="weightTaskResultId"/>
|
|
|
|
- <result column="RESULT_TOTAL_ID" jdbcType="DECIMAL" property="resultTotalId"/>
|
|
|
|
- <result column="RESULT_POUND_NO" jdbcType="VARCHAR" property="resultPoundNo"/>
|
|
|
|
- <result column="RESULT_GROSS_WEIGHT" jdbcType="DECIMAL" property="resultGrossWeight"/>
|
|
|
|
- <result column="RESULT_GROSS_WEIGHT_TIME" jdbcType="TIMESTAMP" property="resultGrossWeightTime"/>
|
|
|
|
- <result column="RESULT_TARE_WEIGHT" jdbcType="DECIMAL" property="resultTareWeight"/>
|
|
|
|
- <result column="RESULT_TARE_WEIGHT_TIME" jdbcType="TIMESTAMP" property="resultTareWeightTime"/>
|
|
|
|
- <result column="RESULT_NET_WEIGHT" jdbcType="DECIMAL" property="resultNetWeight"/>
|
|
|
|
- <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="DELETE_NAME" jdbcType="VARCHAR" property="deleteName"/>
|
|
|
|
- <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime"/>
|
|
|
|
- <result column="RESULT_GROSS_PLACE_ID" jdbcType="DECIMAL" property="resultGrossPlaceId"/>
|
|
|
|
- <result column="RESULT_TARE_PLACE_ID" jdbcType="DECIMAL" property="resultTarePlaceId"/>
|
|
|
|
- <result column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId"/>
|
|
|
|
- <result column="ISDEDUCT" jdbcType="DECIMAL" property="isdeduct"/>
|
|
|
|
- <result column="ISQUALITY" jdbcType="DECIMAL" property="isquality"/>
|
|
|
|
- <result column="SEGMENT_SQE" jdbcType="DECIMAL" property="segmentSqe"/>
|
|
|
|
|
|
+ <id column="WEIGHT_TASK_RESULT_ID" jdbcType="DECIMAL" property="weightTaskResultId" />
|
|
|
|
+ <result column="RESULT_TOTAL_ID" jdbcType="DECIMAL" property="resultTotalId" />
|
|
|
|
+ <result column="RESULT_POUND_NO" jdbcType="VARCHAR" property="resultPoundNo" />
|
|
|
|
+ <result column="RESULT_GROSS_WEIGHT" jdbcType="DECIMAL" property="resultGrossWeight" />
|
|
|
|
+ <result column="RESULT_GROSS_WEIGHT_TIME" jdbcType="TIMESTAMP" property="resultGrossWeightTime" />
|
|
|
|
+ <result column="RESULT_TARE_WEIGHT" jdbcType="DECIMAL" property="resultTareWeight" />
|
|
|
|
+ <result column="RESULT_TARE_WEIGHT_TIME" jdbcType="TIMESTAMP" property="resultTareWeightTime" />
|
|
|
|
+ <result column="RESULT_NET_WEIGHT" jdbcType="DECIMAL" property="resultNetWeight" />
|
|
|
|
+ <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="DELETE_NAME" jdbcType="VARCHAR" property="deleteName" />
|
|
|
|
+ <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
|
|
|
|
+ <result column="RESULT_GROSS_PLACE_ID" jdbcType="DECIMAL" property="resultGrossPlaceId" />
|
|
|
|
+ <result column="RESULT_TARE_PLACE_ID" jdbcType="DECIMAL" property="resultTarePlaceId" />
|
|
|
|
+ <result column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId" />
|
|
|
|
+ <result column="ISDEDUCT" jdbcType="DECIMAL" property="isdeduct" />
|
|
|
|
+ <result column="ISQUALITY" jdbcType="DECIMAL" property="isquality" />
|
|
|
|
+ <result column="GROSS_SEGMENT_SQE" jdbcType="DECIMAL" property="grossSegmentSqe" />
|
|
|
|
+ <result column="TARE_SEGMENT_SQE" jdbcType="DECIMAL" property="tareSegmentSqe" />
|
|
</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, SEGMENT_SQE
|
|
|
|
|
|
+ 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, GROSS_SEGMENT_SQE,
|
|
|
|
+ TARE_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.SEGMENT_SQE
|
|
|
|
|
|
+ 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.GROSS_SEGMENT_SQE, t.TARE_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>
|
|
@@ -109,8 +107,11 @@
|
|
<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 test="grossSegmentSqe != null">
|
|
|
|
+ and GROSS_SEGMENT_SQE = #{grossSegmentSqe}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tareSegmentSqe != null">
|
|
|
|
+ and TARE_SEGMENT_SQE = #{tareSegmentSqe}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
@@ -176,14 +177,16 @@
|
|
<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 test="grossSegmentSqe != null">
|
|
|
|
+ and GROSS_SEGMENT_SQE = #{grossSegmentSqe}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tareSegmentSqe != null">
|
|
|
|
+ and TARE_SEGMENT_SQE = #{tareSegmentSqe}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
- delete
|
|
|
|
- from TMSTRUCK_WEIGHT_RESULT
|
|
|
|
|
|
+ delete from TMSTRUCK_WEIGHT_RESULT
|
|
where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL}
|
|
where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL}
|
|
</delete>
|
|
</delete>
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
@@ -246,8 +249,11 @@
|
|
<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 test="grossSegmentSqe != null">
|
|
|
|
+ or GROSS_SEGMENT_SQE = #{grossSegmentSqe}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tareSegmentSqe != null">
|
|
|
|
+ or TARE_SEGMENT_SQE = #{tareSegmentSqe}
|
|
</if>
|
|
</if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
@@ -258,19 +264,17 @@
|
|
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, SEGMENT_SQE)
|
|
|
|
|
|
+ ISQUALITY, GROSS_SEGMENT_SQE, TARE_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},
|
|
- #{resultNetWeight,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
- #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
- #{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{resultGrossPlaceId,jdbcType=DECIMAL},
|
|
|
|
|
|
+ #{resultNetWeight,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ #{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}, #{segmentSqe,jdbcType=DECIMAL})
|
|
|
|
|
|
+ #{isquality,jdbcType=DECIMAL}, #{grossSegmentSqe,jdbcType=DECIMAL}, #{tareSegmentSqe,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
|
|
@@ -335,8 +339,11 @@
|
|
<if test="isquality != null">
|
|
<if test="isquality != null">
|
|
ISQUALITY,
|
|
ISQUALITY,
|
|
</if>
|
|
</if>
|
|
- <if test="segmentSqe != null">
|
|
|
|
- SEGMENT_SQE,
|
|
|
|
|
|
+ <if test="grossSegmentSqe != null">
|
|
|
|
+ GROSS_SEGMENT_SQE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tareSegmentSqe != null">
|
|
|
|
+ TARE_SEGMENT_SQE,
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -400,33 +407,37 @@
|
|
<if test="isquality != null">
|
|
<if test="isquality != null">
|
|
#{isquality,jdbcType=DECIMAL},
|
|
#{isquality,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
- <if test="segmentSqe != null">
|
|
|
|
- #{segmentSqe,jdbcType=DECIMAL},
|
|
|
|
|
|
+ <if test="grossSegmentSqe != null">
|
|
|
|
+ #{grossSegmentSqe,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tareSegmentSqe != null">
|
|
|
|
+ #{tareSegmentSqe,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstruckWeightResult">
|
|
update TMSTRUCK_WEIGHT_RESULT
|
|
update TMSTRUCK_WEIGHT_RESULT
|
|
- set RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL},
|
|
|
|
- RESULT_POUND_NO = #{resultPoundNo,jdbcType=VARCHAR},
|
|
|
|
- RESULT_GROSS_WEIGHT = #{resultGrossWeight,jdbcType=DECIMAL},
|
|
|
|
|
|
+ set RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_POUND_NO = #{resultPoundNo,jdbcType=VARCHAR},
|
|
|
|
+ RESULT_GROSS_WEIGHT = #{resultGrossWeight,jdbcType=DECIMAL},
|
|
RESULT_GROSS_WEIGHT_TIME = #{resultGrossWeightTime,jdbcType=TIMESTAMP},
|
|
RESULT_GROSS_WEIGHT_TIME = #{resultGrossWeightTime,jdbcType=TIMESTAMP},
|
|
- RESULT_TARE_WEIGHT = #{resultTareWeight,jdbcType=DECIMAL},
|
|
|
|
- RESULT_TARE_WEIGHT_TIME = #{resultTareWeightTime,jdbcType=TIMESTAMP},
|
|
|
|
- RESULT_NET_WEIGHT = #{resultNetWeight,jdbcType=DECIMAL},
|
|
|
|
- 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},
|
|
|
|
- DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
|
|
|
|
- DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
|
- RESULT_GROSS_PLACE_ID = #{resultGrossPlaceId,jdbcType=DECIMAL},
|
|
|
|
- RESULT_TARE_PLACE_ID = #{resultTarePlaceId,jdbcType=DECIMAL},
|
|
|
|
- MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
|
|
|
|
- ISDEDUCT = #{isdeduct,jdbcType=DECIMAL},
|
|
|
|
- ISQUALITY = #{isquality,jdbcType=DECIMAL},
|
|
|
|
- SEGMENT_SQE = #{segmentSqe,jdbcType=DECIMAL}
|
|
|
|
|
|
+ RESULT_TARE_WEIGHT = #{resultTareWeight,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_TARE_WEIGHT_TIME = #{resultTareWeightTime,jdbcType=TIMESTAMP},
|
|
|
|
+ RESULT_NET_WEIGHT = #{resultNetWeight,jdbcType=DECIMAL},
|
|
|
|
+ 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},
|
|
|
|
+ DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
|
|
|
|
+ DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
|
+ RESULT_GROSS_PLACE_ID = #{resultGrossPlaceId,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_TARE_PLACE_ID = #{resultTarePlaceId,jdbcType=DECIMAL},
|
|
|
|
+ MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
|
|
|
|
+ ISDEDUCT = #{isdeduct,jdbcType=DECIMAL},
|
|
|
|
+ ISQUALITY = #{isquality,jdbcType=DECIMAL},
|
|
|
|
+ GROSS_SEGMENT_SQE = #{grossSegmentSqe,jdbcType=DECIMAL},
|
|
|
|
+ TARE_SEGMENT_SQE = #{tareSegmentSqe,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">
|
|
@@ -489,8 +500,11 @@
|
|
<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 test="grossSegmentSqe != null">
|
|
|
|
+ GROSS_SEGMENT_SQE = #{grossSegmentSqe,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tareSegmentSqe != null">
|
|
|
|
+ TARE_SEGMENT_SQE = #{tareSegmentSqe,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL}
|
|
where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL}
|
|
@@ -518,8 +532,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, SEGMENT_SQE
|
|
|
|
- )
|
|
|
|
|
|
+ ISDEDUCT, ISQUALITY, GROSS_SEGMENT_SQE,
|
|
|
|
+ TARE_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},
|
|
@@ -529,120 +543,102 @@
|
|
#{item.resultNetWeight,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR},
|
|
#{item.resultNetWeight,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR},
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{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}, #{item.segmentSqe,jdbcType=DECIMAL}
|
|
|
|
- from dual
|
|
|
|
|
|
+ #{item.isdeduct,jdbcType=DECIMAL}, #{item.isquality,jdbcType=DECIMAL}, #{item.grossSegmentSqe,jdbcType=DECIMAL},
|
|
|
|
+ #{item.tareSegmentSqe,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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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 collection="list" item="item" index="index" separator=" " open="case WEIGHT_TASK_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <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}
|
|
|
|
|
|
+ ,GROSS_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.grossSegmentSqe,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,TARE_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.tareSegmentSqe,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
where WEIGHT_TASK_RESULT_ID in
|
|
where WEIGHT_TASK_RESULT_ID in
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
@@ -674,12 +670,15 @@
|
|
select OO.ORDER_ID "orderId",
|
|
select OO.ORDER_ID "orderId",
|
|
OO.ORDER_TYPE "orderTypee",
|
|
OO.ORDER_TYPE "orderTypee",
|
|
TWR.WEIGHT_TASK_RESULT_ID "weightTaskResultId",
|
|
TWR.WEIGHT_TASK_RESULT_ID "weightTaskResultId",
|
|
- TTR.RESULT_TOTAL_ID "resultTotalId"
|
|
|
|
|
|
+ TTR.RESULT_TOTAL_ID "resultTotalId",
|
|
|
|
+ RC.CAPACITY_NUMBER "capacityNumber"
|
|
from OMSTRUCK_ORDER OO
|
|
from OMSTRUCK_ORDER OO
|
|
left join TMSTRUCK_TOTAL_RESULT TTR
|
|
left join TMSTRUCK_TOTAL_RESULT TTR
|
|
- on OO.ORDER_ID = TTR.ORDER_ID
|
|
|
|
|
|
+ on OO.ORDER_ID = TTR.ORDER_ID
|
|
left join TMSTRUCK_WEIGHT_RESULT TWR
|
|
left join TMSTRUCK_WEIGHT_RESULT TWR
|
|
- on TWR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
|
|
|
|
|
|
+ on TWR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
|
|
|
|
+ left join RMS_CAPACITY RC
|
|
|
|
+ on RC.CAPACITY_ID = OO.CAPACITY_ID
|
|
where OO.ORDER_NUMBER = #{orderNumber}
|
|
where OO.ORDER_NUMBER = #{orderNumber}
|
|
<if test="materialId != null">
|
|
<if test="materialId != null">
|
|
and TWR.MATERIAL_ID = #{materialId}
|
|
and TWR.MATERIAL_ID = #{materialId}
|