|
|
@ -426,6 +426,10 @@ public class LotteryService {
|
|
|
|
criteriaBuilder.equal(root.get("createUser"), lotterySearchDto.getCreateUser()));
|
|
|
|
criteriaBuilder.equal(root.get("createUser"), lotterySearchDto.getCreateUser()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (lotterySearchDto.getType() != null) {
|
|
|
|
|
|
|
|
predicateList.add(criteriaBuilder.equal(root.get("type"), lotterySearchDto.getType()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return criteriaBuilder.and(predicateList.toArray(new Predicate[predicateList.size()]));
|
|
|
|
return criteriaBuilder.and(predicateList.toArray(new Predicate[predicateList.size()]));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|