1.排队取号 取消接口修改
This commit is contained in:
@@ -48,9 +48,9 @@ public class TbCallTableController {
|
||||
return Result.successWithData(tbCallService.getAllInfo(shopId));
|
||||
}
|
||||
|
||||
@DeleteMapping("/cancel")
|
||||
@PostMapping("/cancel")
|
||||
public Result cancel(
|
||||
@Validated @RequestParam CancelCallQueueDTO cancelCallQueueDTO
|
||||
@Validated @RequestBody CancelCallQueueDTO cancelCallQueueDTO
|
||||
) {
|
||||
return Result.successWithData(tbCallService.cancel(cancelCallQueueDTO));
|
||||
}
|
||||
|
||||
@@ -11,4 +11,7 @@ public class CallQueueInfoVO {
|
||||
private Integer waitTime;
|
||||
private Integer state;
|
||||
private String callNum;
|
||||
private String shopState;
|
||||
private String shopName;
|
||||
private String logo;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package com.chaozhanggui.system.cashierservice.mapper;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbCallQueue;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.chaozhanggui.system.cashierservice.entity.vo.CallQueueInfoVO;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -15,7 +14,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface TbCallQueueMapper extends BaseMapper<TbCallQueue> {
|
||||
|
||||
List<CallQueueInfoVO> selectInfoByOpenId(Integer shopId, String openId);
|
||||
List<CallQueueInfoVO> selectInfoByOpenId(Integer shopId, String openId, String today);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ public class TbCallServiceImpl implements TbCallService {
|
||||
|
||||
@Override
|
||||
public Object getList(Integer shopId, String openId) {
|
||||
return callQueueMapper.selectInfoByOpenId(shopId, openId);
|
||||
return callQueueMapper.selectInfoByOpenId(shopId, openId, DateUtil.today());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user