台桌列表 不分页
This commit is contained in:
@@ -25,6 +25,7 @@ import cn.ysk.cashier.service.shop.TbShopTableService;
|
|||||||
import cn.ysk.cashier.dto.shop.TbShopTableDto;
|
import cn.ysk.cashier.dto.shop.TbShopTableDto;
|
||||||
import cn.ysk.cashier.dto.shop.TbShopTableQueryCriteria;
|
import cn.ysk.cashier.dto.shop.TbShopTableQueryCriteria;
|
||||||
import cn.ysk.cashier.mapper.shop.TbShopTableMapper;
|
import cn.ysk.cashier.mapper.shop.TbShopTableMapper;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
@@ -42,6 +43,7 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
* @author lyf
|
* @author lyf
|
||||||
* @date 2024-01-18
|
* @date 2024-01-18
|
||||||
**/
|
**/
|
||||||
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class TbShopTableServiceImpl implements TbShopTableService {
|
public class TbShopTableServiceImpl implements TbShopTableService {
|
||||||
@@ -73,7 +75,8 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String,Object> queryAllNoPage(TbShopTableQueryCriteria criteria){
|
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);
|
criteria.setAreaId(null);
|
||||||
}
|
}
|
||||||
List<TbShopTable> tbShopTableList = tbShopTableRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root, criteria, criteriaBuilder));
|
List<TbShopTable> tbShopTableList = tbShopTableRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root, criteria, criteriaBuilder));
|
||||||
|
|||||||
Reference in New Issue
Block a user