台桌列表 不分页

This commit is contained in:
wangw 2024-03-12 11:13:23 +08:00
parent f03debac1b
commit 80d2ece89c
1 changed files with 4 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import cn.ysk.cashier.service.shop.TbShopTableService;
import cn.ysk.cashier.dto.shop.TbShopTableDto;
import cn.ysk.cashier.dto.shop.TbShopTableQueryCriteria;
import cn.ysk.cashier.mapper.shop.TbShopTableMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.data.domain.Page;
@ -42,6 +43,7 @@ import javax.servlet.http.HttpServletResponse;
* @author lyf
* @date 2024-01-18
**/
@Slf4j
@Service
@RequiredArgsConstructor
public class TbShopTableServiceImpl implements TbShopTableService {
@ -73,7 +75,8 @@ public class TbShopTableServiceImpl implements TbShopTableService {
@Override
public Map<String,Object> queryAllNoPage(TbShopTableQueryCriteria criteria){
if (criteria.getAreaId() != null || criteria.getAreaId() == 0) {
log.info("台桌criteria,{}", criteria);
if (criteria != null || criteria.getAreaId() == 0) {
criteria.setAreaId(null);
}
List<TbShopTable> tbShopTableList = tbShopTableRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root, criteria, criteriaBuilder));