|  |  | @ -42,6 +42,9 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="editStatus!= null"> |  |  |  |             <if test="editStatus!= null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND editStatus = #{editStatus} |  |  |  |                 AND editStatus = #{editStatus} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="thirdPartyDate!= null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 AND thirdPartyDate = #{thirdPartyDate} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="lastUpdateTime!=null and lastUpdateTime!=''"> |  |  |  |             <if test="lastUpdateTime!=null and lastUpdateTime!=''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <![CDATA[   and DATE_FORMAT(thr_order.updateTime, '%Y-%m-%d %H:%i:%S')>=  DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')   ]]> |  |  |  |                 <![CDATA[   and DATE_FORMAT(thr_order.updateTime, '%Y-%m-%d %H:%i:%S')>=  DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')   ]]> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
	
		
		
			
				
					|  |  | @ -55,7 +58,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         INTO thr_order |  |  |  |         INTO thr_order | 
			
		
	
		
		
			
				
					
					|  |  |  |                 (id,billNo, billdate, corpId, corpName, billType, billFlag, thirdSysFk, updateTime, originType, unitIdFk, |  |  |  |                 (id,billNo, billdate, corpId, corpName, billType, billFlag, thirdSysFk, updateTime, originType, unitIdFk, | 
			
		
	
		
		
			
				
					
					|  |  |  |                  startDate, endDate, createUser, reviewUser, address, linkMan, linkTel, remark, remark1, remark2, |  |  |  |                  startDate, endDate, createUser, reviewUser, address, linkMan, linkTel, remark, remark1, remark2, | 
			
		
	
		
		
			
				
					
					|  |  |  |                  remark3,locStorageCode,editStatus,invWarehouseCode) |  |  |  |                  remark3,locStorageCode,editStatus,invWarehouseCode,thirdPartyDate) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         values ( |  |  |  |         values ( | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{id}, |  |  |  |         #{id}, | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{billNo}, |  |  |  |         #{billNo}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -81,7 +84,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{remark3}, |  |  |  |         #{remark3}, | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{locStorageCode}, |  |  |  |         #{locStorageCode}, | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{editStatus}, |  |  |  |         #{editStatus}, | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{invWarehouseCode} |  |  |  |         #{invWarehouseCode}, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         #{thirdPartyDate} | 
			
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |         ) | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -145,6 +149,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="remark3 != null">remark3=#{remark3},</if> |  |  |  |             <if test="remark3 != null">remark3=#{remark3},</if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="locStorageCode != null">locStorageCode=#{locStorageCode},</if> |  |  |  |             <if test="locStorageCode != null">locStorageCode=#{locStorageCode},</if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="editStatus != null">editStatus=#{editStatus},</if> |  |  |  |             <if test="editStatus != null">editStatus=#{editStatus},</if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="thirdPartyDate != null">thirdPartyDate=#{thirdPartyDate},</if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invWarehouseCode != null">invWarehouseCode=#{invWarehouseCode},</if> |  |  |  |             <if test="invWarehouseCode != null">invWarehouseCode=#{invWarehouseCode},</if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </trim> |  |  |  |         </trim> | 
			
		
	
		
		
			
				
					
					|  |  |  |         WHERE id = #{id} |  |  |  |         WHERE id = #{id} | 
			
		
	
	
		
		
			
				
					|  |  | 
 |