|  | @@ -155,45 +155,22 @@ public class TestController {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private IKuaiShouActivityItemListService activityItemListService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @GetMapping(value = "/getData")
 | 
	
		
			
				|  |  | -    public void getDate(String startDate, String endDate) throws Exception {
 | 
	
		
			
				|  |  | +    public static void main(String[] args) {
 | 
	
		
			
				|  |  | +        List<String> days = DateUtils.getDays("2023-08-01", "2023-09-25");
 | 
	
		
			
				|  |  | +        System.err.println(days);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -//        Map<Long, Long> itemMap = activityItemListService.getItemMap();
 | 
	
		
			
				|  |  | -//        System.err.println(itemMap);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        List<JSONObject> cookies = ikuaishouSupplyChainService.getCookie();
 | 
	
		
			
				|  |  | -        if (Check.isNull(cookies)) {
 | 
	
		
			
				|  |  | -            log.error("cookie数据为空");
 | 
	
		
			
				|  |  | -            return;
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        List<String> days = DateUtils.getDays(startDate, endDate);
 | 
	
		
			
				|  |  | -        JSONArray hourList = KuaishouHourEnum.getHourList();
 | 
	
		
			
				|  |  | -        JSONArray minSecList = KuaishouMinSecEnum.getMinSecList();
 | 
	
		
			
				|  |  | -        Map<Long, Long> itemMap = activityItemListService.getItemMap();
 | 
	
		
			
				|  |  | -        for (int z = 0; z < days.size(); z++) {
 | 
	
		
			
				|  |  | -            String date = days.get(z);
 | 
	
		
			
				|  |  | -            for (int i = 0; i < hourList.size(); i++) {
 | 
	
		
			
				|  |  | -                String hour = hourList.getString(i);
 | 
	
		
			
				|  |  | -                for (int j = 0; j < minSecList.size(); j++) {
 | 
	
		
			
				|  |  | -                    JSONObject minSecJson = minSecList.getJSONObject(j);
 | 
	
		
			
				|  |  | -                    String startTime = minSecJson.getString("startTime");
 | 
	
		
			
				|  |  | -                    String endTime = minSecJson.getString("endTime");
 | 
	
		
			
				|  |  | -                    String start = date + hour + startTime;
 | 
	
		
			
				|  |  | -                    String end = date + hour + endTime;
 | 
	
		
			
				|  |  | -                    System.err.println("开始时间:" + start);
 | 
	
		
			
				|  |  | -                    System.err.println("结束时间:" + end);
 | 
	
		
			
				|  |  | -                    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
 | 
	
		
			
				|  |  | -                    Long orderCreateTimeStart = sdf.parse(start).getTime();
 | 
	
		
			
				|  |  | -                    Long orderCreateTimeEnd = sdf.parse(end).getTime();
 | 
	
		
			
				|  |  | -                    for (int p = 0; p < cookies.size(); p++) {
 | 
	
		
			
				|  |  | -                        JSONObject cookieJson = cookies.get(p);
 | 
	
		
			
				|  |  | -                        String cookie = cookieJson.getString("cookie");
 | 
	
		
			
				|  |  | -                        ikuaishouSupplyChainService.getOrderList(cookie, 0, orderCreateTimeStart, orderCreateTimeEnd, itemMap);
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | +    @GetMapping(value = "/getData")
 | 
	
		
			
				|  |  | +    public void getDate(String startDate, String endDate) throws Exception {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +        List<String> days = DateUtils.getDays("2023-08-01", "2023-09-25");
 | 
	
		
			
				|  |  | +        for (int i = 0; i < days.size(); i++) {
 | 
	
		
			
				|  |  | +            Long date = Long.valueOf(days.get(i).replace("-",""));
 | 
	
		
			
				|  |  | +            System.err.println("当前日期:"+ date);
 | 
	
		
			
				|  |  | +            ikuaishouSupplyChainService.deletePromoterBindChannelByDate(date);
 | 
	
		
			
				|  |  | +            ikuaishouSupplyChainService.cleanPromoterBindChannel(date);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |