创建订单保存sendType

This commit is contained in:
2024-09-27 10:37:57 +08:00
parent 501970a89b
commit 19eacd1550
6 changed files with 54 additions and 4 deletions

View File

@@ -1,7 +1,9 @@
package com.chaozhanggui.system.cashierservice.controller;
import com.chaozhanggui.system.cashierservice.entity.dto.ClearTableDTO;
import com.chaozhanggui.system.cashierservice.service.ShopInfoService;
import com.chaozhanggui.system.cashierservice.sign.CodeEnum;
import com.chaozhanggui.system.cashierservice.sign.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@@ -47,6 +49,13 @@ public class ShopInfoController {
return shopInfoService.queryShopTable(shopId, areaId, status, page, pageSize);
}
@PutMapping("clearTable")
public Result queryShopTable(
@RequestBody ClearTableDTO clearTableDTO
) {
return Result.success(CodeEnum.SUCCESS, shopInfoService.cleatTable(clearTableDTO));
}
@GetMapping("queryDuty")
public Result queryDuty(@RequestHeader("token") String token,
@RequestParam("page") int page,