| | |
| | | import cn.afterturn.easypoi.excel.ExcelExportUtil; |
| | | import cn.afterturn.easypoi.excel.entity.ExportParams; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.WebUtils; |
| | | import com.ruoyi.framework.web.service.TokenService; |
| | |
| | | return AjaxResult.success(orderMealVO); |
| | | } |
| | | |
| | | @Log(title = "餐饮-修改餐饮信息", businessType = BusinessType.UPDATE) |
| | | @ApiOperation( value = "修改") |
| | | @PostMapping(value = "/update") |
| | | public AjaxResult<String> update(@RequestBody TOrderMealDTO dto) { |
| | |
| | | } |
| | | return AjaxResult.success(); |
| | | } |
| | | @Log(title = "餐饮-列表详情结账", businessType = BusinessType.UPDATE) |
| | | @ApiOperation( value = "列表详情结账") |
| | | @PostMapping(value = "/detailUpdate") |
| | | public AjaxResult<String> detailUpdate(@RequestBody TOrderMealDTO dto) { |
| | |
| | | } |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @Log(title = "餐饮订单-删除餐饮订单", businessType = BusinessType.DELETE) |
| | | @ApiOperation( value = "删除餐饮订单") |
| | | @GetMapping(value = "/deleteById") |
| | | public AjaxResult<Boolean> deleteById(@RequestParam(value = "id") Long id) { |
| | | orderMealGoodsService.remove(Wrappers.lambdaQuery(TOrderMealGoods.class) |
| | | .eq(TOrderMealGoods::getOrderId, id)); |
| | | // orderMealGoodsService.remove(Wrappers.lambdaQuery(TOrderMealGoods.class) |
| | | // .eq(TOrderMealGoods::getOrderId, id)); |
| | | return AjaxResult.success(orderMealService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 添加餐饮管理 |
| | | */ |
| | | @Log(title = "餐饮-开台", businessType = BusinessType.UPDATE) |
| | | @ApiOperation( value = "开台") |
| | | @PostMapping(value = "/startMeal") |
| | | public AjaxResult<Integer> startMeal(@RequestBody TOrderMeal dto) { |
| | |
| | | /** |
| | | * 添加餐饮管理 |
| | | */ |
| | | @Log(title = "餐饮-点菜", businessType = BusinessType.UPDATE) |
| | | @ApiOperation( value = "点菜接口") |
| | | @PostMapping(value = "/add") |
| | | public AjaxResult<Integer> add(@RequestBody TOrderMealDTO dto) { |
| | |
| | | // return AjaxResult.success(); |
| | | // } |
| | | |
| | | @Log(title = "餐饮-结账", businessType = BusinessType.UPDATE) |
| | | @ApiOperation( value = "结账接口") |
| | | @PostMapping(value = "/checkout") |
| | | public AjaxResult<String> checkout(@Validated @RequestBody CheckoutDTO dto) { |
| | |
| | | /** |
| | | * 导出餐饮列表 |
| | | */ |
| | | @Log(title = "餐饮-导出餐饮列表", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "导出餐饮列表") |
| | | @PostMapping("/exportOrderMeal") |
| | | public void exportOrderMeal(@RequestBody TOrderMealQuery query) |