分组条件构造器

  1. List<Object> objects = listObjs(new QueryWrapper<Budget>()
  2. .select("type_id as type, sum(amount) as total").lambda()
  3. .eq(Budget::getDeptId, budgetQuery.getDeptId())
  4. .ge(Budget::getExpectTime, budgetQuery.getStartDate())
  5. .le(Budget::getExpectTime, budgetQuery.getEndDate())
  6. .groupBy(Budget::getTypeId));