1.排队取号 新增桌型列表接口
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -6,4 +6,6 @@ public interface TbCallService {
|
||||
Object takeNumber(TakeNumberDTO takeNumberDTO);
|
||||
|
||||
Object getList(Integer shopId, String openId);
|
||||
|
||||
Object getAllInfo(Integer shopId);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user