|  |  | @ -32,16 +32,13 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         <choose> |  |  |  |         <choose> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <when test="(orderBy!=null ) and (sort=='desc' or sort=='asc')"> |  |  |  |             <when test="(orderBy != null) and (sort == 'desc' or sort == 'asc')"> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 order by ${orderBy} ${sort} |  |  |  |                 order by ${orderBy} ${sort} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </when> |  |  |  |             </when> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <otherwise> |  |  |  |             <otherwise> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ORDER BY updateTime DESC |  |  |  |                 ORDER BY updateTime DESC | 
			
		
	
		
		
			
				
					
					|  |  |  |             </otherwise> |  |  |  |             </otherwise> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </choose> |  |  |  |         </choose> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -51,8 +48,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 INTO basic_export_status(id, idDatas, status, `type`, updateTime, scheduleType, startTime, endTime, |  |  |  |                 INTO basic_export_status(id, idDatas, status, `type`, updateTime, scheduleType, startTime, endTime, | 
			
		
	
		
		
			
				
					
					|  |  |  |                                          remark, receiveStatus |  |  |  |                                          remark, receiveStatus | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         <if test="cacheFilePath!=null and cacheFilePath!= ''"> |  |  |  |         <if test="cacheFilePath != null and cacheFilePath != ''"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             ,cacheFilePath |  |  |  |             , cacheFilePath | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         </if> |  |  |  |         </if> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |         ) | 
			
		
	
	
		
		
			
				
					|  |  | @ -66,8 +63,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                         #{endTime}, |  |  |  |                         #{endTime}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                         #{remark}, |  |  |  |                         #{remark}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                         #{receiveStatus} |  |  |  |                         #{receiveStatus} | 
			
		
	
		
		
			
				
					
					|  |  |  |         <if test="cacheFilePath!=null and cacheFilePath!= ''"> |  |  |  |         <if test="cacheFilePath != null and cacheFilePath != ''"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             ,#{cacheFilePath} |  |  |  |             , #{cacheFilePath} | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         </if> |  |  |  |         </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |         ) | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
	
		
		
			
				
					|  |  | @ -120,6 +117,16 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     </delete> |  |  |  |     </delete> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <delete id="deleteByDate"> |  |  |  |     <delete id="deleteByDate"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         delete from basic_export_status where date_format(#{date}, '%Y-%m-%d') >= date_format(startTime, '%Y-%m-%d') |  |  |  |         delete | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         from basic_export_status | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         where date_format(#{date}, '%Y-%m-%d') >= date_format(startTime, '%Y-%m-%d') | 
			
		
	
		
		
			
				
					
					|  |  |  |     </delete> |  |  |  |     </delete> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     <select id="findLast" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             resultType="com.glxp.api.entity.sync.BasicExportStatusEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         select * | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         from basic_export_status | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         where idDatas = #{idDatas} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         order by updateTime desc | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         limit 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | </mapper> |  |  |  | </mapper> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |