pull/47/head
shao1121353141 2023-09-13 16:14:17 +08:00
parent a5ca4e2dad
commit 3f7e26aed9
1 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ package cn.topiam.employee.portal.converter;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import com.querydsl.core.types.ExpressionUtils;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mapping; import org.mapstruct.Mapping;
@ -47,7 +48,7 @@ public interface AppGroupConverter {
*/ */
default Predicate queryPredicate() { default Predicate queryPredicate() {
QAppGroupEntity appGroup = QAppGroupEntity.appGroupEntity; QAppGroupEntity appGroup = QAppGroupEntity.appGroupEntity;
Predicate predicate = appGroup.deleted.eq(Boolean.FALSE); Predicate predicate = ExpressionUtils.and(appGroup.isNotNull(), appGroup.deleted.eq(Boolean.FALSE));
//@formatter:on //@formatter:on
return predicate; return predicate;
} }
@ -59,7 +60,7 @@ public interface AppGroupConverter {
*/ */
default Predicate queryAppGroupAssociationPredicate() { default Predicate queryAppGroupAssociationPredicate() {
QAppGroupAssociationEntity appGroupAssociation = QAppGroupAssociationEntity.appGroupAssociationEntity; QAppGroupAssociationEntity appGroupAssociation = QAppGroupAssociationEntity.appGroupAssociationEntity;
return appGroupAssociation.deleted.eq(Boolean.FALSE); return ExpressionUtils.and(appGroupAssociation.isNotNull(), appGroupAssociation.deleted.eq(Boolean.FALSE));
} }
/** /**