|
|
@@ -15,6 +15,7 @@ import com.zhongshu.card.server.core.domain.payment.ExpenseFlow;
|
|
|
import com.zhongshu.card.server.core.service.base.SuperService;
|
|
|
import com.zhongshu.card.server.core.service.pay.BalancePayService;
|
|
|
import com.zhongshu.card.server.core.service.user.OperationLogsService;
|
|
|
+import com.zhongshu.card.server.core.util.NextNoUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
@@ -160,6 +161,7 @@ public class PayCallService extends SuperService {
|
|
|
entity.setRefundState(RefundState.Refunded);
|
|
|
entity.setRefuseRemark("退款成功");
|
|
|
expenseFlowDao.save(entity);
|
|
|
+ return ResultContent.buildSuccess();
|
|
|
} else {
|
|
|
return ResultContent.buildFail(resultContent.getMsg());
|
|
|
}
|
|
|
@@ -174,9 +176,11 @@ public class PayCallService extends SuperService {
|
|
|
* @return
|
|
|
*/
|
|
|
public ResultContent<List<TransactionLogModel>> walletRefund(ExpenseFlow entity, ExpenseRefundParam param) {
|
|
|
+ String refundNo = NextNoUtil.getNextPaymentNo(null);
|
|
|
+ entity.setRefundNo(refundNo);
|
|
|
com.github.microservice.pay.client.ret.ResultContent<List<TransactionLogModel>> resultContent = balancePayService.refund(
|
|
|
entity.getProjectOid(), entity.getShopOid(), entity.getUserId(),
|
|
|
- entity.getPaymentNo(), entity.getPayAmount(), param.getRemark());
|
|
|
+ refundNo, entity.getPayAmount(), param.getRemark());
|
|
|
if (resultContent.getState() == ResultState.Success) {
|
|
|
return ResultContent.buildSuccess(resultContent.getContent());
|
|
|
} else {
|