|
|
@ -38,7 +38,7 @@ public class AggregationSubService { |
|
|
|
|
|
|
|
public Map<Integer, Long> getIncome(List<Integer> adminIds, Integer startDate, Integer endDate) { |
|
|
|
LambdaQueryWrapper<MatrixAdvAggregationSub> query = new QueryWrapper<MatrixAdvAggregationSub>() |
|
|
|
.select("sum(income_real) as income").lambda(); |
|
|
|
.select("admin_id, sum(income_real) as income").lambda(); |
|
|
|
query.in(MatrixAdvAggregationSub::getAdminId, adminIds); |
|
|
|
if (startDate != null) { |
|
|
|
query.ge(MatrixAdvAggregationSub::getDate, startDate); |
|
|
|