|
@@ -44,12 +44,9 @@ public class DishServiceImpl extends ServiceImpl<DishMapper, Dish> implements Di
|
|
|
public Map<String, Object> collect() {
|
|
|
Date nowDate = DateUtils.getNowDate();
|
|
|
QueryWrapper<Dish> queryWrapper = new QueryWrapper<>();
|
|
|
- queryWrapper.select("IFNULL(sum(amt),0) as total")
|
|
|
+ queryWrapper.select("IFNULL(sum(amt),0) as total","count(seq) as dishCount")
|
|
|
.between("create_time",DateUtils.getDayStartTime(nowDate),nowDate);
|
|
|
- Map<String, Object> map = this.getMap(queryWrapper);
|
|
|
- //TODO 余额不知道从哪里获取
|
|
|
- map.put("balance",0.00);
|
|
|
- return map;
|
|
|
+ return this.getMap(queryWrapper);
|
|
|
}
|
|
|
|
|
|
|