1.代客下单 台桌最新订单号查询问题fix
This commit is contained in:
@@ -24,5 +24,5 @@ public interface TbShopTableMapper {
|
||||
int updateByPrimaryKey(TbShopTable record);
|
||||
|
||||
List<TbShopTable> selectByShopIdAndStatus(@Param("shopId") String shopId,@Param("areaId") String areaId,@Param("status") String status);
|
||||
List<TbShopTableVO> selectTableInfo(@Param("shopId") String shopId, @Param("areaId") String areaId, @Param("status") String status);
|
||||
List<TbShopTableVO> selectTableInfo(@Param("shopId") String shopId, @Param("areaId") String areaId, @Param("status") String status, @Param("day") String day);
|
||||
}
|
||||
|
||||
@@ -682,6 +682,12 @@ public class OrderService {
|
||||
}
|
||||
}
|
||||
|
||||
if (!StrUtil.isBlank(orderVo.getTableId())) {
|
||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||
.eq(TbShopTable::getQrcode, orderInfo.getTableId())
|
||||
.set(TbShopTable::getStatus, TableStateEnum.USING.getState()));
|
||||
}
|
||||
|
||||
JSONObject object=new JSONObject();
|
||||
String outNumber= redisUtil.getMessage(RedisCst.OUT_NUMBER.concat(orderInfo.getShopId().toString()));
|
||||
Integer number=1;
|
||||
|
||||
@@ -55,7 +55,7 @@ public class ShopInfoService {
|
||||
|
||||
PageHelperUtil.startPage(page, pageSize);
|
||||
// List<TbShopTable> shopTables=tbShopTableMapper.selectByShopIdAndStatus(shopId,areaId,status);
|
||||
List<TbShopTableVO> tbShopTableVOList = tbShopTableMapper.selectTableInfo(shopId, areaId, status);
|
||||
List<TbShopTableVO> tbShopTableVOList = tbShopTableMapper.selectTableInfo(shopId, areaId, status, DateUtils.getDay());
|
||||
PageInfo pageInfo=new PageInfo(tbShopTableVOList);
|
||||
|
||||
return Result.success(CodeEnum.SUCCESS,pageInfo);
|
||||
|
||||
Reference in New Issue
Block a user