| 
					
				 | 
			
			
				@@ -22,25 +22,28 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <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> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <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 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    RESULT_GROSS_PLACE_ID, RESULT_TARE_PLACE_ID, MATERIAL_ID, ISDEDUCT, ISQUALITY, GROSS_SEGMENT_SQE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    TARE_SEGMENT_SQE 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <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.ISDEDUCT, t.ISQUALITY, t.GROSS_SEGMENT_SQE, t.TARE_SEGMENT_SQE 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <sql id="select"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        SELECT <include refid="columns" /> FROM TMSTRUCK_WEIGHT_RESULT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        SELECT <include refid="columns"/> FROM TMSTRUCK_WEIGHT_RESULT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <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 id="where"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <where> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -104,6 +107,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="isquality != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 and ISQUALITY = #{isquality} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="grossSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                and GROSS_SEGMENT_SQE = #{grossSegmentSqe} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="tareSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                and TARE_SEGMENT_SQE = #{tareSegmentSqe} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <sql id="whereLike"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -168,9 +177,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="isquality != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 and ISQUALITY = #{isquality} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="grossSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                and GROSS_SEGMENT_SQE = #{grossSegmentSqe} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="tareSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                and TARE_SEGMENT_SQE = #{tareSegmentSqe} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <delete id="deleteByPrimaryKey" parameterType="DECIMAL"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Short"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         delete from TMSTRUCK_WEIGHT_RESULT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </delete> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -234,6 +249,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="isquality != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             or ISQUALITY = #{isquality} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="grossSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            or GROSS_SEGMENT_SQE = #{grossSegmentSqe} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="tareSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            or TARE_SEGMENT_SQE = #{tareSegmentSqe} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <insert id="insert" parameterType="com.steerinfo.dil.model.TmstruckWeightResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         insert into TMSTRUCK_WEIGHT_RESULT (WEIGHT_TASK_RESULT_ID, RESULT_TOTAL_ID, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -243,7 +264,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                             UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                             DELETE_NAME, DELETE_TIME, RESULT_GROSS_PLACE_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                             RESULT_TARE_PLACE_ID, MATERIAL_ID, ISDEDUCT, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                            ISQUALITY) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                            ISQUALITY, GROSS_SEGMENT_SQE, TARE_SEGMENT_SQE 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         values (#{weightTaskResultId,jdbcType=DECIMAL}, #{resultTotalId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #{resultPoundNo,jdbcType=VARCHAR}, #{resultGrossWeight,jdbcType=DECIMAL}, #{resultGrossWeightTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #{resultTareWeight,jdbcType=DECIMAL}, #{resultTareWeightTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -251,7 +273,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #{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}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                #{isquality,jdbcType=DECIMAL}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                #{isquality,jdbcType=DECIMAL}, #{grossSegmentSqe,jdbcType=DECIMAL}, #{tareSegmentSqe,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstruckWeightResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         insert into TMSTRUCK_WEIGHT_RESULT 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -316,6 +339,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="isquality != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ISQUALITY, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="grossSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                GROSS_SEGMENT_SQE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="tareSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                TARE_SEGMENT_SQE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="weightTaskResultId != null"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -378,6 +407,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="isquality != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #{isquality,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="grossSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                #{grossSegmentSqe,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="tareSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                #{tareSegmentSqe,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstruckWeightResult"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -400,7 +435,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             RESULT_TARE_PLACE_ID = #{resultTarePlaceId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             MATERIAL_ID = #{materialId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ISDEDUCT = #{isdeduct,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ISQUALITY = #{isquality,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstruckWeightResult"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -463,20 +500,26 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="isquality != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ISQUALITY = #{isquality,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="grossSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                GROSS_SEGMENT_SQE = #{grossSegmentSqe,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="tareSegmentSqe != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                TARE_SEGMENT_SQE = #{tareSegmentSqe,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <select id="selectByPrimaryKey" parameterType="DECIMAL" resultMap="BaseResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <include refid="select" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="select"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where WEIGHT_TASK_RESULT_ID = #{weightTaskResultId,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 TMSTRUCK_WEIGHT_RESULT 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -489,7 +532,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         UPDATE_TIME, INSERT_UPDATE_REMARK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         DELETE_NAME, DELETE_TIME, RESULT_GROSS_PLACE_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RESULT_TARE_PLACE_ID, MATERIAL_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ISDEDUCT, ISQUALITY) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ISDEDUCT, ISQUALITY, GROSS_SEGMENT_SQE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        TARE_SEGMENT_SQE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ( <foreach collection="list" item="item" separator="union all"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{item.weightTaskResultId,jdbcType=DECIMAL}, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -501,101 +545,110 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{item.deleteName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP}, #{item.resultGrossPlaceId,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.grossSegmentSqe,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{item.tareSegmentSqe,jdbcType=DECIMAL} from dual 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <update id="batchUpdate" parameterType="java.util.List"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         update TMSTRUCK_WEIGHT_RESULT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         set 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ,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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ,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> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         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} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <delete id="batchDelete" parameterType="java.util.List"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         delete from TMSTRUCK_WEIGHT_RESULT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where WEIGHT_TASK_RESULT_ID in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <foreach close=")" collection="list" item="id" open="(" separator=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <foreach collection="list" item="id" open="(" close=")" separator=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </delete> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -724,7 +777,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         OO.ORDER_TYPE             "orderTypee", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         TWR.WEIGHT_TASK_RESULT_ID "weightTaskResultId", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         TTR.RESULT_TOTAL_ID       "resultTotalId", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        RC.CAPACITY_NUMBER        "capacityNumber", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         TWR.TARE_SEGMENT_SQE      "tareSegmentSqe", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         TWR.GROSS_SEGMENT_SQE     "grossSegmentSqe" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -733,8 +785,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     on TTR.RESULT_TOTAL_ID = TWR.RESULT_TOTAL_ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                           left join OMSTRUCK_ORDER OO 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     on OO.ORDER_ID = TTR.ORDER_ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          left join RMS_CAPACITY RC 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    on RC.CAPACITY_ID = OO.CAPACITY_ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  where OO.ORDER_NUMBER = #{orderNumber} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    and TWR.RESULT_NET_WEIGHT is null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  order by "tareSegmentSqe" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -788,7 +838,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="selectResultIdByOrderNoAndMaterialId" parameterType="map" resultType="java.util.Map"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         select TWR.WEIGHT_TASK_RESULT_ID    "weightTaskResultId", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                TTR.RESULT_TOTAL_ID         "resultTotalId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               TWR.RESULT_TARE_WEIGHT       "resultTareWeight", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               TWR.TARE_SEGMENT_SQE         "tareSegmentSqe" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         from OMSTRUCK_ORDER OO 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             left join TMSTRUCK_TOTAL_RESULT TTR 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 on TTR.ORDER_ID = OO.ORDER_ID 
			 |