diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopTableMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopTableMapper.java index c686b5e..7236d11 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopTableMapper.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopTableMapper.java @@ -1,6 +1,7 @@ package com.chaozhanggui.system.cashierservice.dao; import com.chaozhanggui.system.cashierservice.entity.TbShopTable; +import com.chaozhanggui.system.cashierservice.entity.vo.TbShopTableVO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Component; @@ -23,4 +24,5 @@ public interface TbShopTableMapper { int updateByPrimaryKey(TbShopTable record); List selectByShopIdAndStatus(@Param("shopId") String shopId,@Param("areaId") String areaId,@Param("status") String status); -} \ No newline at end of file + List selectTableInfo(@Param("shopId") String shopId, @Param("areaId") String areaId, @Param("status") String status); +} diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/service/ShopInfoService.java b/src/main/java/com/chaozhanggui/system/cashierservice/service/ShopInfoService.java index ab60c20..87ba556 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/service/ShopInfoService.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/service/ShopInfoService.java @@ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.chaozhanggui.system.cashierservice.dao.*; import com.chaozhanggui.system.cashierservice.entity.*; +import com.chaozhanggui.system.cashierservice.entity.vo.TbShopTableVO; import com.chaozhanggui.system.cashierservice.sign.CodeEnum; import com.chaozhanggui.system.cashierservice.sign.Result; import com.chaozhanggui.system.cashierservice.util.DateUtils; @@ -53,8 +54,9 @@ public class ShopInfoService { } PageHelperUtil.startPage(page, pageSize); - List shopTables=tbShopTableMapper.selectByShopIdAndStatus(shopId,areaId,status); - PageInfo pageInfo=new PageInfo(shopTables); +// List shopTables=tbShopTableMapper.selectByShopIdAndStatus(shopId,areaId,status); + List tbShopTableVOList = tbShopTableMapper.selectTableInfo(shopId, areaId, status); + PageInfo pageInfo=new PageInfo(tbShopTableVOList); return Result.success(CodeEnum.SUCCESS,pageInfo); } diff --git a/src/main/resources/mapper/TbShopTableMapper.xml b/src/main/resources/mapper/TbShopTableMapper.xml index 17dceed..b0e202a 100644 --- a/src/main/resources/mapper/TbShopTableMapper.xml +++ b/src/main/resources/mapper/TbShopTableMapper.xml @@ -228,4 +228,19 @@ +