@ -27,4 +27,7 @@ public class LotterySearchDto {
@ApiModelProperty(value = "创建人")
private String createUser;
@ApiModelProperty(value = "抽奖类型 1-门票抽奖 1-实物抽奖")
private Integer type;
}
@ -426,6 +426,10 @@ public class LotteryService {
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()]));
};