nili 8 months ago
parent
commit
beef28766a
  1. 2
      game-service/src/main/java/awesome/group/game/service/AggregationSubService.java

2
game-service/src/main/java/awesome/group/game/service/AggregationSubService.java

@ -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);

Loading…
Cancel
Save