|
@@ -15,6 +15,7 @@ import com.zhongshu.card.client.utils.DateUtils;
|
|
|
import com.zhongshu.card.client.utils.PayExceptionToShowUtil;
|
|
import com.zhongshu.card.client.utils.PayExceptionToShowUtil;
|
|
|
import com.zhongshu.card.server.core.dao.payment.ExpenseFlowDao;
|
|
import com.zhongshu.card.server.core.dao.payment.ExpenseFlowDao;
|
|
|
import com.zhongshu.card.server.core.dao.payment.PaymentProcessDao;
|
|
import com.zhongshu.card.server.core.dao.payment.PaymentProcessDao;
|
|
|
|
|
+import com.zhongshu.card.server.core.domain.paySetting.ProjectMainPaySetting;
|
|
|
import com.zhongshu.card.server.core.domain.payment.ExpenseFlow;
|
|
import com.zhongshu.card.server.core.domain.payment.ExpenseFlow;
|
|
|
import com.zhongshu.card.server.core.domain.payment.PaymentProcess;
|
|
import com.zhongshu.card.server.core.domain.payment.PaymentProcess;
|
|
|
import com.zhongshu.card.server.core.domain.schedule.ScheduleTaskConfig;
|
|
import com.zhongshu.card.server.core.domain.schedule.ScheduleTaskConfig;
|
|
@@ -24,6 +25,7 @@ import com.zhongshu.card.server.core.service.pay.BalancePayService;
|
|
|
import com.zhongshu.card.server.core.service.pay.ChinaumsSenselessPayService;
|
|
import com.zhongshu.card.server.core.service.pay.ChinaumsSenselessPayService;
|
|
|
import com.zhongshu.card.server.core.service.pay.SettleService;
|
|
import com.zhongshu.card.server.core.service.pay.SettleService;
|
|
|
import com.zhongshu.card.server.core.service.paySetting.PayOrderSettingService;
|
|
import com.zhongshu.card.server.core.service.paySetting.PayOrderSettingService;
|
|
|
|
|
+import com.zhongshu.card.server.core.service.paySetting.ProjectMainPaySettingService;
|
|
|
import com.zhongshu.card.server.core.service.user.OperationLogsService;
|
|
import com.zhongshu.card.server.core.service.user.OperationLogsService;
|
|
|
import com.zhongshu.card.server.core.util.NextNoUtil;
|
|
import com.zhongshu.card.server.core.util.NextNoUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -72,6 +74,9 @@ public class PayCallService extends SuperService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ChinaumsSenselessPayService chinaumsSenselessPayService;
|
|
private ChinaumsSenselessPayService chinaumsSenselessPayService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ProjectMainPaySettingService projectMainPaySettingService;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 统一调用支付服务
|
|
* 统一调用支付服务
|
|
|
*
|
|
*
|
|
@@ -308,6 +313,23 @@ public class PayCallService extends SuperService {
|
|
|
return ResultContent.buildSuccess();
|
|
return ResultContent.buildSuccess();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 银联云闪付支付完成
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param paymentNo
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ public ResultContent unionFrictionlessPayFinish(String paymentNo) {
|
|
|
|
|
+ if (StringUtils.isEmpty(paymentNo)) {
|
|
|
|
|
+ return ResultContent.buildFail("paymentNo为空");
|
|
|
|
|
+ }
|
|
|
|
|
+ ExpenseFlow entity = expenseFlowDao.findTopByPaymentNo(paymentNo);
|
|
|
|
|
+ if (ObjectUtils.isNotEmpty(entity)) {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ return ResultContent.buildSuccess();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 订单是否在支付中
|
|
* 订单是否在支付中
|
|
|
*
|
|
*
|
|
@@ -413,7 +435,8 @@ public class PayCallService extends SuperService {
|
|
|
PaymentType paymentType = PaymentType.valueOf(data.get("paymentType").toString());
|
|
PaymentType paymentType = PaymentType.valueOf(data.get("paymentType").toString());
|
|
|
if (StringUtils.isNotEmpty(projectOid) && paymentType != null) {
|
|
if (StringUtils.isNotEmpty(projectOid) && paymentType != null) {
|
|
|
String remark = "定时结算";
|
|
String remark = "定时结算";
|
|
|
- Long endTime = System.currentTimeMillis();
|
|
|
|
|
|
|
+ Long endTime = projectMainPaySettingService.getCurrentRunTime(projectOid, paymentType);
|
|
|
|
|
+
|
|
|
// 项目包含的机构列表
|
|
// 项目包含的机构列表
|
|
|
ResultContent<List<OrganizationMiniModel>> content = projectBindOrgService.getProjectOrgList(projectOid);
|
|
ResultContent<List<OrganizationMiniModel>> content = projectBindOrgService.getProjectOrgList(projectOid);
|
|
|
if (content.isSuccess()) {
|
|
if (content.isSuccess()) {
|