台桌列表 区域判空

This commit is contained in:
wangw 2024-03-12 11:33:35 +08:00
parent 80d2ece89c
commit bf42ed75a3
1 changed files with 1 additions and 2 deletions

View File

@ -75,8 +75,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
@Override
public Map<String,Object> queryAllNoPage(TbShopTableQueryCriteria criteria){
log.info("台桌criteria,{}", criteria);
if (criteria != null || criteria.getAreaId() == 0) {
if (null == criteria.getAreaId() || criteria.getAreaId() == 0) {
criteria.setAreaId(null);
}
List<TbShopTable> tbShopTableList = tbShopTableRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root, criteria, criteriaBuilder));