台桌增加绑定状态筛选

This commit is contained in:
张松
2025-03-11 10:58:39 +08:00
parent 809109614e
commit 240e43daef
5 changed files with 18 additions and 14 deletions

View File

@@ -16,5 +16,6 @@ import java.util.List;
public interface ShopTableMapper extends BaseMapper<ShopTable> {
List<ShopTableVO> pageInfo(@Param("shopId") Long shopId, @Param("areaId") Integer areaId,
@Param("tableCode") String tableCode, @Param("status") String status, @Param("name") String name);
@Param("tableCode") String tableCode, @Param("status") String status, @Param("name") String name,
@Param("isBind") Boolean isBind);
}

View File

@@ -270,8 +270,8 @@ public class ShopTableServiceImpl extends ServiceImpl<ShopTableMapper, ShopTable
}
@Override
public Page<ShopTableVO> pageInfo(Long shopId, Integer areaId, String tableCode, String status, String name) {
public Page<ShopTableVO> pageInfo(Long shopId, Integer areaId, String tableCode, String status, String name, Boolean isBind) {
PageHelper.startPage(PageUtil.buildPageHelp());
return PageUtil.convert(new PageInfo<>(mapper.pageInfo(shopId, areaId, tableCode, status, name)));
return PageUtil.convert(new PageInfo<>(mapper.pageInfo(shopId, areaId, tableCode, status, name, isBind)));
}
}

View File

@@ -23,6 +23,9 @@
<if test="name != null and name != ''">
and a.name like concat('%', #{name}, '%')
</if>
<if test="isBind != null">
and a.table_code is not null
</if>
group by a.id
ORDER BY a.create_time