1.排队取号 新增桌型列表接口

This commit is contained in:
2024-09-13 15:16:34 +08:00
parent c02ff9b895
commit a82e723237
3 changed files with 15 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ public class TbCallTableController {
* @param shopId 店铺id
* @return data
*/
@GetMapping
@GetMapping("queue")
public Result get(
@RequestParam String openId,
@RequestParam Integer shopId
@@ -39,4 +39,11 @@ public class TbCallTableController {
return Result.successWithData(tbCallService.getList(shopId, openId));
}
@GetMapping
public Result getList(
@RequestParam Integer shopId
) {
return Result.successWithData(tbCallService.getAllInfo(shopId));
}
}

View File

@@ -6,4 +6,6 @@ public interface TbCallService {
Object takeNumber(TakeNumberDTO takeNumberDTO);
Object getList(Integer shopId, String openId);
Object getAllInfo(Integer shopId);
}

View File

@@ -95,4 +95,9 @@ public class TbCallServiceImpl implements TbCallService {
public Object getList(Integer shopId, String openId) {
return callQueueMapper.selectInfoByOpenId(shopId, openId);
}
@Override
public Object getAllInfo(Integer shopId) {
return callTableService.lambdaQuery().eq(TbCallTable::getShopId, shopId).eq(TbCallTable::getState, 1).list();
}
}