|
@ -156,6 +156,7 @@ public class AdminService { |
|
|
List<MatrixApp> appList = appList(adminId); |
|
|
List<MatrixApp> appList = appList(adminId); |
|
|
return appList.stream().map(MatrixAppBo::new).toList(); |
|
|
return appList.stream().map(MatrixAppBo::new).toList(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public List<MatrixApp> appList(Integer adminId) { |
|
|
public List<MatrixApp> appList(Integer adminId) { |
|
|
List<Integer> appIds = getAdminAppIds(adminId); |
|
|
List<Integer> appIds = getAdminAppIds(adminId); |
|
|
if (CollectionUtils.isEmpty(appIds)) { |
|
|
if (CollectionUtils.isEmpty(appIds)) { |
|
@ -438,6 +439,16 @@ public class AdminService { |
|
|
calcAppIncome(); |
|
|
calcAppIncome(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Async |
|
|
|
|
|
public void mock(int targetStartDate, int targetEndDate) { |
|
|
|
|
|
int date = targetStartDate; |
|
|
|
|
|
while (date <= targetEndDate) { |
|
|
|
|
|
calcTargetDate(date); |
|
|
|
|
|
date = DateUtil.datePlus(date, 1); |
|
|
|
|
|
} |
|
|
|
|
|
calcAppIncome(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public void calcTargetDate(int targetDate) { |
|
|
public void calcTargetDate(int targetDate) { |
|
|
long dateBegin = DateUtil.getDayBeginTimestamp(DateUtil.date2Long(targetDate)); |
|
|
long dateBegin = DateUtil.getDayBeginTimestamp(DateUtil.date2Long(targetDate)); |
|
|
long dateEnd = dateBegin + 86400_000 - 1; |
|
|
long dateEnd = dateBegin + 86400_000 - 1; |
|
|