|
|
@@ -347,5 +347,17 @@ public class PurchaseProofingServiceImpl implements PurchaseProofingService{
|
|
|
return purchaseProofingSendDao.findByProofingItemId(itemId);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Page<PurchaseProofingApproval> findApprovalsByPageInfo(
|
|
|
+ final PageInfo pageInfo) {
|
|
|
+ return purchaseProofingApprovalDao.findAll(new Specification<PurchaseProofingApproval>() {
|
|
|
+
|
|
|
+ public Predicate toPredicate(Root<PurchaseProofingApproval> root, CriteriaQuery<?> query, CriteriaBuilder builder) {
|
|
|
+ query.where(pageInfo.getPredicates(root, query, builder));
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ }, pageInfo);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|