|
|
@@ -436,10 +436,10 @@ public class BankTransferServiceImpl implements BankTransferService {
|
|
|
if (StringUtils.hasText(orderId)) {
|
|
|
Order order = orderDao.findByOrderid(orderId);
|
|
|
if (order != null && order.getBuyerenuu() != null) {
|
|
|
-// List<BankInfo> bankInfos = bankInfoDao.findByUseruuAndEnuuAndNumAndTypeAndOpraterUserTypeAndStatus(order.getBuyeruu(), order.getBuyerenuu(), 1, (short) 2, Type.BUYER.value(), Status.ALLOW.value());
|
|
|
-// if (!CollectionUtils.isEmpty(bankInfos)) {
|
|
|
-// return bankInfos.get(0);
|
|
|
-// }
|
|
|
+ List<BankInfo> bankInfos = bankInfoDao.findByUseruuAndEnuuAndNumAndOpraterUserTypeAndStatus(order.getBuyeruu(), order.getBuyerenuu(), 1, Type.BUYER.value(), Status.ALLOW.value());
|
|
|
+ if (!CollectionUtils.isEmpty(bankInfos)) {
|
|
|
+ return bankInfos.get(0);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return null;
|
|
|
@@ -462,6 +462,7 @@ public class BankTransferServiceImpl implements BankTransferService {
|
|
|
info.filter("operateType", type);
|
|
|
info.filter("collectenuu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
}
|
|
|
+ info.expression(PredicateUtils.isNotNull("transferTime"));
|
|
|
filterPageInfo(info, keyword, fromDate, toDate);
|
|
|
|
|
|
Page<BankTransfer> pageBankTran = bankTransferDao.findAll(new Specification<BankTransfer>() {
|
|
|
@@ -496,6 +497,7 @@ public class BankTransferServiceImpl implements BankTransferService {
|
|
|
info.filter("operateType", type);
|
|
|
info.filter("collectenuu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
}
|
|
|
+ info.expression(PredicateUtils.isNotNull("transferTime"));
|
|
|
info.sorting(Sort.Direction.DESC, "transferTime");
|
|
|
filterPageInfo(info, keyword, fromDate, toDate);
|
|
|
List<BankTransfer> list = bankTransferDao.findAll(new Specification<BankTransfer>() {
|