|
@@ -72,9 +72,22 @@ public class DataWarehouseService {
|
|
|
}
|
|
|
|
|
|
public void wareHouse(String day) {
|
|
|
- warehouseHighQualityCountDay(day);
|
|
|
- warehouseHighQualityListDay(day);
|
|
|
- warehouseMobileComplaintDay(day);
|
|
|
+ int count;
|
|
|
+ if ((count = highQualityCountMapper.countForDay(day)) == 0) {
|
|
|
+ warehouseHighQualityCountDay(day);
|
|
|
+ } else {
|
|
|
+ log.warn("HighQualityCount 账期 {} 已存在 {} 条数据,已跳过...", day, count);
|
|
|
+ }
|
|
|
+ if ((count = highQualityListDayMapper.countForDay(day)) == 0) {
|
|
|
+ warehouseHighQualityListDay(day);
|
|
|
+ } else {
|
|
|
+ log.warn("HighQualityList 账期 {} 已存在 {} 条数据,已跳过...", day, count);
|
|
|
+ }
|
|
|
+ if ((count = mobileComplaintMapper.countForDay(day)) == 0) {
|
|
|
+ warehouseMobileComplaintDay(day);
|
|
|
+ } else {
|
|
|
+ log.warn("MobileComplaint 账期 {} 已存在 {} 条数据,已跳过...", day, count);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private File getMobileComplaintDayFile(String day) {
|
|
@@ -214,6 +227,6 @@ public class DataWarehouseService {
|
|
|
}
|
|
|
|
|
|
public int deleteHighQualityListDay(String day) {
|
|
|
- return highQualityListDayMapper.deleteHighQualityListForDay(day);
|
|
|
+ return highQualityListDayMapper.deleteHighQualityListForDay(day);
|
|
|
}
|
|
|
}
|