| 
					
				 | 
			
			
				@@ -15,10 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.stereotype.Service; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.text.SimpleDateFormat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.Iterator; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.Objects; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.concurrent.ExecutorService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.concurrent.Executors; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -95,6 +92,7 @@ public class OrderProcessRecordServiceImpl implements OrderProcessRecordService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // ========== 排除不是该门店短信配置 时间段内的订单=========== 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             List<StoreSmsConfigEntity> storeSmsConfigEntities = storeSmsConfigDao.queryListByIsValid(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            List<StoreSmsConfigEntity> tempSmsList = storeSmsConfigDao.queryList(new HashMap<>()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (storeSmsConfigEntities!=null && storeSmsConfigEntities.size()>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 Iterator<OrderProcessRecordEntity> iterator = recordList.iterator(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 while (iterator.hasNext()) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -116,6 +114,10 @@ public class OrderProcessRecordServiceImpl implements OrderProcessRecordService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 如果压根没配配置表,就说明全都要发,如果有配,但没生效的话就全都不发 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (tempSmsList==null || tempSmsList.size()==0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                recordList = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -136,6 +138,7 @@ public class OrderProcessRecordServiceImpl implements OrderProcessRecordService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 + orderSn +",取货码"+pickUpCodeEntity.getPickUpCodeSn()+",已清关成功,感谢您的耐心等待。"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         SendMsgUtil.sendMsg(orderProcessRecordEntity.getPayMobile(), sendTemplate); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        System.out.println(sendTemplate); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         orderProcessRecordEntity.setCustomsSendSmsStatus("1");//如果发送失败更新表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         orderProcessRecordDao.update(orderProcessRecordEntity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }catch (Exception e){ 
			 |