预约端-预定单:查询预约单选中台桌
This commit is contained in:
@@ -4,6 +4,7 @@ import com.czg.account.dto.BkOrderDTO;
|
|||||||
import com.czg.account.dto.calltable.CallTablePage;
|
import com.czg.account.dto.calltable.CallTablePage;
|
||||||
import com.czg.account.entity.BkContactList;
|
import com.czg.account.entity.BkContactList;
|
||||||
import com.czg.account.entity.BkOrder;
|
import com.czg.account.entity.BkOrder;
|
||||||
|
import com.czg.account.entity.BkOrderTable;
|
||||||
import com.czg.account.service.BkContactListService;
|
import com.czg.account.service.BkContactListService;
|
||||||
import com.czg.account.service.BkOrderService;
|
import com.czg.account.service.BkOrderService;
|
||||||
import com.czg.account.vo.BkTableVO;
|
import com.czg.account.vo.BkTableVO;
|
||||||
@@ -71,6 +72,16 @@ public class BkContactListController {
|
|||||||
return CzgResult.success(tables);
|
return CzgResult.success(tables);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预约端-预定单:查询预约单选中台桌
|
||||||
|
*/
|
||||||
|
// @SaAdminCheckPermission(value = "bk:bkOrder:bookings/tables", name = "预约端-预约单:查询预约单选中的台桌")
|
||||||
|
@GetMapping("/bkOrder/bookings/tables")
|
||||||
|
public CzgResult<List<BkOrderTable>> bookingTables(Long id) {
|
||||||
|
List<BkOrderTable> tables = bkOrderService.bookingTables(StpKit.USER.getShopId(), id);
|
||||||
|
return CzgResult.success(tables);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 预约端-预约单:预约/修改预约
|
* 预约端-预约单:预约/修改预约
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.czg.account.service;
|
package com.czg.account.service;
|
||||||
|
|
||||||
import com.czg.account.dto.BkOrderDTO;
|
import com.czg.account.dto.BkOrderDTO;
|
||||||
|
import com.czg.account.entity.BkOrderTable;
|
||||||
import com.czg.account.vo.BkTableVO;
|
import com.czg.account.vo.BkTableVO;
|
||||||
import com.mybatisflex.core.service.IService;
|
import com.mybatisflex.core.service.IService;
|
||||||
import com.czg.account.entity.BkOrder;
|
import com.czg.account.entity.BkOrder;
|
||||||
@@ -27,6 +28,14 @@ public interface BkOrderService extends IService<BkOrder> {
|
|||||||
*/
|
*/
|
||||||
List<BkOrder> bookings(Long shopId, String search, LocalDate start, LocalDate end, String status);
|
List<BkOrder> bookings(Long shopId, String search, LocalDate start, LocalDate end, String status);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约单的台桌列表
|
||||||
|
* @param shopId 店铺id
|
||||||
|
* @param bkOrderId 预约单id
|
||||||
|
* @return 预约单的台桌列表
|
||||||
|
*/
|
||||||
|
List<BkOrderTable> bookingTables(Long shopId, Long bkOrderId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 预约
|
* 预约
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -42,6 +42,11 @@ public class BkOrderServiceImpl extends ServiceImpl<BkOrderMapper, BkOrder> impl
|
|||||||
return mapper.bookings(shopId, search, start, end, status);
|
return mapper.bookings(shopId, search, start, end, status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<BkOrderTable> bookingTables(Long shopId, Long bkOrderId) {
|
||||||
|
return tableMapper.selectListByQuery(QueryWrapper.create().eq(BkOrderTable::getBookOrderId, bkOrderId).eq(BkOrderTable::getShopId, shopId));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void booking(Long shopId, BkOrderDTO bkOrder) {
|
public void booking(Long shopId, BkOrderDTO bkOrder) {
|
||||||
|
|||||||
Reference in New Issue
Block a user