| 
														
															@@ -22,25 +22,28 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <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="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, 
														 | 
														
														 | 
														
															         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, 
														 | 
														
														 | 
														
															     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, 
														 | 
														
														 | 
														
															     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> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <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.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.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.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.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> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <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 +107,12 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <if test="isquality != null"> 
														 | 
														
														 | 
														
															             <if test="isquality != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 and ISQUALITY = #{isquality} 
														 | 
														
														 | 
														
															                 and ISQUALITY = #{isquality} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </if> 
														 | 
														
														 | 
														
															             </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <if test="grossSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                and GROSS_SEGMENT_SQE = #{grossSegmentSqe} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <if test="tareSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                and TARE_SEGMENT_SQE = #{tareSegmentSqe} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </where> 
														 | 
														
														 | 
														
															         </where> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     </sql> 
														 | 
														
														 | 
														
															     </sql> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <sql id="whereLike"> 
														 | 
														
														 | 
														
															     <sql id="whereLike"> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -168,9 +177,15 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <if test="isquality != null"> 
														 | 
														
														 | 
														
															             <if test="isquality != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 and ISQUALITY = #{isquality} 
														 | 
														
														 | 
														
															                 and ISQUALITY = #{isquality} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </if> 
														 | 
														
														 | 
														
															             </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <if test="grossSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                and GROSS_SEGMENT_SQE = #{grossSegmentSqe} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <if test="tareSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                and TARE_SEGMENT_SQE = #{tareSegmentSqe} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </where> 
														 | 
														
														 | 
														
															         </where> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     </sql> 
														 | 
														
														 | 
														
															     </sql> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    <delete id="deleteByPrimaryKey" parameterType="DECIMAL"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    <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> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -234,6 +249,12 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <if test="isquality != null"> 
														 | 
														
														 | 
														
															         <if test="isquality != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             or ISQUALITY = #{isquality} 
														 | 
														
														 | 
														
															             or ISQUALITY = #{isquality} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </if> 
														 | 
														
														 | 
														
															         </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        <if test="grossSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            or GROSS_SEGMENT_SQE = #{grossSegmentSqe} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        <if test="tareSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            or TARE_SEGMENT_SQE = #{tareSegmentSqe} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        </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 +264,8 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                             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, 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}, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -251,7 +273,8 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 #{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}, #{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 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -316,6 +339,12 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <if test="isquality != null"> 
														 | 
														
														 | 
														
															             <if test="isquality != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 ISQUALITY, 
														 | 
														
														 | 
														
															                 ISQUALITY, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </if> 
														 | 
														
														 | 
														
															             </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <if test="grossSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                GROSS_SEGMENT_SQE, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <if test="tareSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                TARE_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 +407,12 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <if test="isquality != null"> 
														 | 
														
														 | 
														
															             <if test="isquality != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 #{isquality,jdbcType=DECIMAL}, 
														 | 
														
														 | 
														
															                 #{isquality,jdbcType=DECIMAL}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </if> 
														 | 
														
														 | 
														
															             </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <if test="grossSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                #{grossSegmentSqe,jdbcType=DECIMAL}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <if test="tareSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                #{tareSegmentSqe,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 +435,9 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             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}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            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"> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -463,20 +500,26 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <if test="isquality != null"> 
														 | 
														
														 | 
														
															             <if test="isquality != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 ISQUALITY = #{isquality,jdbcType=DECIMAL}, 
														 | 
														
														 | 
														
															                 ISQUALITY = #{isquality,jdbcType=DECIMAL}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </if> 
														 | 
														
														 | 
														
															             </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <if test="grossSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                GROSS_SEGMENT_SQE = #{grossSegmentSqe,jdbcType=DECIMAL}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <if test="tareSegmentSqe != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                TARE_SEGMENT_SQE = #{tareSegmentSqe,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="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} 
														 | 
														
														 | 
														
															         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 +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) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        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}, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -501,101 +545,110 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         #{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.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 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> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        ,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 
														 | 
														
														 | 
														
															         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> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -724,7 +777,6 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         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", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         TWR.TARE_SEGMENT_SQE      "tareSegmentSqe", 
														 | 
														
														 | 
														
															                         TWR.TARE_SEGMENT_SQE      "tareSegmentSqe", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         TWR.GROSS_SEGMENT_SQE     "grossSegmentSqe" 
														 | 
														
														 | 
														
															                         TWR.GROSS_SEGMENT_SQE     "grossSegmentSqe" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -733,8 +785,6 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                     on TTR.RESULT_TOTAL_ID = TWR.RESULT_TOTAL_ID 
														 | 
														
														 | 
														
															                                     on TTR.RESULT_TOTAL_ID = TWR.RESULT_TOTAL_ID 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                           left join OMSTRUCK_ORDER OO 
														 | 
														
														 | 
														
															                           left join OMSTRUCK_ORDER OO 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                     on OO.ORDER_ID = TTR.ORDER_ID 
														 | 
														
														 | 
														
															                                     on OO.ORDER_ID = TTR.ORDER_ID 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                          left join RMS_CAPACITY RC 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                    on RC.CAPACITY_ID = OO.CAPACITY_ID 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                  where OO.ORDER_NUMBER = #{orderNumber} 
														 | 
														
														 | 
														
															                  where OO.ORDER_NUMBER = #{orderNumber} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                    and TWR.RESULT_NET_WEIGHT is null 
														 | 
														
														 | 
														
															                    and TWR.RESULT_NET_WEIGHT is null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                  order by "tareSegmentSqe" 
														 | 
														
														 | 
														
															                  order by "tareSegmentSqe" 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -788,7 +838,8 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <select id="selectResultIdByOrderNoAndMaterialId" parameterType="map" resultType="java.util.Map"> 
														 | 
														
														 | 
														
															     <select id="selectResultIdByOrderNoAndMaterialId" parameterType="map" resultType="java.util.Map"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         select TWR.WEIGHT_TASK_RESULT_ID    "weightTaskResultId", 
														 | 
														
														 | 
														
															         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 
														 | 
														
														 | 
														
															         from OMSTRUCK_ORDER OO 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             left join TMSTRUCK_TOTAL_RESULT TTR 
														 | 
														
														 | 
														
															             left join TMSTRUCK_TOTAL_RESULT TTR 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 on TTR.ORDER_ID = OO.ORDER_ID 
														 | 
														
														 | 
														
															                 on TTR.ORDER_ID = OO.ORDER_ID 
														 |