if (CollectionUtils.isEmpty(paymentIdList)) {
WHERE("false");
}else {
List orList = Lists.newArrayList();
for (int i = 0; i < paymentIdList.size(); i++) {
orList.add("PAYMENT_ID = #{paymentIdList[" + i +"]}");
}
WHERE("(" + StringUtils.join(orList, " OR ") +")");
}
网友评论