yumeng 5 năm trước cách đây
mục cha
commit
081e1f062d

+ 8 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TestController.java

@@ -238,8 +238,8 @@ public class TestController {
                                 if (!Check.isNull(ctopOauthToken)) {
                                     deleteMap.put("account_id", allocation.getAccountId());
                                     deleteMap.put("stat_date", anotherDay);
-                                    reportDailyCreativeStatisticMapper.deleteByMap(deleteMap);
-                                    reportDailyCreativeMapper.deleteByMap(deleteMap);
+                                 //   reportDailyCreativeStatisticMapper.deleteByMap(deleteMap);
+                                    //  reportDailyCreativeMapper.deleteByMap(deleteMap);
 
                                     // 1.计划数据
                                     kuaishouInterfaceService.getCampaignList(ctopOauthToken, null, null);
@@ -271,6 +271,12 @@ public class TestController {
 
     }
 
+    public static void main(String[] args) throws ParseException {
+        String date = DateUtils.getDate("yyyy-MM-dd");
+        String anotherDay = DateUtils.getAnotherDay("yyyy-MM-dd", date, -1);
+        System.err.println(anotherDay);
+    }
+
 
     @GetMapping(value = "/getPlanAndGroupByAccount")
     public void getPlanAndGroupByAccount(Long accountId) {