台桌列表 区域判空
This commit is contained in:
parent
80d2ece89c
commit
bf42ed75a3
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue