|
@@ -43,6 +43,8 @@ public class KxsUserTaskJob {
|
|
|
|
|
|
|
|
private final KxsTotalDebtMapper kxsTotalDebtMapper;
|
|
private final KxsTotalDebtMapper kxsTotalDebtMapper;
|
|
|
|
|
|
|
|
|
|
+ private final static String PREFIX_TABLE_NAME = "kxs_user_amount_log_";
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 自动表创建任务
|
|
* 自动表创建任务
|
|
|
* 每个月15号建立下个月的收支日志表
|
|
* 每个月15号建立下个月的收支日志表
|
|
@@ -51,7 +53,7 @@ public class KxsUserTaskJob {
|
|
|
@GetMapping("/automaticTableCreationTasks")
|
|
@GetMapping("/automaticTableCreationTasks")
|
|
|
public void automaticTableCreationTasks() {
|
|
public void automaticTableCreationTasks() {
|
|
|
String thisMoth = LocalDateTimeUtil.format(LocalDate.now().plusMonths(1L), DatePattern.SIMPLE_MONTH_PATTERN);
|
|
String thisMoth = LocalDateTimeUtil.format(LocalDate.now().plusMonths(1L), DatePattern.SIMPLE_MONTH_PATTERN);
|
|
|
- kxsUserAmountLogMapper.automaticTableCreationTasks("kxs_user_amount_log_" +thisMoth);
|
|
|
|
|
|
|
+ kxsUserAmountLogMapper.automaticTableCreationTasks(PREFIX_TABLE_NAME + thisMoth);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|