Ver código fonte

feature 代码提交

xiahan 3 meses atrás
pai
commit
8c2dcf1849

+ 2 - 3
zhsw-common/src/main/java/com/rongwei/zhsw/system/service/impl/ScheduledTaskServiceImpl.java

@@ -90,9 +90,8 @@ public class ScheduledTaskServiceImpl implements ScheduledTaskService {
     public R mysqlPartitionCreate() {
         LocalDate now = LocalDate.now();
         int currentYear = now.getYear();
-
-
-        return null;
+        commonBusinessDao.mysqlPartitionCreate("p_"+currentYear,currentYear+1);
+        return R.ok();
     }
 
     public List<SwInspectionRouteDo> getRouteList(String weekValue, String monthValue, int dayOfMonth, int currentMontLastDay) {