|
|
@@ -733,25 +733,30 @@ public class StoreInServiceImpl implements StoreInService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (CollectionUtils.isNotEmpty(storeIds)) {
|
|
|
- keywordLogicalEx = PredicateUtils.in("uuid", storeIds, true);
|
|
|
+ if (CollectionUtils.isEmpty(storeIds)) {
|
|
|
+ storeIds.add("");
|
|
|
}
|
|
|
+ keywordLogicalEx = PredicateUtils.in("uuid", storeIds, true);
|
|
|
} else {
|
|
|
nameSimpleEx = PredicateUtils.like("storeName", keyword, true);
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- if (nameSimpleEx != null) {
|
|
|
- if (typeLogicalEx != null) {
|
|
|
- pageInfo.expression(PredicateUtils.and(nameSimpleEx, typeLogicalEx));
|
|
|
- } else {
|
|
|
- pageInfo.expression(nameSimpleEx);
|
|
|
- }
|
|
|
- } else if (typeLogicalEx != null) {
|
|
|
+ if (nameSimpleEx != null) {
|
|
|
+ if (typeLogicalEx != null) {
|
|
|
+ pageInfo.expression(PredicateUtils.and(nameSimpleEx, typeLogicalEx));
|
|
|
+ } else {
|
|
|
+ pageInfo.expression(nameSimpleEx);
|
|
|
+ }
|
|
|
+ } else if (typeLogicalEx != null) {
|
|
|
pageInfo.expression(PredicateUtils.and(keywordLogicalEx, typeLogicalEx));
|
|
|
} else {
|
|
|
pageInfo.expression(keywordLogicalEx);
|
|
|
}
|
|
|
+ } else if (typeLogicalEx != null) {
|
|
|
+ pageInfo.expression(typeLogicalEx);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
return storeDao.findAll(new Specification<StoreIn>() {
|
|
|
@Override
|