|
|
@ -156,6 +156,7 @@ public class AdminService { |
|
|
|
List<MatrixApp> appList = appList(adminId); |
|
|
|
return appList.stream().map(MatrixAppBo::new).toList(); |
|
|
|
} |
|
|
|
|
|
|
|
public List<MatrixApp> appList(Integer adminId) { |
|
|
|
List<Integer> appIds = getAdminAppIds(adminId); |
|
|
|
if (CollectionUtils.isEmpty(appIds)) { |
|
|
@ -438,6 +439,16 @@ public class AdminService { |
|
|
|
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) { |
|
|
|
long dateBegin = DateUtil.getDayBeginTimestamp(DateUtil.date2Long(targetDate)); |
|
|
|
long dateEnd = dateBegin + 86400_000 - 1; |
|
|
|