| 
					
				 | 
			
			
				@@ -3,36 +3,42 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <mapper namespace="com.steerinfo.dil.mapper.TmstruckReceiptResultMapper"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmstruckReceiptResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="RESULT_TOTAL_ID" jdbcType="DECIMAL" property="resultTotalId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="RESULT_ARRIVAL_ADDRESS" jdbcType="VARCHAR" property="resultArrivalAddress" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="RESULT_EMPTY_CONTAINER_PHOTO" jdbcType="VARCHAR" property="resultEmptyContainerPhoto" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="RESULT_SIGNED_NOTE_PHOTO" jdbcType="VARCHAR" property="resultSignedNotePhoto" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="RESULT_RECEIVE_NOTE_PHOTO" jdbcType="VARCHAR" property="resultReceiveNotePhoto" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <result column="WAREHOUSE_ID" jdbcType="DECIMAL" property="warehouseId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="ORDER_MILEAGE" jdbcType="DECIMAL" property="orderMileage" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="WAREHOUSE_ID" jdbcType="DECIMAL" property="warehouseId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <result column="STATUS" jdbcType="DECIMAL" property="status" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <result column="RESULT_ARRIVAL_ADDRESS" jdbcType="VARCHAR" property="resultArrivalAddress" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="STATUS" jdbcType="DECIMAL" property="status" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="PHOTO1" jdbcType="VARCHAR" property="photo1" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="PHOTO2" jdbcType="VARCHAR" property="photo2" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="PHOTO3" jdbcType="VARCHAR" property="photo3" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="PHOTO4" jdbcType="VARCHAR" property="photo4" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="PHOTO5" jdbcType="VARCHAR" property="photo5" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <sql id="columns"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    RESULT_ID, RESULT_TOTAL_ID, RESULT_EMPTY_CONTAINER_PHOTO, RESULT_SIGNED_NOTE_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    RESULT_RECEIVE_NOTE_PHOTO, WAREHOUSE_ID,ORDER_MILEAGE, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    UPDATE_TIME,STATUS, INSERT_UPDATE_REMARK, RESULT_ARRIVAL_ADDRESS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    RESULT_ID, RESULT_TOTAL_ID, RESULT_ARRIVAL_ADDRESS, RESULT_EMPTY_CONTAINER_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    RESULT_SIGNED_NOTE_PHOTO, RESULT_RECEIVE_NOTE_PHOTO, ORDER_MILEAGE, WAREHOUSE_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    STATUS, PHOTO1, PHOTO2, PHOTO3, PHOTO4, PHOTO5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <sql id="columns_alias"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.RESULT_ID, t.RESULT_TOTAL_ID, t.RESULT_EMPTY_CONTAINER_PHOTO, t.RESULT_SIGNED_NOTE_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.RESULT_RECEIVE_NOTE_PHOTO, t.WAREHOUSE_ID,ORDER_MILEAGE, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.UPDATE_TIME,STATUS, t.INSERT_UPDATE_REMARK, t.RESULT_ARRIVAL_ADDRESS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t.RESULT_ID, t.RESULT_TOTAL_ID, t.RESULT_ARRIVAL_ADDRESS, t.RESULT_EMPTY_CONTAINER_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t.RESULT_SIGNED_NOTE_PHOTO, t.RESULT_RECEIVE_NOTE_PHOTO, t.ORDER_MILEAGE, t.WAREHOUSE_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t.STATUS, t.PHOTO1, t.PHOTO2, t.PHOTO3, t.PHOTO4, t.PHOTO5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <sql id="select"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    SELECT <include refid="columns" /> FROM TMSTRUCK_RECEIPT_RESULT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    SELECT <include refid="columns"/> FROM TMSTRUCK_RECEIPT_RESULT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <sql id="select_alias"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    SELECT <include refid="columns_alias" /> FROM TMSTRUCK_RECEIPT_RESULT t 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    SELECT <include refid="columns_alias"/> FROM TMSTRUCK_RECEIPT_RESULT t 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <sql id="where"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <where> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -42,6 +48,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultTotalId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and RESULT_TOTAL_ID = #{resultTotalId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="resultArrivalAddress != null and resultArrivalAddress != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and RESULT_ARRIVAL_ADDRESS = #{resultArrivalAddress} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultEmptyContainerPhoto != null and resultEmptyContainerPhoto != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and RESULT_EMPTY_CONTAINER_PHOTO = #{resultEmptyContainerPhoto} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -51,12 +60,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultReceiveNotePhoto != null and resultReceiveNotePhoto != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and RESULT_RECEIVE_NOTE_PHOTO = #{resultReceiveNotePhoto} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        and WAREHOUSE_ID = #{warehouseId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="orderMileage != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and ORDER_MILEAGE = #{orderMileage} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and WAREHOUSE_ID = #{warehouseId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUsername != null and insertUsername != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and INSERT_USERNAME = #{insertUsername} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -69,14 +78,26 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUpdateRemark != null and insertUpdateRemark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and INSERT_UPDATE_REMARK = #{insertUpdateRemark} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and STATUS = #{status} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="insertUpdateRemark != null and insertUpdateRemark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        and INSERT_UPDATE_REMARK = #{insertUpdateRemark} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo1 != null and photo1 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and PHOTO1 = #{photo1} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="resultArrivalAddress != null and resultArrivalAddress != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        and RESULT_ARRIVAL_ADDRESS = #{resultArrivalAddress} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo2 != null and photo2 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and PHOTO2 = #{photo2} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo3 != null and photo3 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and PHOTO3 = #{photo3} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo4 != null and photo4 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and PHOTO4 = #{photo4} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo5 != null and photo5 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and PHOTO5 = #{photo5} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -88,6 +109,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultTotalId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and RESULT_TOTAL_ID = #{resultTotalId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="resultArrivalAddress != null and resultArrivalAddress != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and RESULT_ARRIVAL_ADDRESS LIKE '%${resultArrivalAddress}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultEmptyContainerPhoto != null and resultEmptyContainerPhoto != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and RESULT_EMPTY_CONTAINER_PHOTO LIKE '%${resultEmptyContainerPhoto}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -97,12 +121,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultReceiveNotePhoto != null and resultReceiveNotePhoto != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and RESULT_RECEIVE_NOTE_PHOTO LIKE '%${resultReceiveNotePhoto}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        and WAREHOUSE_ID = #{warehouseId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="orderMileage != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and ORDER_MILEAGE = #{orderMileage} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and WAREHOUSE_ID = #{warehouseId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUsername != null and insertUsername != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and INSERT_USERNAME LIKE '%${insertUsername}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -115,14 +139,26 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUpdateRemark != null and insertUpdateRemark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and STATUS = #{status} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="insertUpdateRemark != null and insertUpdateRemark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo1 != null and photo1 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and PHOTO1 LIKE '%${photo1}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="resultArrivalAddress != null and resultArrivalAddress != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        and RESULT_ARRIVAL_ADDRESS LIKE '%${resultArrivalAddress}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo2 != null and photo2 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and PHOTO2 LIKE '%${photo2}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo3 != null and photo3 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and PHOTO3 LIKE '%${photo3}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo4 != null and photo4 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and PHOTO4 LIKE '%${photo4}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo5 != null and photo5 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and PHOTO5 LIKE '%${photo5}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -136,6 +172,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <if test="resultTotalId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       or RESULT_TOTAL_ID = #{resultTotalId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <if test="resultArrivalAddress != null and resultArrivalAddress != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      or RESULT_ARRIVAL_ADDRESS = #{resultArrivalAddress} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <if test="resultEmptyContainerPhoto != null and resultEmptyContainerPhoto != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       or RESULT_EMPTY_CONTAINER_PHOTO = #{resultEmptyContainerPhoto} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -145,12 +184,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <if test="resultReceiveNotePhoto != null and resultReceiveNotePhoto != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       or RESULT_RECEIVE_NOTE_PHOTO = #{resultReceiveNotePhoto} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      or WAREHOUSE_ID = #{warehouseId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <if test="orderMileage != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       or ORDER_MILEAGE = #{orderMileage} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      or WAREHOUSE_ID = #{warehouseId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <if test="insertUsername != null and insertUsername != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       or INSERT_USERNAME = #{insertUsername} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -163,27 +202,43 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      or STATUS = '#{status}' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <if test="insertUpdateRemark != null and insertUpdateRemark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       or INSERT_UPDATE_REMARK = #{insertUpdateRemark} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <if test="resultArrivalAddress != null and resultArrivalAddress != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      or RESULT_ARRIVAL_ADDRESS = #{resultArrivalAddress} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      or STATUS = #{status} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <if test="photo1 != null and photo1 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      or PHOTO1 = #{photo1} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <if test="photo2 != null and photo2 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      or PHOTO2 = #{photo2} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <if test="photo3 != null and photo3 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      or PHOTO3 = #{photo3} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <if test="photo4 != null and photo4 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      or PHOTO4 = #{photo4} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <if test="photo5 != null and photo5 != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      or PHOTO5 = #{photo5} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <insert id="insert" parameterType="com.steerinfo.dil.model.TmstruckReceiptResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    insert into TMSTRUCK_RECEIPT_RESULT (RESULT_ID, RESULT_TOTAL_ID, RESULT_EMPTY_CONTAINER_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                         RESULT_SIGNED_NOTE_PHOTO, RESULT_RECEIVE_NOTE_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                         WAREHOUSE_ID,ORDER_MILEAGE, INSERT_USERNAME, INSERT_TIME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                         UPDATE_USERNAME, UPDATE_TIME,STATUS, INSERT_UPDATE_REMARK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                         RESULT_ARRIVAL_ADDRESS) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    values (#{resultId,jdbcType=DECIMAL}, #{resultTotalId,jdbcType=DECIMAL}, #{resultEmptyContainerPhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            #{resultSignedNotePhoto,jdbcType=VARCHAR}, #{resultReceiveNotePhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            #{warehouseId,jdbcType=DECIMAL},#{orderMileage,jdbcType=DECIMAL},  #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},#{status,jdbcType=DECIMAL}, #{insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            #{resultArrivalAddress,jdbcType=VARCHAR}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    insert into TMSTRUCK_RECEIPT_RESULT (RESULT_ID, RESULT_TOTAL_ID, RESULT_ARRIVAL_ADDRESS, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                         RESULT_EMPTY_CONTAINER_PHOTO, RESULT_SIGNED_NOTE_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                         RESULT_RECEIVE_NOTE_PHOTO, ORDER_MILEAGE, WAREHOUSE_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                         INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                         UPDATE_TIME, INSERT_UPDATE_REMARK, STATUS, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                         PHOTO1, PHOTO2, PHOTO3, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                         PHOTO4, PHOTO5) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    values (#{resultId,jdbcType=DECIMAL}, #{resultTotalId,jdbcType=DECIMAL}, #{resultArrivalAddress,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{resultEmptyContainerPhoto,jdbcType=VARCHAR}, #{resultSignedNotePhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{resultReceiveNotePhoto,jdbcType=VARCHAR}, #{orderMileage,jdbcType=DECIMAL}, #{warehouseId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{status,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{photo1,jdbcType=VARCHAR}, #{photo2,jdbcType=VARCHAR}, #{photo3,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #{photo4,jdbcType=VARCHAR}, #{photo5,jdbcType=VARCHAR}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstruckReceiptResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     insert into TMSTRUCK_RECEIPT_RESULT 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -194,6 +249,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultTotalId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RESULT_TOTAL_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="resultArrivalAddress != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        RESULT_ARRIVAL_ADDRESS, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultEmptyContainerPhoto != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RESULT_EMPTY_CONTAINER_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -203,12 +261,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultReceiveNotePhoto != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RESULT_RECEIVE_NOTE_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        WAREHOUSE_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="orderMileage != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ORDER_MILEAGE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        WAREHOUSE_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUsername != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         INSERT_USERNAME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -221,14 +279,26 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         UPDATE_TIME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUpdateRemark != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        INSERT_UPDATE_REMARK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         STATUS, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="insertUpdateRemark != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        INSERT_UPDATE_REMARK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo1 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="resultArrivalAddress != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        RESULT_ARRIVAL_ADDRESS, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo2 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo3 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO3, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo4 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO4, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo5 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO5, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -238,6 +308,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultTotalId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{resultTotalId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="resultArrivalAddress != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{resultArrivalAddress,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultEmptyContainerPhoto != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{resultEmptyContainerPhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -247,12 +320,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultReceiveNotePhoto != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{resultReceiveNotePhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        #{warehouseId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="orderMileage != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{orderMileage,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{warehouseId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUsername != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{insertUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -265,32 +338,49 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{updateTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        #{status,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUpdateRemark != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="resultArrivalAddress != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        #{resultArrivalAddress,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{status,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo1 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{photo1,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo2 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{photo2,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo3 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{photo3,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo4 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{photo4,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo5 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{photo5,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstruckReceiptResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     update TMSTRUCK_RECEIPT_RESULT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     set RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        RESULT_ARRIVAL_ADDRESS = #{resultArrivalAddress,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RESULT_EMPTY_CONTAINER_PHOTO = #{resultEmptyContainerPhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RESULT_SIGNED_NOTE_PHOTO = #{resultSignedNotePhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RESULT_RECEIVE_NOTE_PHOTO = #{resultReceiveNotePhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ORDER_MILEAGE = #{orderMileage,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        STATUS = #{status,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        RESULT_ARRIVAL_ADDRESS = #{resultArrivalAddress,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        STATUS = #{status,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO1 = #{photo1,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO2 = #{photo2,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO3 = #{photo3,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO4 = #{photo4,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO5 = #{photo5,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where RESULT_ID = #{resultId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstruckReceiptResult"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -299,6 +389,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultTotalId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="resultArrivalAddress != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        RESULT_ARRIVAL_ADDRESS = #{resultArrivalAddress,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultEmptyContainerPhoto != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RESULT_EMPTY_CONTAINER_PHOTO = #{resultEmptyContainerPhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -308,12 +401,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="resultReceiveNotePhoto != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RESULT_RECEIVE_NOTE_PHOTO = #{resultReceiveNotePhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="orderMileage != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ORDER_MILEAGE = #{orderMileage,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="warehouseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUsername != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -326,118 +419,156 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUpdateRemark != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         STATUS = #{status,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="insertUpdateRemark != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo1 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO1 = #{photo1,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="resultArrivalAddress != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        RESULT_ARRIVAL_ADDRESS = #{resultArrivalAddress,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo2 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO2 = #{photo2,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo3 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO3 = #{photo3,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo4 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO4 = #{photo4,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="photo5 != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PHOTO5 = #{photo5,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where RESULT_ID = #{resultId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <include refid="select" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <include refid="select"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where RESULT_ID = #{resultId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <include refid="select" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <include refid="where" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <include refid="select"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <include refid="where"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <include refid="select" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <include refid="whereLike" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <include refid="select"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <include refid="whereLike"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <insert id="batchInsert" parameterType="java.util.List"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     insert into TMSTRUCK_RECEIPT_RESULT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (RESULT_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    RESULT_TOTAL_ID, RESULT_EMPTY_CONTAINER_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    RESULT_SIGNED_NOTE_PHOTO, RESULT_RECEIVE_NOTE_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    WAREHOUSE_ID,ORDER_MILEAGE, INSERT_USERNAME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    RESULT_TOTAL_ID, RESULT_ARRIVAL_ADDRESS, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    RESULT_EMPTY_CONTAINER_PHOTO, RESULT_SIGNED_NOTE_PHOTO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    RESULT_RECEIVE_NOTE_PHOTO, ORDER_MILEAGE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    WAREHOUSE_ID, INSERT_USERNAME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     INSERT_TIME, UPDATE_USERNAME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    UPDATE_TIME, STATUS,INSERT_UPDATE_REMARK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    RESULT_ARRIVAL_ADDRESS) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    UPDATE_TIME, INSERT_UPDATE_REMARK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    STATUS, PHOTO1, PHOTO2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    PHOTO3, PHOTO4, PHOTO5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ( <foreach collection="list" item="item" separator="union all"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     #{item.resultId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    #{item.resultTotalId,jdbcType=DECIMAL}, #{item.resultEmptyContainerPhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    #{item.resultSignedNotePhoto,jdbcType=VARCHAR}, #{item.resultReceiveNotePhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    #{item.warehouseId,jdbcType=DECIMAL},#{item.orderMileage,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    #{item.resultTotalId,jdbcType=DECIMAL}, #{item.resultArrivalAddress,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    #{item.resultEmptyContainerPhoto,jdbcType=VARCHAR}, #{item.resultSignedNotePhoto,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    #{item.resultReceiveNotePhoto,jdbcType=VARCHAR}, #{item.orderMileage,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    #{item.warehouseId,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    #{item.updateTime,jdbcType=TIMESTAMP},#{item.status,jdbcType=DECIMAL}, #{item.insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    #{item.resultArrivalAddress,jdbcType=VARCHAR} from dual 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    #{item.status,jdbcType=DECIMAL}, #{item.photo1,jdbcType=VARCHAR}, #{item.photo2,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    #{item.photo3,jdbcType=VARCHAR}, #{item.photo4,jdbcType=VARCHAR}, #{item.photo5,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    from dual 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </foreach> ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <update id="batchUpdate" parameterType="java.util.List"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     update TMSTRUCK_RECEIPT_RESULT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     set 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     RESULT_ID= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ,RESULT_TOTAL_ID= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       when #{item.resultId,jdbcType=DECIMAL} then #{item.resultTotalId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ,RESULT_ARRIVAL_ADDRESS= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      when #{item.resultId,jdbcType=DECIMAL} then #{item.resultArrivalAddress,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ,RESULT_EMPTY_CONTAINER_PHOTO= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       when #{item.resultId,jdbcType=DECIMAL} then #{item.resultEmptyContainerPhoto,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ,RESULT_SIGNED_NOTE_PHOTO= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       when #{item.resultId,jdbcType=DECIMAL} then #{item.resultSignedNotePhoto,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ,RESULT_RECEIVE_NOTE_PHOTO= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       when #{item.resultId,jdbcType=DECIMAL} then #{item.resultReceiveNotePhoto,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    ,WAREHOUSE_ID= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      when #{item.resultId,jdbcType=DECIMAL} then #{item.warehouseId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ,ORDER_MILEAGE= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       when #{item.resultId,jdbcType=DECIMAL} then #{item.orderMileage,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ,WAREHOUSE_ID= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      when #{item.resultId,jdbcType=DECIMAL} then #{item.warehouseId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ,INSERT_USERNAME= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ,INSERT_TIME= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ,UPDATE_USERNAME= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ,UPDATE_TIME= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ,INSERT_UPDATE_REMARK= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ,STATUS= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       when #{item.resultId,jdbcType=DECIMAL} then #{item.status,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    ,INSERT_UPDATE_REMARK= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ,PHOTO1= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      when #{item.resultId,jdbcType=DECIMAL} then #{item.photo1,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    ,RESULT_ARRIVAL_ADDRESS= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      when #{item.resultId,jdbcType=DECIMAL} then #{item.resultArrivalAddress,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ,PHOTO2= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      when #{item.resultId,jdbcType=DECIMAL} then #{item.photo2,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ,PHOTO3= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      when #{item.resultId,jdbcType=DECIMAL} then #{item.photo3,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ,PHOTO4= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      when #{item.resultId,jdbcType=DECIMAL} then #{item.photo4,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ,PHOTO5= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      when #{item.resultId,jdbcType=DECIMAL} then #{item.photo5,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where RESULT_ID in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close=")" collection="list" index="index" item="item" open="(" separator=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" index="index" item="item" separator="," open="(" close=")"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{item.resultId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <delete id="batchDelete" parameterType="java.util.List"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     delete from TMSTRUCK_RECEIPT_RESULT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where RESULT_ID in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <foreach close=")" collection="list" item="id" open="(" separator=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="list" item="id" open="(" close=")" separator=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </delete> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1231,4 +1362,35 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                      on trr.RESULT_ID = trrc.RECEIPT_RESULT_ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where oo.ORDER_NUMBER = #{orderNumber} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <select id="getArrivalPhotoPlus" parameterType="java.lang.String" resultType="java.util.Map"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    select  tar.RESULT_FULL_CONTAINER_PHOTO "photos", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            tar.PHOTO1 "photo1", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            tar.PHOTO2 "photo2", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            tar.PHOTO3 "photo3", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            tar.PHOTO4 "photo4", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            tar.PHOTO5 "photo5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    from TMSTRUCK_ARRIVAL_RESULT tar 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           left join TMSTRUCK_TOTAL_RESULT ttr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                     on ttr.RESULT_TOTAL_ID = tar.RESULT_TOTAL_ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           left join OMSTRUCK_ORDER oo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                     on oo.ORDER_ID = ttr.ORDER_ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    where oo.ORDER_NUMBER = #{orderNumber} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      fetch next 1 rows only 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <select id="getReceivePhotoPlus" parameterType="java.lang.String" resultType="java.util.Map"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    select trr.RESULT_EMPTY_CONTAINER_PHOTO "photos", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           trr.PHOTO1 "photo1", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           trr.PHOTO2 "photo2", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           trr.PHOTO3 "photo3", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           trr.PHOTO4 "photo4", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           trr.PHOTO5 "photo5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    from TMSTRUCK_RECEIPT_RESULT trr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           left join TMSTRUCK_TOTAL_RESULT ttr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                     on ttr.RESULT_TOTAL_ID = trr.RESULT_TOTAL_ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           left join OMSTRUCK_ORDER oo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                     on oo.ORDER_ID = ttr.ORDER_ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    where oo.ORDER_NUMBER = #{orderNumber} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      fetch next 1 rows only 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </mapper> 
			 |