智慧厨房
This commit is contained in:
parent
589e1ef4d7
commit
2a5d92593c
|
|
@ -51,6 +51,18 @@ public class KitchenWasteMealController extends BaseController {
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询厨房餐余浪费汇总
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询厨房餐余浪费汇总")
|
||||||
|
//@RequiresPermissions("kitchen:meal:list")
|
||||||
|
@PostMapping("/list/count")
|
||||||
|
public TableDataInfo listCount(@RequestBody @Valid KitchenWasteMeal kitchenWasteMeal) {
|
||||||
|
startPage();
|
||||||
|
List<KitchenWasteMeal> list = kitchenWasteMealService.selectKitchenWasteMealListCount(kitchenWasteMeal);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导出厨房餐余浪费列表
|
* 导出厨房餐余浪费列表
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -57,4 +57,6 @@ public interface IKitchenWasteMealService {
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteKitchenWasteMealByLedgerId(Long ledgerId);
|
public int deleteKitchenWasteMealByLedgerId(Long ledgerId);
|
||||||
|
|
||||||
|
public List<KitchenWasteMeal> selectKitchenWasteMealListCount(KitchenWasteMeal kitchenWasteMeal);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package com.bonus.canteen.core.kitchen.service.impl;
|
package com.bonus.canteen.core.kitchen.service.impl;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.bonus.common.core.exception.ServiceException;
|
import com.bonus.common.core.exception.ServiceException;
|
||||||
import com.bonus.common.core.utils.DateUtils;
|
import com.bonus.common.core.utils.DateUtils;
|
||||||
|
|
@ -95,4 +96,9 @@ public class KitchenWasteMealServiceImpl implements IKitchenWasteMealService {
|
||||||
public int deleteKitchenWasteMealByLedgerId(Long ledgerId) {
|
public int deleteKitchenWasteMealByLedgerId(Long ledgerId) {
|
||||||
return kitchenWasteMealMapper.deleteKitchenWasteMealByLedgerId(ledgerId);
|
return kitchenWasteMealMapper.deleteKitchenWasteMealByLedgerId(ledgerId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<KitchenWasteMeal> selectKitchenWasteMealListCount(KitchenWasteMeal kitchenWasteMeal) {
|
||||||
|
return kitchenWasteMealMapper.selectKitchenWasteMealListCount(kitchenWasteMeal);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue