|
|
@@ -541,8 +541,12 @@ public class InquiryForSaleServiceImpl implements InquiryForSaleService {
|
|
|
if (filter.getEndDate() != null) {
|
|
|
pageInfo.expression(PredicateUtils.lte("reDate", new Date(filter.getEndDate()), false));
|
|
|
}
|
|
|
+ if (filter.getEnableOffer() != null && filter.getEnableOffer() == 1) {
|
|
|
+ pageInfo.expression(PredicateUtils.gt("endDate", new Date(), false));
|
|
|
+ }
|
|
|
}
|
|
|
Page reminds = remindDao.findAll(new Specification<InquiryRemind>() {
|
|
|
+ @Override
|
|
|
public Predicate toPredicate(Root<InquiryRemind> root, CriteriaQuery<?> query, CriteriaBuilder builder) {
|
|
|
query.where(pageInfo.getPredicates(root, query, builder));
|
|
|
return null;
|
|
|
@@ -586,6 +590,13 @@ public class InquiryForSaleServiceImpl implements InquiryForSaleService {
|
|
|
return remindIPage;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 分页查询企业商机
|
|
|
+ * @param pageInfo
|
|
|
+ * @param filter
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
public IPage<InquiryEnRemind> findEnRemindByPageInfo(final PageInfo pageInfo, final SearchFilter filter) {
|
|
|
Sort sort = new Sort(Sort.Direction.DESC, "date");
|
|
|
if (pageInfo.getOffset() == 0) {
|
|
|
@@ -615,8 +626,12 @@ public class InquiryForSaleServiceImpl implements InquiryForSaleService {
|
|
|
pageInfo.filter("remindStatus", 0);
|
|
|
isAll = filter.getIsAll();
|
|
|
}
|
|
|
+ if (filter.getEnableOffer() != null && filter.getEnableOffer() == 1) {
|
|
|
+ pageInfo.expression(PredicateUtils.gt("endDate", new Date(), false));
|
|
|
+ }
|
|
|
}
|
|
|
Page reminds = inquiryEnRemindDao.findAll(new Specification<InquiryEnRemind>() {
|
|
|
+ @Override
|
|
|
public Predicate toPredicate(Root<InquiryEnRemind> root, CriteriaQuery<?> query, CriteriaBuilder builder) {
|
|
|
query.where(pageInfo.getPredicates(root, query, builder));
|
|
|
return null;
|