Commit b2c621ce by gonglei

修改保证金支付流程

1 parent 06b3fe05
...@@ -65,5 +65,11 @@ bootJar { ...@@ -65,5 +65,11 @@ bootJar {
enabled = true enabled = true
} }
apply plugin: "org.summerframework.plugin"
apiTypescript {
generatedDir = '/aus-front/admin/src/api/'
excludePath = '/rest/'
excludeController "SecurityController"
}
package com.glsx.usedcar.export;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.glsx.usedcar.export.converter.RefundStateConverter;
import com.glsx.usedcar.module.account.entity.Account;
import com.glsx.usedcar.module.finance.entity.Deposit;
import com.glsx.usedcar.module.vehicle.entity.BaseInfo;
import jakarta.persistence.Column;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.Objects;
@Data
public class DepositRefundBean {
@ExcelProperty("用户ID")
@ColumnWidth(10)
private int accountId;
@ExcelProperty("用户手机号")
@ColumnWidth(20)
private String mobile;
@ExcelProperty("用户昵称")
@ColumnWidth(20)
private String nickName;
@ExcelProperty("拍场ID")
@ColumnWidth(10)
private int auctionId;
@ExcelProperty("拍场名称")
@ColumnWidth(30)
private String auctionName;
@ExcelProperty("参拍车源号")
@ColumnWidth(20)
private String sourceNo;
@ExcelProperty("参拍车型名称")
@ColumnWidth(30)
private String carTypeName;
@ExcelProperty("商户订单号")
@ColumnWidth(25)
private String outTradeNo;
@ExcelProperty("微信支付订单号")
@ColumnWidth(25)
private String transactionId;
@ExcelProperty("支付金额(元)")
@ColumnWidth(15)
private double transactionAmount;
@ExcelProperty("支付状态")
@ColumnWidth(15)
private String paymentState;
@ExcelProperty("支付时间")
@ColumnWidth(20)
private LocalDateTime paymentTime;
@ExcelProperty("支付渠道")
@ColumnWidth(15)
private String paymentType;
@ExcelProperty("是否中拍")
@ColumnWidth(15)
private String orderState;
@ExcelProperty(value = "退款状态",converter = RefundStateConverter.class)
@ColumnWidth(15)
private Deposit.RefundState refundState;
@ExcelProperty("退款类型")
@ColumnWidth(15)
private String refundType;
@ExcelProperty("退款金额(元)")
@ColumnWidth(15)
private double refundAmount;
@ExcelProperty("微信退款订单号")
@ColumnWidth(25)
private String outRefundNo;
@ExcelProperty("退款申请时间")
@ColumnWidth(20)
private LocalDateTime refundTime;
@ExcelProperty("退款成功时间")
@ColumnWidth(20)
private LocalDateTime refundSuccessTime;
@ExcelProperty("手动退款备注")
@ColumnWidth(35)
private String refundRemark;
@ExcelProperty("退款操作人")
@ColumnWidth(15)
private String refundOperator;
public DepositRefundBean(Deposit deposit) {
Account account = deposit.getAccount();
this.accountId = account.getAccountId();
this.mobile = account.getMobile();
this.nickName = account.getNickName();
this.auctionId = deposit.getAuctionVehicle().getAuction().getAuctionId();
this.auctionName = deposit.getAuctionVehicle().getAuction().getAuctionName();
BaseInfo baseInfo = deposit.getAuctionVehicle().getVehicle().getBaseInfo();
this.sourceNo = baseInfo.getSourceNo();
this.carTypeName = baseInfo.getCarSeriesName() + " "+baseInfo.getCarTypeName();
this.outTradeNo = deposit.getOutTradeNo();
this.transactionId = deposit.getTransactionId();
this.transactionAmount = Math.abs(deposit.getTransaction().getAmount());
this.paymentState = Objects.nonNull(deposit.getPaymentTime()) ? "已支付" : "已关闭";
this.paymentTime = deposit.getPaymentTime();
this.paymentType = "微信支付";
this.orderState = Objects.nonNull(deposit.getAuctionOrder()) ? "是" : "否";
this.refundType = deposit.getRefundType();
this.refundAmount = Objects.nonNull(deposit.getRefundSuccessTime()) ? deposit.getAmount() : 0;
this.outRefundNo = deposit.getOutRefundNo();
this.refundTime = deposit.getRefundTime();
this.refundSuccessTime = deposit.getRefundSuccessTime();
this.refundState = deposit.getRefundState();
this.refundRemark = deposit.getRefundRemark();
this.refundOperator = deposit.getRefundOperator();
}
}
package com.glsx.usedcar.export.converter;
import com.alibaba.excel.converters.Converter;
import com.alibaba.excel.converters.WriteConverterContext;
import com.alibaba.excel.metadata.GlobalConfiguration;
import com.alibaba.excel.metadata.data.ReadCellData;
import com.alibaba.excel.metadata.data.WriteCellData;
import com.alibaba.excel.metadata.property.ExcelContentProperty;
import com.glsx.usedcar.module.account.entity.Account;
import com.glsx.usedcar.module.finance.entity.Deposit;
import org.summerframework.core.i18n.EnumMessage;
public class RefundStateConverter implements Converter<Deposit.RefundState> {
@Override
public Deposit.RefundState convertToJavaData(ReadCellData<?> cellData, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws Exception {
return Converter.super.convertToJavaData(cellData, contentProperty, globalConfiguration);
}
@Override
public WriteCellData<?> convertToExcelData(WriteConverterContext<Deposit.RefundState> context) {
Deposit.RefundState auditState = context.getValue();
String i18nMessage = EnumMessage.getI18nMessage("Deposit.RefundState.", auditState);
return new WriteCellData<>(i18nMessage);
}
}
...@@ -6,6 +6,7 @@ import com.github.binarywang.wxpay.bean.result.WxPayRefundV3Result; ...@@ -6,6 +6,7 @@ import com.github.binarywang.wxpay.bean.result.WxPayRefundV3Result;
import com.github.binarywang.wxpay.exception.WxPayException; import com.github.binarywang.wxpay.exception.WxPayException;
import com.github.binarywang.wxpay.service.WxPayService; import com.github.binarywang.wxpay.service.WxPayService;
import com.glsx.usedcar.export.DepositBean; import com.glsx.usedcar.export.DepositBean;
import com.glsx.usedcar.export.DepositRefundBean;
import com.glsx.usedcar.export.ExcelExporter; import com.glsx.usedcar.export.ExcelExporter;
import com.glsx.usedcar.export.WithdrawBean; import com.glsx.usedcar.export.WithdrawBean;
import com.glsx.usedcar.module.account.entity.Account; import com.glsx.usedcar.module.account.entity.Account;
...@@ -20,6 +21,7 @@ import com.glsx.usedcar.module.finance.entity.Withdraw; ...@@ -20,6 +21,7 @@ import com.glsx.usedcar.module.finance.entity.Withdraw;
import com.glsx.usedcar.module.finance.service.DepositService; import com.glsx.usedcar.module.finance.service.DepositService;
import com.glsx.usedcar.module.finance.service.TransactionService; import com.glsx.usedcar.module.finance.service.TransactionService;
import com.glsx.usedcar.module.finance.service.WithdrawService; import com.glsx.usedcar.module.finance.service.WithdrawService;
import com.glsx.usedcar.module.security.entity.User;
import jakarta.annotation.Resource; import jakarta.annotation.Resource;
import jakarta.persistence.criteria.*; import jakarta.persistence.criteria.*;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
...@@ -27,6 +29,7 @@ import jakarta.validation.Valid; ...@@ -27,6 +29,7 @@ import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.summerframework.orm.paging.Pagination; import org.summerframework.orm.paging.Pagination;
...@@ -194,6 +197,14 @@ public class DepositController { ...@@ -194,6 +197,14 @@ public class DepositController {
ExcelExporter.exportExcel(response, "保证金列表", "保证金列表", DepositBean.class, vehicleBeans); ExcelExporter.exportExcel(response, "保证金列表", "保证金列表", DepositBean.class, vehicleBeans);
} }
@PostMapping("exportDepositRefund")
public void exportDepositRefund(@RequestBody Pagination<Deposit> pagination, HttpServletResponse response) throws IOException {
pagination.setLimit(9999);
List<Deposit> vehicles = pageDepositFetchOrder(pagination).getContent();
List<DepositRefundBean> vehicleBeans = vehicles.stream().map(DepositRefundBean::new).toList();
ExcelExporter.exportExcel(response, "微信支付流水详情", "微信支付流水详情", DepositRefundBean.class, vehicleBeans);
}
@GetMapping("getFreezeAmountByAccount") @GetMapping("getFreezeAmountByAccount")
public double getFreezeAmountByAccount(@RequestParam int accountId) { public double getFreezeAmountByAccount(@RequestParam int accountId) {
return depositService.getFreezeAmountByAccount(accountId); return depositService.getFreezeAmountByAccount(accountId);
...@@ -205,12 +216,13 @@ public class DepositController { ...@@ -205,12 +216,13 @@ public class DepositController {
* 详见 https://pay.weixin.qq.com/doc/v3/merchant/4012791862 * 详见 https://pay.weixin.qq.com/doc/v3/merchant/4012791862
* </pre> * </pre>
* *
* @param depositId 请求对象 * @param deposit 请求对象
* @return 退款操作结果 * @return 退款操作结果
*/ */
@PostMapping("refund") @PostMapping("refund")
public WxPayRefundV3Result refund(@RequestParam int depositId) throws WxPayException { public Deposit refund(@RequestBody Deposit deposit, Authentication authentication) throws WxPayException {
Deposit deposit = depositService.getDepositDetailById(depositId); User user = (User) authentication.getPrincipal();
return transactionService.refund(deposit); Deposit depositDb = depositService.updateDepositRefundRemark(deposit.getDepositId(), deposit.getRefundRemark(), user);
return depositDb;
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -1461,7 +1461,18 @@ ...@@ -1461,7 +1461,18 @@
"enabled": true, "enabled": true,
"value": "/finance/deposit/refund", "value": "/finance/deposit/refund",
"children": [ "children": [
{
"code": "deposit_refund_1",
"name": "导出数据",
"type": "BUTTON",
"enabled": true
},
{
"code": "deposit_refund_2",
"name": "手动退款",
"type": "BUTTON",
"enabled": true
}
] ]
}, },
{ {
......
...@@ -73,5 +73,12 @@ bootJar { ...@@ -73,5 +73,12 @@ bootJar {
enabled = true enabled = true
} }
apply plugin: "org.summerframework.plugin"
apiTypescript {
generatedDir = '/aus-front/app/src/api/'
excludePath = '/api/'
excludeController "SecurityController"
}
...@@ -74,4 +74,29 @@ jar { ...@@ -74,4 +74,29 @@ jar {
} }
apply plugin: "org.summerframework.plugin"
entityTypescript {
//生成文件后的存储目录
generatedDir = '/aus-front/lib/src/entity'
//需要生成类的包路径
generatePackage 'com.glsx.usedcar.module'
}
messageI18n {
generateFile = '/aus-core/src/main/resources/entities_zh_CN.properties'
}
enumTypescript {
generateFile = '/aus-front/lib/src/entity/enum_types.ts'
}
enumTypescriptI18n {
generateFile = '/aus-front/admin/src/assets/i18n/zh_CN/enum.ts'
}
entityTypescriptI18n {
generateFile = '/aus-front/admin/src/assets/i18n/zh_cn/entity.ts'
}
...@@ -86,7 +86,7 @@ public abstract class AbstractAuctionService { ...@@ -86,7 +86,7 @@ public abstract class AbstractAuctionService {
// 解冻保证金 // 解冻保证金
if (deposit.getDepositState() == Deposit.DepositState.FREEZE) { if (deposit.getDepositState() == Deposit.DepositState.FREEZE) {
try { try {
refund(deposit); refund(deposit, "自动退款");
} catch (WxPayException e) { } catch (WxPayException e) {
e.printStackTrace(); e.printStackTrace();
} }
...@@ -102,7 +102,7 @@ public abstract class AbstractAuctionService { ...@@ -102,7 +102,7 @@ public abstract class AbstractAuctionService {
} }
} }
public WxPayRefundV3Result refund(Deposit deposit) throws WxPayException { public WxPayRefundV3Result refund(Deposit deposit, String refundType) throws WxPayException {
if (!StringUtils.hasText(deposit.getOutTradeNo())) { if (!StringUtils.hasText(deposit.getOutTradeNo())) {
throw new WxPayException("退款订单号为空,此订单未支付,不能进行退款操作"); throw new WxPayException("退款订单号为空,此订单未支付,不能进行退款操作");
} }
...@@ -117,7 +117,12 @@ public abstract class AbstractAuctionService { ...@@ -117,7 +117,12 @@ public abstract class AbstractAuctionService {
request.setOutRefundNo(deposit.getOutTradeNo()); request.setOutRefundNo(deposit.getOutTradeNo());
request.setTransactionId(deposit.getTransactionId()); request.setTransactionId(deposit.getTransactionId());
request.setNotifyUrl(notifyUrl + "/refund"); request.setNotifyUrl(notifyUrl + "/refund");
return this.wxService.refundV3(request); WxPayRefundV3Result wxPayRefundV3Result = this.wxService.refundV3(request);
deposit.setRefundTime(LocalDateTime.now());
deposit.setOutRefundNo(wxPayRefundV3Result.getOutRefundNo());
deposit.setRefundType(refundType);
deposit.setRefundState(Deposit.RefundState.REFUNDING);
return wxPayRefundV3Result;
} }
/** /**
......
...@@ -69,6 +69,9 @@ public class Deposit extends AuditingTimeEntity { ...@@ -69,6 +69,9 @@ public class Deposit extends AuditingTimeEntity {
@Column(nullable = false) @Column(nullable = false)
private double amount; private double amount;
/**
* 商户订单号
*/
@Column(unique = true, nullable = false) @Column(unique = true, nullable = false)
private String outTradeNo; private String outTradeNo;
...@@ -81,6 +84,12 @@ public class Deposit extends AuditingTimeEntity { ...@@ -81,6 +84,12 @@ public class Deposit extends AuditingTimeEntity {
@Column @Column
private LocalDateTime refundTime; private LocalDateTime refundTime;
/**
* 退款成功时间
*/
@Column
private LocalDateTime refundSuccessTime;
// /** // /**
// * 退款渠道 // * 退款渠道
// */ // */
...@@ -100,6 +109,31 @@ public class Deposit extends AuditingTimeEntity { ...@@ -100,6 +109,31 @@ public class Deposit extends AuditingTimeEntity {
private String transactionId; private String transactionId;
/** /**
* 微信退款订单号
*/
@Column
private String outRefundNo;
/**
* 退款类型
*/
@Column
private String refundType;
/**
* 退款操作人
*/
@Column
private String refundOperator;
/**
* 退款状态
*/
@Enumerated(EnumType.STRING)
@Column(nullable = false, length = 32)
private RefundState refundState;
/**
* 保证金状态 * 保证金状态
*/ */
@NotNull @NotNull
...@@ -124,10 +158,28 @@ public class Deposit extends AuditingTimeEntity { ...@@ -124,10 +158,28 @@ public class Deposit extends AuditingTimeEntity {
UNFREEZE; UNFREEZE;
} }
public enum RefundState {
/**
* 未退款
*/
UNREFUND,
/**
* 退款中
*/
REFUNDING,
/**
* 已退款
*/
REFUNDED,
}
public Deposit(Account account, AuctionVehicle auctionVehicle, Transaction transaction) { public Deposit(Account account, AuctionVehicle auctionVehicle, Transaction transaction) {
this.account = account; this.account = account;
this.auctionVehicle = auctionVehicle; this.auctionVehicle = auctionVehicle;
this.transaction = transaction; this.transaction = transaction;
this.depositState = DepositState.FREEZE; this.depositState = DepositState.FREEZE;
this.refundState = RefundState.UNREFUND;
} }
} }
package com.glsx.usedcar.module.finance.service; package com.glsx.usedcar.module.finance.service;
import com.github.binarywang.wxpay.exception.WxPayException;
import com.glsx.usedcar.module.account.dao.AccountDao; import com.glsx.usedcar.module.account.dao.AccountDao;
import com.glsx.usedcar.module.account.entity.Account; import com.glsx.usedcar.module.account.entity.Account;
import com.glsx.usedcar.module.auction.dao.AuctionVehicleDao; import com.glsx.usedcar.module.auction.dao.AuctionVehicleDao;
import com.glsx.usedcar.module.auction.entity.AuctionVehicle; import com.glsx.usedcar.module.auction.entity.AuctionVehicle;
import com.glsx.usedcar.module.auction.service.AbstractAuctionService;
import com.glsx.usedcar.module.finance.dao.DepositDao; import com.glsx.usedcar.module.finance.dao.DepositDao;
import com.glsx.usedcar.module.finance.dao.DepositRuleDao; import com.glsx.usedcar.module.finance.dao.DepositRuleDao;
import com.glsx.usedcar.module.finance.dao.TransactionDao; import com.glsx.usedcar.module.finance.dao.TransactionDao;
...@@ -13,6 +15,7 @@ import com.glsx.usedcar.module.finance.entity.DepositRule; ...@@ -13,6 +15,7 @@ import com.glsx.usedcar.module.finance.entity.DepositRule;
import com.glsx.usedcar.module.finance.entity.DepositRule_; import com.glsx.usedcar.module.finance.entity.DepositRule_;
import com.glsx.usedcar.module.finance.entity.Transaction; import com.glsx.usedcar.module.finance.entity.Transaction;
import com.glsx.usedcar.module.meta.AuditState; import com.glsx.usedcar.module.meta.AuditState;
import com.glsx.usedcar.module.security.entity.User;
import com.glsx.usedcar.util.CoderGenerator; import com.glsx.usedcar.util.CoderGenerator;
import jakarta.annotation.Resource; import jakarta.annotation.Resource;
import org.hibernate.ObjectNotFoundException; import org.hibernate.ObjectNotFoundException;
...@@ -36,7 +39,7 @@ import java.util.Optional; ...@@ -36,7 +39,7 @@ import java.util.Optional;
*/ */
@Service @Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class DepositService { public class DepositService extends AbstractAuctionService {
@Resource @Resource
private DepositRuleDao depositRuleDao; private DepositRuleDao depositRuleDao;
...@@ -66,6 +69,15 @@ public class DepositService { ...@@ -66,6 +69,15 @@ public class DepositService {
return depositDao.findByDepositId(depositId); return depositDao.findByDepositId(depositId);
} }
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public Deposit updateDepositRefundRemark(int depositId, String refundRemark, User user) throws WxPayException {
Deposit depositDb = depositDao.findByDepositId(depositId);
depositDb.setRefundRemark(refundRemark);
depositDb.setRefundOperator(user.getRealName());
refund(depositDb,"手动退款");
return depositDb;
}
/** /**
* 分页查询 * 分页查询
* *
...@@ -107,7 +119,7 @@ public class DepositService { ...@@ -107,7 +119,7 @@ public class DepositService {
Deposit deposit = depositDao.findByAccountAndAuctionVehicle(account, auctionVehicle); Deposit deposit = depositDao.findByAccountAndAuctionVehicle(account, auctionVehicle);
if (Objects.nonNull(deposit)) { if (Objects.nonNull(deposit)) {
if(!StringUtils.hasText(deposit.getOutTradeNo())){ if (!StringUtils.hasText(deposit.getOutTradeNo())) {
// 修补历史数据 // 修补历史数据
deposit.setOutTradeNo(CoderGenerator.generateCode(8)); deposit.setOutTradeNo(CoderGenerator.generateCode(8));
} }
...@@ -188,14 +200,14 @@ public class DepositService { ...@@ -188,14 +200,14 @@ public class DepositService {
return depositRuleDao.findAll(); return depositRuleDao.findAll();
} }
public Deposit getDepositByTransaction (Transaction transaction) { public Deposit getDepositByTransaction(Transaction transaction) {
return depositDao.findTopByTransaction(transaction); return depositDao.findTopByTransaction(transaction);
} }
public DepositStat getDepositStat() { public DepositStat getDepositStat() {
DepositStat depositStat = new DepositStat(); DepositStat depositStat = new DepositStat();
// Optional<Double> totalAmount = accountDao.sumAllSurplus(); // Optional<Double> totalAmount = accountDao.sumAllSurplus();
Optional<Double> totalAmount = depositDao.sumAll( ); Optional<Double> totalAmount = depositDao.sumAll();
Optional<Double> depositAmount = depositDao.sumAccountByDepositState(Deposit.DepositState.FREEZE); Optional<Double> depositAmount = depositDao.sumAccountByDepositState(Deposit.DepositState.FREEZE);
Optional<Double> freezeAmount = depositDao.sumByDepositState(Deposit.DepositState.FREEZE); Optional<Double> freezeAmount = depositDao.sumByDepositState(Deposit.DepositState.FREEZE);
depositStat.setTotalAmount(Math.abs(totalAmount.orElse(0.0))); depositStat.setTotalAmount(Math.abs(totalAmount.orElse(0.0)));
......
...@@ -306,7 +306,8 @@ public class TransactionService extends AbstractAuctionService { ...@@ -306,7 +306,8 @@ public class TransactionService extends AbstractAuctionService {
Deposit deposit = depositOptional.get(); Deposit deposit = depositOptional.get();
if (deposit.getDepositState() == Deposit.DepositState.FREEZE) { if (deposit.getDepositState() == Deposit.DepositState.FREEZE) {
deposit.setDepositState(Deposit.DepositState.UNFREEZE); deposit.setDepositState(Deposit.DepositState.UNFREEZE);
deposit.setRefundTime(DateTimeUtils.attemptParseLocalDateTime(decryptRes.getSuccessTime())); deposit.setRefundSuccessTime(DateTimeUtils.attemptParseLocalDateTime(decryptRes.getSuccessTime()));
deposit.setRefundState(Deposit.RefundState.REFUNDED);
Account account = deposit.getAccount(); Account account = deposit.getAccount();
Transaction transaction = new Transaction(account, "保证金退款", Transaction.TransactionType.UNFREEZE, deposit.getAmount(), account.getSurplus()); Transaction transaction = new Transaction(account, "保证金退款", Transaction.TransactionType.UNFREEZE, deposit.getAmount(), account.getSurplus());
transaction.setDeposit(deposit); transaction.setDeposit(deposit);
......
...@@ -57,4 +57,7 @@ Account.CertifiedState.CERTIFY_FAILED=\u8BA4\u8BC1\u5931\u8D25 ...@@ -57,4 +57,7 @@ Account.CertifiedState.CERTIFY_FAILED=\u8BA4\u8BC1\u5931\u8D25
Account.CertifiedState.CERTIFIED=\u8BA4\u8BC1\u6210\u529F Account.CertifiedState.CERTIFIED=\u8BA4\u8BC1\u6210\u529F
Account.AccountType.COMMON=\u672A\u8BA4\u8BC1\u7528\u6237 Account.AccountType.COMMON=\u672A\u8BA4\u8BC1\u7528\u6237
Account.AccountType.PERSON=\u4E2A\u4EBA\u7528\u6237 Account.AccountType.PERSON=\u4E2A\u4EBA\u7528\u6237
Account.AccountType.COMPANY=\u8F66\u5546\u7528\u6237" Account.AccountType.COMPANY=\u8F66\u5546\u7528\u6237
Deposit.RefundState.UNREFUND=\u672A\u9000\u6B3E
Deposit.RefundState.REFUNDING=\u9000\u6B3E\u4E2D
Deposit.RefundState.REFUNDED=\u5DF2\u9000\u6B3E
...@@ -39,6 +39,12 @@ export class DepositController{ ...@@ -39,6 +39,12 @@ export class DepositController{
} }
/** /**
*/
static exportDepositRefund(axios:AxiosStatic, pagination: any, config?:any): Promise<AxiosResponse<void>> {
return axios.post('depositRule/exportDepositRefund', pagination, config);
}
/**
* 查询全部$保证金规则 * 查询全部$保证金规则
* @return List * @return List
*/ */
...@@ -119,11 +125,11 @@ export class DepositController{ ...@@ -119,11 +125,11 @@ export class DepositController{
微信支付-申请退款 微信支付-申请退款
详见 https://pay.weixin.qq.com/doc/v3/merchant/4012791862 详见 https://pay.weixin.qq.com/doc/v3/merchant/4012791862
</pre> </pre>
* @param depositId 请求对象 * @param deposit 请求对象
* @return 退款操作结果 * @return 退款操作结果
*/ */
static refund(axios:AxiosStatic, depositId: number): Promise<AxiosResponse<WxPayRefundV3Result>> { static refund(axios:AxiosStatic, deposit: any): Promise<AxiosResponse<Deposit>> {
return axios.post('depositRule/refund', null, {params: {depositId: depositId}}); return axios.post('depositRule/refund', deposit);
} }
/** /**
......
...@@ -192,6 +192,11 @@ export default { ...@@ -192,6 +192,11 @@ export default {
"depositState": { "depositState": {
"FREEZE": "冻结中", "FREEZE": "冻结中",
"UNFREEZE": "已解冻" "UNFREEZE": "已解冻"
},
"refundState": {
"UNREFUND": "未退款",
"REFUNDING": "退款中",
"REFUNDED": "已退款"
} }
}, },
"depositRule": { "depositRule": {
......
<template> <template>
<a-alert show-icon type="warning" message="请仔细核对以下退款信息" description="退款操作不可撤销,资金将原路退回用户微信账户,请谨慎操作"></a-alert> <a-alert show-icon type="warning" message="请仔细核对以下退款信息" description="退款操作不可撤销,资金将原路退回用户微信账户,请谨慎操作"></a-alert>
<a-descriptions :column="2"> <a-descriptions :column="2" class="mt-16">
<a-descriptions-item label="微信支付订单号">{{deposit.transaction}}</a-descriptions-item> <a-descriptions-item label="微信支付订单号">{{deposit.transactionId}}</a-descriptions-item>
<a-descriptions-item label="商户订单号"></a-descriptions-item> <a-descriptions-item label="商户订单号">{{deposit.outTradeNo}}</a-descriptions-item>
<a-descriptions-item label="用户信息"></a-descriptions-item> <a-descriptions-item label="用户信息">{{deposit.account.mobile}} {{deposit.account.accountName}}</a-descriptions-item>
<a-descriptions-item label="支付金额"></a-descriptions-item> <a-descriptions-item label="支付金额">¥{{-deposit.transaction.amount}}</a-descriptions-item>
<a-descriptions-item label="退款金额"></a-descriptions-item> <a-descriptions-item label="退款金额">¥{{deposit.amount}}</a-descriptions-item>
</a-descriptions> </a-descriptions>
<a-spin :spinning="submitted"> <a-spin :spinning="submitted">
<a-form v-if="formState" :model="formState" :label-col="labelCol" :wrapper-col="wrapperCol" ref="formRef"> <a-form v-if="formState" :model="formState" :label-col="labelCol" :wrapper-col="wrapperCol" ref="formRef">
<a-form-item label="退款备注" name="refundRemark" :rules="[{ required: true, message: '请输入退款备注!' },{ min: 5,message: '至少5个字符!'},{ max: 250,message: '备注不能超过250个字符!'}]">
<a-form-item label="启用状态" name="enabled"> <a-textarea v-model:value="formState.refundRemark" rows="6" placeholder="请输入退款原因,例如:用户申请取消参拍、系统错误重复扣款等"/>
<a-switch v-model:checked="formState.enabled" checked-children="开" un-checked-children="关"/> <a-typography-text type="secondary">请详细说明退款原因,此信息将用于财务审计</a-typography-text>
</a-form-item>
<a-form-item label="账户管理人" name="user" :rules="[{ required: true, message: '请选择账户管理人!' }]">
<m-select v-model:value="formState.user" :options="users" show-search option-filter-prop="userName"
:field-names="{ label: 'realName', value: 'userId' }" placeholder="请选择账户管理人"></m-select>
</a-form-item> </a-form-item>
<a-form-item label="账户管理人联系方式"> <a-form-item label=" " :colon="false">
{{ userMobile }} <a-typography style="background-color: #f9f9f9;padding: 16px;border-radius: 8px">
<!-- <a-input :value="userMobile" disabled placeholder="请选择账户管理人" :maxlength="11"/>--> <a-typography-title :level="5">操作说明</a-typography-title>
<a-space direction="vertical">
<a-typography-text>
退款备注为尾款项目,至少5个字符
</a-typography-text>
<a-typography-text>
点击"确认退款"后将调用微信支付退款接口
</a-typography-text>
<a-typography-text>
系统将记录操作人、操作时间及退款备注用于审计
</a-typography-text>
<a-typography-text>
退款成功后,列表状态将自动更新
</a-typography-text>
</a-space>
</a-typography>
</a-form-item> </a-form-item>
</a-form> </a-form>
</a-spin> </a-spin>
...@@ -49,15 +60,17 @@ export default class DepositRefundModal extends FormComponent<Deposit> { ...@@ -49,15 +60,17 @@ export default class DepositRefundModal extends FormComponent<Deposit> {
onValidSuccess(formValue: Deposit): void { onValidSuccess(formValue: Deposit): void {
const that=this; const that=this;
formValue.depositId=this.deposit.depositId;
Modal.confirm({ Modal.confirm({
title: '提示', title: '提示',
icon: createVNode(ExclamationCircleOutlined), icon: createVNode(ExclamationCircleOutlined),
content: `当前保证金冻结金额为 ¥${-this.deposit.transaction.amount},退款金额为 ¥${this.deposit.amount},您确定将此保证金退款吗?`, content: `当前保证金冻结金额为 ¥${-this.deposit.transaction.amount},退款金额为 ¥${this.deposit.amount},您确定将此保证金退款吗?`,
onOk: () => { onOk: () => {
DepositController.refund(that.axios, that.deposit.depositId).then(response => { this.submitted=true;
DepositController.refund(that.axios, formValue).then(response => {
message.success('退款操作成功,请等待支付平台回调,大约10秒左右退款到账。'); message.success('退款操作成功,请等待支付平台回调,大约10秒左右退款到账。');
this.$emit('handleOk', response.data); this.$emit('handleOk', response.data);
}); }).finally(()=>this.submitted=false);
}, },
onCancel() { onCancel() {
console.log('Cancel'); console.log('Cancel');
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<!--查询栏--> <!--查询栏-->
<m-pagination-query-render :fields="pagination.filterFields" :form="pagination.queryForm" @onSearch="pageReload" @onReset="pageReset" :simpleFieldNum="4"/> <m-pagination-query-render :fields="pagination.filterFields" :form="pagination.queryForm" @onSearch="pageReload" @onReset="pageReset" :simpleFieldNum="4"/>
<div class="table-operations"> <div class="table-operations">
<a-button v-sec="'deposit_3'" type="primary" @click="downloadExcel" :disabled="exporting"> <a-button v-sec="'deposit_refund_1'" type="primary" @click="downloadExcel" :disabled="exporting">
导出流水记录 导出流水记录
</a-button> </a-button>
</div> </div>
...@@ -49,9 +49,9 @@ ...@@ -49,9 +49,9 @@
<!-- <router-link v-sec="'deposit_11'" :to="{ path:'/auction/view',query:{auctionId: record.auctionVehicle.auction.auctionId}}">--> <!-- <router-link v-sec="'deposit_11'" :to="{ path:'/auction/view',query:{auctionId: record.auctionVehicle.auction.auctionId}}">-->
<!-- <a-button type="link" size="small">场次详情</a-button>--> <!-- <a-button type="link" size="small">场次详情</a-button>-->
<!-- </router-link>--> <!-- </router-link>-->
<!-- <template v-if="record.depositState==='FREEZE'&&(record.auctionOrder)">--> <template v-if="record.depositState==='FREEZE'&&(record.auctionOrder)">
<a-button type="link" size="small" @click="confirmRefund(record)">手动退款</a-button> <a-button v-sec="'deposit_refund_2'" type="link" size="small" @click="confirmRefund(record)">手动退款</a-button>
<!-- </template>--> </template>
</template> </template>
<template v-if="column.key === 'transactionType'"> <template v-if="column.key === 'transactionType'">
{{ $t('enum.transaction.transactionType.' + record.transaction.transactionType) }} {{ $t('enum.transaction.transactionType.' + record.transaction.transactionType) }}
...@@ -63,9 +63,10 @@ ...@@ -63,9 +63,10 @@
<template v-if="column.key === 'orderState'"> <template v-if="column.key === 'orderState'">
<auction-order-state-tag v-if="record.auctionOrder" :order-state="record.auctionOrder.orderState"></auction-order-state-tag> <auction-order-state-tag v-if="record.auctionOrder" :order-state="record.auctionOrder.orderState"></auction-order-state-tag>
</template> </template>
<template v-if="column.key === 'isRefund'"> <template v-if="column.key === 'refundState'">
<a-tag v-if="record.refundTime" color="red">是</a-tag> <a-tag v-if="record.refundState==='REFUNDED'" color="red">已退款</a-tag>
<a-tag v-else color="green">否</a-tag> <a-tag v-if="record.refundState==='REFUNDING'" color="blue">退款中</a-tag>
<a-tag v-if="record.refundState==='UNREFUND'" color="green">未退款</a-tag>
</template> </template>
</template> </template>
...@@ -137,7 +138,7 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> { ...@@ -137,7 +138,7 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> {
} }
}, },
{title: '支付时间', dataIndex: 'paymentTime', key: 'paymentTime', align: 'center', width: 170, resizable: true, ellipsis: true, sorter: true}, {title: '支付时间', dataIndex: 'paymentTime', key: 'paymentTime', align: 'center', width: 170, resizable: true, ellipsis: true, sorter: true},
{title: '是否退款', dataIndex: 'refundTime', key: 'isRefund', align: 'center', width: 80, resizable: true, ellipsis: true, sorter: false}, {title: '退款状态', dataIndex: 'refundState', key: 'refundState', align: 'center', width: 80, resizable: true, ellipsis: true, sorter: false},
{ {
title: '退款金额', dataIndex:'amount', key: 'amount', align: 'right', width: 140, resizable: true, ellipsis: true, sorter: true, title: '退款金额', dataIndex:'amount', key: 'amount', align: 'right', width: 140, resizable: true, ellipsis: true, sorter: true,
customRender: ({text, record, index, column}) => { customRender: ({text, record, index, column}) => {
...@@ -178,10 +179,10 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> { ...@@ -178,10 +179,10 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> {
outTradeNo: [null, {label: '商户订单号', field: 'outTradeNo', operator: Operator.like}], outTradeNo: [null, {label: '商户订单号', field: 'outTradeNo', operator: Operator.like}],
transactionId: [null, {label: '微信支付订单号', field: 'transactionId', operator: Operator.like}], transactionId: [null, {label: '微信支付订单号', field: 'transactionId', operator: Operator.like}],
refundTime: [null, { refundTime: [null, {
label: '是否退款', field: 'refundTime', type: 'select', allowClear: true, optionItems: [ label: '是否退款', field: 'refundState', type: 'select', allowClear: true, optionItems: [
{label: '是', value: 'FREEZE'}, {label: '未退款', value: 'UNREFUND'},
{label: '否', value: 'UNFREEZE'} {label: '已退款', value: 'REFUNDED'}
], operator: Operator.isNull ], operator: Operator.eq
}], }],
// depositState: [null, { // depositState: [null, {
// label: '交易状态', field: 'depositState', type: 'select', allowClear: true, optionItems: [ // label: '交易状态', field: 'depositState', type: 'select', allowClear: true, optionItems: [
...@@ -192,7 +193,7 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> { ...@@ -192,7 +193,7 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> {
// amount: [null, {label: '冻结金额', field: 'transaction.amount', fieldName2: 'amount2', operator: Operator.numberBetween, type: 'number-range'}], // amount: [null, {label: '冻结金额', field: 'transaction.amount', fieldName2: 'amount2', operator: Operator.numberBetween, type: 'number-range'}],
}); });
// this.pagination.addDefaultFilter('paymentTime',null,Operator.isNotNull); // this.pagination.addDefaultFilter('paymentTime',null,Operator.isNotNull);
this.pagination.setDefaultSort('createTime', Order.desc); this.pagination.setDefaultSort('paymentTime', Order.desc);
this.pageLoad(); this.pageLoad();
DepositController.getDepositStat(this.axios).then(response => { DepositController.getDepositStat(this.axios).then(response => {
this.depositStat = response.data; this.depositStat = response.data;
...@@ -209,7 +210,7 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> { ...@@ -209,7 +210,7 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> {
downloadExcel(): void { downloadExcel(): void {
this.exporting = true; this.exporting = true;
DepositController.exportDeposit(this.axios, this.pagination.requestParams, {responseType: 'blob'}).then(response => { DepositController.exportDepositRefund(this.axios, this.pagination.requestParams, {responseType: 'blob'}).then(response => {
message.success('导出任务已创建,请稍后在浏览器下载列表中查看'); message.success('导出任务已创建,请稍后在浏览器下载列表中查看');
ExportUtil.downloadExcelFile(response.data, '保证金列表'); ExportUtil.downloadExcelFile(response.data, '保证金列表');
}).catch(error => { }).catch(error => {
...@@ -220,28 +221,13 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> { ...@@ -220,28 +221,13 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> {
} }
confirmRefund(deposit:Deposit):void{ confirmRefund(deposit:Deposit):void{
// const that=this;
// Modal.confirm({
// title: '提示',
// icon: createVNode(ExclamationCircleOutlined),
// content: `当前保证金冻结金额为 ¥${-deposit.transaction.amount},退款金额为 ¥${deposit.amount},您确定将此保证金退款吗?`,
// onOk() {
// DepositController.refund(that.axios, deposit.depositId).then(response => {
// message.success('退款操作成功,请等待支付平台回调,大约10秒左右退款到账。');
// that.pageRefresh();
// });
// },
// onCancel() {
// console.log('Cancel');
// },
// });
const modal = ModalService.confirm({ const modal = ModalService.confirm({
title: '手动退款确认', component: DepositRefundModal, closable: true, appContext: this.$.appContext, title: '手动退款确认', component: DepositRefundModal, closable: true, appContext: this.$.appContext,
props: { props: {
deposit: deposit deposit: deposit
}, },
onOk: (component): void => { onOk: (component): void => {
modal.destroy(); component.submitForm();
}, },
emits: { emits: {
handleOk: (e) => { handleOk: (e) => {
......
import {Dayjs} from 'dayjs'; import {Dayjs} from 'dayjs';
import {AuditingEntity, AuditingTimeEntity} from 'autumn-vue/lib/core/orm/AuditingEntity'; import {AuditingEntity,AuditingTimeEntity} from 'autumn-vue/lib/core/orm/AuditingEntity';
import {DarkPriceRange} from './DarkPriceRange'; import {DarkPriceRange} from './DarkPriceRange';
// region 前端扩展导入包 // region 前端扩展导入包
// endregion // endregion
/** /**
*/ */
export class DarkBidPriceRange { export class DarkBidPriceRange {
/** /**
......
import {Dayjs} from 'dayjs'; import {Dayjs} from 'dayjs';
import {AuditingEntity, AuditingTimeEntity} from 'autumn-vue/lib/core/orm/AuditingEntity'; import {AuditingEntity,AuditingTimeEntity} from 'autumn-vue/lib/core/orm/AuditingEntity';
// region 前端扩展导入包 // region 前端扩展导入包
// endregion // endregion
/** /**
*/ */
export class DepositStat { export class DepositStat {
/** /**
* 总金额 * 总金额
*/ */
totalAmount: number; totalAmount: number;
/** /**
* 可用金额 * 可用金额
*/ */
......
import {Dayjs} from 'dayjs'; import {Dayjs} from 'dayjs';
import {AuditingEntity, AuditingTimeEntity} from 'autumn-vue/lib/core/orm/AuditingEntity'; import {AuditingEntity,AuditingTimeEntity} from 'autumn-vue/lib/core/orm/AuditingEntity';
import {AuctionVehicle} from '../../auction/entity/AuctionVehicle'; import {AuctionVehicle} from '../../auction/entity/AuctionVehicle';
import {Account} from '../../account/entity/Account'; import {Account} from '../../account/entity/Account';
import {Transaction} from './Transaction'; import {Transaction} from './Transaction';
import {AuctionOrder} from "../../auction/entity/AuctionOrder"; import {AuctionOrder} from '../../auction/entity/AuctionOrder';
// region 前端扩展导入包 // region 前端扩展导入包
// endregion // endregion
/** /**
*/ */
export class Deposit extends AuditingTimeEntity { export class Deposit extends AuditingTimeEntity {
/** /**
...@@ -34,27 +34,68 @@ export class Deposit extends AuditingTimeEntity { ...@@ -34,27 +34,68 @@ export class Deposit extends AuditingTimeEntity {
*/ */
amount: number; amount: number;
/** /**
* 商户订单号
*/
outTradeNo: string;
/**
*/
paymentTime: Dayjs | string;
/**
* 退款时间
*/
refundTime: Dayjs | string;
/**
* 退款成功时间
*/
refundSuccessTime: Dayjs | string;
/**
* 退款备注
*/
refundRemark: string;
/**
* 微信支付订单号
*/
transactionId: string;
/**
* 微信退款订单号
*/
outRefundNo: string;
/**
* 退款类型
*/
refundType: string;
/**
* 退款操作人
*/
refundOperator: string;
/**
*/
refundState: Deposit_RefundState;
/**
* 保证金状态 * 保证金状态
*/ */
depositState: Deposit_DepositState; depositState: Deposit_DepositState;
auctionOrder: AuctionOrder;
/** /**
* 退款时间 * 关联的订单
*/ */
refundTime: string; auctionOrder: AuctionOrder;
refundRemark:string;
// region 前端扩展定义属性及方法区 // region 前端扩展定义属性及方法区
// endregion // endregion
} }
/** /**
* UNREFUND 未退款
* REFUNDING 退款中
* REFUNDED 已退款
*/
export type Deposit_RefundState = 'UNREFUND'|'REFUNDING'|'REFUNDED';
export const DEPOSIT_REFUND_STATES = ['UNREFUND','REFUNDING','REFUNDED'];
/**
* FREEZE 冻结中 * FREEZE 冻结中
* UNFREEZE 已解冻 * UNFREEZE 已解冻
*/ */
export type Deposit_DepositState = 'FREEZE' | 'UNFREEZE'; export type Deposit_DepositState = 'FREEZE'|'UNFREEZE';
export const DEPOSIT_DEPOSIT_STATES = ['FREEZE', 'UNFREEZE']; export const DEPOSIT_DEPOSIT_STATES = ['FREEZE','UNFREEZE'];
import {Dayjs} from 'dayjs'; import {Dayjs} from 'dayjs';
import {AuditingEntity,AuditingTimeEntity} from 'autumn-vue/lib/core/orm/AuditingEntity'; import {AuditingEntity,AuditingTimeEntity} from 'autumn-vue/lib/core/orm/AuditingEntity';
import {Account} from '../../account/entity/Account'; import {Account} from '../../account/entity/Account';
import {Deposit} from "./Deposit"; import {Deposit} from './Deposit';
// region 前端扩展导入包 // region 前端扩展导入包
// endregion // endregion
...@@ -37,8 +37,11 @@ export class Transaction extends AuditingTimeEntity { ...@@ -37,8 +37,11 @@ export class Transaction extends AuditingTimeEntity {
* 余额 * 余额
*/ */
surplus: number; surplus: number;
/**
* 关联的保证金信息
*/
deposit: Deposit;
deposit:Deposit;
// region 前端扩展定义属性及方法区 // region 前端扩展定义属性及方法区
// endregion // endregion
} }
......
...@@ -41,6 +41,16 @@ subprojects { ...@@ -41,6 +41,16 @@ subprojects {
springDependencyManagementVersion = '1.1.7' springDependencyManagementVersion = '1.1.7'
} }
repositories {
maven {
//公共库Maven仓库地址
url "http://119.147.214.11:8886/repository/summerframework-public/"
allowInsecureProtocol true
}
}
dependencies {
// 代码生成脚手架
classpath 'org.summerframework:summer-gradle-plugin:2.0.130'
}
} }
} }
...@@ -1691,6 +1691,30 @@ ...@@ -1691,6 +1691,30 @@
<DT arr="0" ds="DateTime" en="" id="700" ln="null" sc="null" sg="1" un="0"/> <DT arr="0" ds="DateTime" en="" id="700" ln="null" sc="null" sg="1" un="0"/>
<Cm>退款时间</Cm> <Cm>退款时间</Cm>
</Cl> </Cl>
<Cl au="0" df="" nm="REFUND_SUCCESS_TIME" nu="1">
<DT arr="0" ds="DateTime" en="" id="700" ln="null" sc="null" sg="1" un="0"/>
<Cm>退款成功时间</Cm>
</Cl>
<Cl au="0" df="" nm="REFUND_REMARK" nu="1">
<DT arr="0" ds="VarChar" en="" id="12" ln="1024" sc="null" sg="1" un="0"/>
<Cm>退款备注</Cm>
</Cl>
<Cl au="0" df="" nm="OUT_REFUND_NO" nu="1">
<DT arr="0" ds="Integer" en="" id="4" ln="null" sc="null" sg="1" un="0"/>
<Cm>微信退款订单号</Cm>
</Cl>
<Cl au="0" df="" nm="REFUND_TYPE" nu="1">
<DT arr="0" ds="Integer" en="" id="4" ln="null" sc="null" sg="1" un="0"/>
<Cm>退款类型</Cm>
</Cl>
<Cl au="0" df="" nm="REFUND_OPERATOR" nu="1">
<DT arr="0" ds="VarChar" en="" id="12" ln="64" sc="null" sg="1" un="0"/>
<Cm>退款操作人</Cm>
</Cl>
<Cl au="0" df="UNREFUND" nm="REFUND_STATE" nu="1">
<DT arr="0" ds="VarChar" en="" id="12" ln="32" sc="null" sg="1" un="0"/>
<Cm>退款状态</Cm>
</Cl>
<Fk deAc="1" nm="fk_deposit_account" prLkCl="ACCOUNT_ID" upAc="1"> <Fk deAc="1" nm="fk_deposit_account" prLkCl="ACCOUNT_ID" upAc="1">
<PrTb mn="0" nm="account" oe="1" sch="schemaA" zr="0"/> <PrTb mn="0" nm="account" oe="1" sch="schemaA" zr="0"/>
<CdTb mn="1" nm="deposit" oe="1" sch="schemaA" zr="1"/> <CdTb mn="1" nm="deposit" oe="1" sch="schemaA" zr="1"/>
...@@ -3509,7 +3533,7 @@ ...@@ -3509,7 +3533,7 @@
<TbGl bkCl="#6699ff64" h="418" sch="schemaA" tbl="withdraw" w="526" x="1136" y="787"/> <TbGl bkCl="#6699ff64" h="418" sch="schemaA" tbl="withdraw" w="526" x="1136" y="787"/>
<TbGl bkCl="#6699ff64" h="450" sch="schemaA" tbl="account" w="518" x="1131" y="181"/> <TbGl bkCl="#6699ff64" h="450" sch="schemaA" tbl="account" w="518" x="1131" y="181"/>
<TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="bank_account" w="436" x="657" y="866"/> <TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="bank_account" w="436" x="657" y="866"/>
<TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="deposit" w="527" x="169" y="116"/> <TbGl bkCl="#6699ff64" h="322" sch="schemaA" tbl="deposit" w="551" x="169" y="116"/>
<TbGl bkCl="#6699ff64" h="178" sch="schemaA" tbl="recharge" w="453" x="69" y="840"/> <TbGl bkCl="#6699ff64" h="178" sch="schemaA" tbl="recharge" w="453" x="69" y="840"/>
<TbGl bkCl="#6699ff64" h="274" sch="schemaA" tbl="user_info" w="393" x="858" y="1274"/> <TbGl bkCl="#6699ff64" h="274" sch="schemaA" tbl="user_info" w="393" x="858" y="1274"/>
<FkGl bearing="NORTH" bkCl="#00000064" childEdge="NORTH" childOffset="0" lineCount="1" midLineOffset="" nm="schemaA.withdraw.fk_withdraw_account" parentEdge="SOUTH" parentOffset="250"/> <FkGl bearing="NORTH" bkCl="#00000064" childEdge="NORTH" childOffset="0" lineCount="1" midLineOffset="" nm="schemaA.withdraw.fk_withdraw_account" parentEdge="SOUTH" parentOffset="250"/>
...@@ -3585,7 +3609,7 @@ ...@@ -3585,7 +3609,7 @@
<TbGl bkCl="#6699ff64" h="306" sch="schemaA" tbl="appeal" w="481" x="1431" y="2154"/> <TbGl bkCl="#6699ff64" h="306" sch="schemaA" tbl="appeal" w="481" x="1431" y="2154"/>
<TbGl bkCl="#6699ff64" h="162" sch="schemaA" tbl="bid" w="376" x="1754" y="1149"/> <TbGl bkCl="#6699ff64" h="162" sch="schemaA" tbl="bid" w="376" x="1754" y="1149"/>
<TbGl bkCl="#6699ff64" h="274" sch="schemaA" tbl="deposit_rule" w="516" x="0" y="201"/> <TbGl bkCl="#6699ff64" h="274" sch="schemaA" tbl="deposit_rule" w="516" x="0" y="201"/>
<TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="deposit" w="527" x="990" y="1845"/> <TbGl bkCl="#6699ff64" h="322" sch="schemaA" tbl="deposit" w="551" x="990" y="1845"/>
<TbGl bkCl="#6699ff64" h="98" sch="schemaA" tbl="vehicle_browser_history" w="362" x="799" y="2165"/> <TbGl bkCl="#6699ff64" h="98" sch="schemaA" tbl="vehicle_browser_history" w="362" x="799" y="2165"/>
<TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="auction_change" w="388" x="66" y="1292"/> <TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="auction_change" w="388" x="66" y="1292"/>
<TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="auction_vehicle_change" w="388" x="227" y="1883"/> <TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="auction_vehicle_change" w="388" x="227" y="1883"/>
......
...@@ -120,3 +120,21 @@ ALTER TABLE deposit ADD WXTRANSACTION_ID VARCHAR(64) ...@@ -120,3 +120,21 @@ ALTER TABLE deposit ADD WXTRANSACTION_ID VARCHAR(64)
ALTER TABLE deposit ADD REFUND_TIME DATETIME ALTER TABLE deposit ADD REFUND_TIME DATETIME
COMMENT '退款时间' NULL after WXTRANSACTION_ID; COMMENT '退款时间' NULL after WXTRANSACTION_ID;
ALTER TABLE deposit ADD REFUND_SUCCESS_TIME DATETIME
COMMENT '退款成功时间' NULL after REFUND_TIME;
ALTER TABLE deposit ADD REFUND_REMARK VARCHAR(1024)
COMMENT '退款备注' NULL after REFUND_SUCCESS_TIME;
ALTER TABLE deposit ADD OUT_REFUND_NO INTEGER
COMMENT '微信退款订单号' NULL after REFUND_REMARK;
ALTER TABLE deposit ADD REFUND_TYPE INTEGER
COMMENT '退款类型' NULL after OUT_REFUND_NO;
ALTER TABLE deposit ADD REFUND_OPERATOR VARCHAR(64)
COMMENT '退款操作人' NULL after REFUND_TYPE;
ALTER TABLE deposit ADD REFUND_STATE VARCHAR(32) DEFAULT 'UNREFUND'
COMMENT '退款状态' NULL after REFUND_OPERATOR;
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!