|
|
@@ -1,6 +1,7 @@
|
|
|
package com.zhongshu.card.server.core.service.payment;
|
|
|
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
+import com.github.microservice.pay.client.model.ledger.TransactionLogModel;
|
|
|
import com.zhongshu.card.client.type.RefundState;
|
|
|
import com.zhongshu.card.server.core.dao.payment.RefundRecordDao;
|
|
|
import com.zhongshu.card.server.core.domain.payment.RefundRecord;
|
|
|
@@ -11,6 +12,8 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* 退款记录管理
|
|
|
*
|
|
|
@@ -39,16 +42,21 @@ public class RefundRecordService extends SuperService {
|
|
|
* @return
|
|
|
*/
|
|
|
public ResultContent markState(String refundNo, RefundState refundState) {
|
|
|
+ markState(refundNo, refundState, null);
|
|
|
+ return ResultContent.buildSuccess();
|
|
|
+ }
|
|
|
+
|
|
|
+ public ResultContent markState(String refundNo, RefundState refundState, List<TransactionLogModel> transactionLogModelList) {
|
|
|
if (StringUtils.isNotEmpty(refundNo) && refundState != null) {
|
|
|
RefundRecord refundRecord = refundRecordDao.findTopByRefundNo(refundNo);
|
|
|
if (ObjectUtils.isNotEmpty(refundRecord)) {
|
|
|
refundRecord.setRefundState(refundState);
|
|
|
refundRecord.setExamineTime(System.currentTimeMillis());
|
|
|
refundRecord.setRefuseRemark(refundRecord.getRefundRemark());
|
|
|
+ refundRecord.setRefundTransactionIds(refundRecord.getRefundTransactionIds());
|
|
|
refundRecordDao.save(refundRecord);
|
|
|
}
|
|
|
}
|
|
|
return ResultContent.buildSuccess();
|
|
|
}
|
|
|
-
|
|
|
}
|