Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b2c621ce
authored
Jan 03, 2026
by
gonglei
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改保证金支付流程
1 parent
06b3fe05
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
519 additions
and
121 deletions
aus-admin/build.gradle
aus-admin/src/main/java/com/glsx/usedcar/export/DepositRefundBean.java
aus-admin/src/main/java/com/glsx/usedcar/export/converter/RefundStateConverter.java
aus-admin/src/main/java/com/glsx/usedcar/web/rest/finance/DepositController.java
aus-admin/src/main/resources/privileges.json
aus-api/build.gradle
aus-core/build.gradle
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AbstractAuctionService.java
aus-core/src/main/java/com/glsx/usedcar/module/finance/entity/Deposit.java
aus-core/src/main/java/com/glsx/usedcar/module/finance/service/DepositService.java
aus-core/src/main/java/com/glsx/usedcar/module/finance/service/TransactionService.java
aus-core/src/main/resources/messages.properties
aus-front/admin/src/api/DepositController.ts
aus-front/admin/src/assets/i18n/zh_CN/enum.ts
aus-front/admin/src/views/finance/deposit/DepositRefundModal.vue
aus-front/admin/src/views/finance/deposit/DepositRefundPage.vue
aus-front/lib/src/entity/business/domain/DarkBidPriceRange.ts
aus-front/lib/src/entity/finance/domain/DepositStat.ts
aus-front/lib/src/entity/finance/entity/Deposit.ts
aus-front/lib/src/entity/finance/entity/Transaction.ts
build.gradle
doc/aus.xml
doc/sql/update.sql
aus-admin/build.gradle
View file @
b2c621c
...
...
@@ -65,5 +65,11 @@ bootJar {
enabled
=
true
}
apply
plugin:
"org.summerframework.plugin"
apiTypescript
{
generatedDir
=
'/aus-front/admin/src/api/'
excludePath
=
'/rest/'
excludeController
"SecurityController"
}
aus-admin/src/main/java/com/glsx/usedcar/export/DepositRefundBean.java
0 → 100644
View file @
b2c621c
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
();
}
}
aus-admin/src/main/java/com/glsx/usedcar/export/converter/RefundStateConverter.java
0 → 100644
View file @
b2c621c
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
);
}
}
aus-admin/src/main/java/com/glsx/usedcar/web/rest/finance/DepositController.java
View file @
b2c621c
...
...
@@ -6,6 +6,7 @@ import com.github.binarywang.wxpay.bean.result.WxPayRefundV3Result;
import
com.github.binarywang.wxpay.exception.WxPayException
;
import
com.github.binarywang.wxpay.service.WxPayService
;
import
com.glsx.usedcar.export.DepositBean
;
import
com.glsx.usedcar.export.DepositRefundBean
;
import
com.glsx.usedcar.export.ExcelExporter
;
import
com.glsx.usedcar.export.WithdrawBean
;
import
com.glsx.usedcar.module.account.entity.Account
;
...
...
@@ -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.TransactionService
;
import
com.glsx.usedcar.module.finance.service.WithdrawService
;
import
com.glsx.usedcar.module.security.entity.User
;
import
jakarta.annotation.Resource
;
import
jakarta.persistence.criteria.*
;
import
jakarta.servlet.http.HttpServletResponse
;
...
...
@@ -27,6 +29,7 @@ import jakarta.validation.Valid;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.domain.Page
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.web.bind.annotation.*
;
import
org.summerframework.orm.paging.Pagination
;
...
...
@@ -194,6 +197,14 @@ public class DepositController {
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"
)
public
double
getFreezeAmountByAccount
(
@RequestParam
int
accountId
)
{
return
depositService
.
getFreezeAmountByAccount
(
accountId
);
...
...
@@ -205,12 +216,13 @@ public class DepositController {
* 详见 https://pay.weixin.qq.com/doc/v3/merchant/4012791862
* </pre>
*
* @param deposit
Id
请求对象
* @param deposit 请求对象
* @return 退款操作结果
*/
@PostMapping
(
"refund"
)
public
WxPayRefundV3Result
refund
(
@RequestParam
int
depositId
)
throws
WxPayException
{
Deposit
deposit
=
depositService
.
getDepositDetailById
(
depositId
);
return
transactionService
.
refund
(
deposit
);
public
Deposit
refund
(
@RequestBody
Deposit
deposit
,
Authentication
authentication
)
throws
WxPayException
{
User
user
=
(
User
)
authentication
.
getPrincipal
();
Deposit
depositDb
=
depositService
.
updateDepositRefundRemark
(
deposit
.
getDepositId
(),
deposit
.
getRefundRemark
(),
user
);
return
depositDb
;
}
}
\ No newline at end of file
aus-admin/src/main/resources/privileges.json
View file @
b2c621c
...
...
@@ -1461,7 +1461,18 @@
"enabled"
:
true
,
"value"
:
"/finance/deposit/refund"
,
"children"
:
[
{
"code"
:
"deposit_refund_1"
,
"name"
:
"导出数据"
,
"type"
:
"BUTTON"
,
"enabled"
:
true
},
{
"code"
:
"deposit_refund_2"
,
"name"
:
"手动退款"
,
"type"
:
"BUTTON"
,
"enabled"
:
true
}
]
},
{
...
...
aus-api/build.gradle
View file @
b2c621c
...
...
@@ -73,5 +73,12 @@ bootJar {
enabled
=
true
}
apply
plugin:
"org.summerframework.plugin"
apiTypescript
{
generatedDir
=
'/aus-front/app/src/api/'
excludePath
=
'/api/'
excludeController
"SecurityController"
}
aus-core/build.gradle
View file @
b2c621c
...
...
@@ -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'
}
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AbstractAuctionService.java
View file @
b2c621c
...
...
@@ -86,7 +86,7 @@ public abstract class AbstractAuctionService {
// 解冻保证金
if
(
deposit
.
getDepositState
()
==
Deposit
.
DepositState
.
FREEZE
)
{
try
{
refund
(
deposit
);
refund
(
deposit
,
"自动退款"
);
}
catch
(
WxPayException
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -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
()))
{
throw
new
WxPayException
(
"退款订单号为空,此订单未支付,不能进行退款操作"
);
}
...
...
@@ -117,7 +117,12 @@ public abstract class AbstractAuctionService {
request
.
setOutRefundNo
(
deposit
.
getOutTradeNo
());
request
.
setTransactionId
(
deposit
.
getTransactionId
());
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
;
}
/**
...
...
aus-core/src/main/java/com/glsx/usedcar/module/finance/entity/Deposit.java
View file @
b2c621c
...
...
@@ -69,6 +69,9 @@ public class Deposit extends AuditingTimeEntity {
@Column
(
nullable
=
false
)
private
double
amount
;
/**
* 商户订单号
*/
@Column
(
unique
=
true
,
nullable
=
false
)
private
String
outTradeNo
;
...
...
@@ -81,6 +84,12 @@ public class Deposit extends AuditingTimeEntity {
@Column
private
LocalDateTime
refundTime
;
/**
* 退款成功时间
*/
@Column
private
LocalDateTime
refundSuccessTime
;
// /**
// * 退款渠道
// */
...
...
@@ -100,6 +109,31 @@ public class Deposit extends AuditingTimeEntity {
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
...
...
@@ -124,10 +158,28 @@ public class Deposit extends AuditingTimeEntity {
UNFREEZE
;
}
public
enum
RefundState
{
/**
* 未退款
*/
UNREFUND
,
/**
* 退款中
*/
REFUNDING
,
/**
* 已退款
*/
REFUNDED
,
}
public
Deposit
(
Account
account
,
AuctionVehicle
auctionVehicle
,
Transaction
transaction
)
{
this
.
account
=
account
;
this
.
auctionVehicle
=
auctionVehicle
;
this
.
transaction
=
transaction
;
this
.
depositState
=
DepositState
.
FREEZE
;
this
.
refundState
=
RefundState
.
UNREFUND
;
}
}
aus-core/src/main/java/com/glsx/usedcar/module/finance/service/DepositService.java
View file @
b2c621c
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.entity.Account
;
import
com.glsx.usedcar.module.auction.dao.AuctionVehicleDao
;
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.DepositRuleDao
;
import
com.glsx.usedcar.module.finance.dao.TransactionDao
;
...
...
@@ -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.Transaction
;
import
com.glsx.usedcar.module.meta.AuditState
;
import
com.glsx.usedcar.module.security.entity.User
;
import
com.glsx.usedcar.util.CoderGenerator
;
import
jakarta.annotation.Resource
;
import
org.hibernate.ObjectNotFoundException
;
...
...
@@ -36,7 +39,7 @@ import java.util.Optional;
*/
@Service
@Transactional
(
propagation
=
Propagation
.
SUPPORTS
,
readOnly
=
true
)
public
class
DepositService
{
public
class
DepositService
extends
AbstractAuctionService
{
@Resource
private
DepositRuleDao
depositRuleDao
;
...
...
@@ -66,6 +69,15 @@ public class DepositService {
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 {
Deposit
deposit
=
depositDao
.
findByAccountAndAuctionVehicle
(
account
,
auctionVehicle
);
if
(
Objects
.
nonNull
(
deposit
))
{
if
(!
StringUtils
.
hasText
(
deposit
.
getOutTradeNo
()))
{
if
(!
StringUtils
.
hasText
(
deposit
.
getOutTradeNo
()))
{
// 修补历史数据
deposit
.
setOutTradeNo
(
CoderGenerator
.
generateCode
(
8
));
}
...
...
@@ -188,14 +200,14 @@ public class DepositService {
return
depositRuleDao
.
findAll
();
}
public
Deposit
getDepositByTransaction
(
Transaction
transaction
)
{
public
Deposit
getDepositByTransaction
(
Transaction
transaction
)
{
return
depositDao
.
findTopByTransaction
(
transaction
);
}
public
DepositStat
getDepositStat
()
{
DepositStat
depositStat
=
new
DepositStat
();
// 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
>
freezeAmount
=
depositDao
.
sumByDepositState
(
Deposit
.
DepositState
.
FREEZE
);
depositStat
.
setTotalAmount
(
Math
.
abs
(
totalAmount
.
orElse
(
0.0
)));
...
...
aus-core/src/main/java/com/glsx/usedcar/module/finance/service/TransactionService.java
View file @
b2c621c
...
...
@@ -306,7 +306,8 @@ public class TransactionService extends AbstractAuctionService {
Deposit
deposit
=
depositOptional
.
get
();
if
(
deposit
.
getDepositState
()
==
Deposit
.
DepositState
.
FREEZE
)
{
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
();
Transaction
transaction
=
new
Transaction
(
account
,
"保证金退款"
,
Transaction
.
TransactionType
.
UNFREEZE
,
deposit
.
getAmount
(),
account
.
getSurplus
());
transaction
.
setDeposit
(
deposit
);
...
...
aus-core/src/main/resources/messages.properties
View file @
b2c621c
...
...
@@ -57,4 +57,7 @@ Account.CertifiedState.CERTIFY_FAILED=\u8BA4\u8BC1\u5931\u8D25
Account.CertifiedState.CERTIFIED
=
\u
8BA4
\u
8BC1
\u6210\u
529F
Account.AccountType.COMMON
=
\u
672A
\u
8BA4
\u
8BC1
\u7528\u6237
Account.AccountType.PERSON
=
\u
4E2A
\u
4EBA
\u7528\u6237
Account.AccountType.COMPANY
=
\u
8F66
\u5546\u7528\u6237
"
Account.AccountType.COMPANY
=
\u
8F66
\u5546\u7528\u6237
Deposit.RefundState.UNREFUND
=
\u
672A
\u9000\u
6B3E
Deposit.RefundState.REFUNDING
=
\u9000\u
6B3E
\u
4E2D
Deposit.RefundState.REFUNDED
=
\u
5DF2
\u9000\u
6B3E
aus-front/admin/src/api/DepositController.ts
View file @
b2c621c
...
...
@@ -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
*/
...
...
@@ -119,11 +125,11 @@ export class DepositController{
微信支付-申请退款
详见 https://pay.weixin.qq.com/doc/v3/merchant/4012791862
</pre>
* @param deposit
Id
请求对象
* @param deposit 请求对象
* @return 退款操作结果
*/
static
refund
(
axios
:
AxiosStatic
,
deposit
Id
:
number
):
Promise
<
AxiosResponse
<
WxPayRefundV3Resul
t
>>
{
return
axios
.
post
(
'depositRule/refund'
,
null
,
{
params
:
{
depositId
:
depositId
}}
);
static
refund
(
axios
:
AxiosStatic
,
deposit
:
any
):
Promise
<
AxiosResponse
<
Deposi
t
>>
{
return
axios
.
post
(
'depositRule/refund'
,
deposit
);
}
/**
...
...
aus-front/admin/src/assets/i18n/zh_CN/enum.ts
View file @
b2c621c
...
...
@@ -192,6 +192,11 @@ export default {
"depositState"
:
{
"FREEZE"
:
"冻结中"
,
"UNFREEZE"
:
"已解冻"
},
"refundState"
:
{
"UNREFUND"
:
"未退款"
,
"REFUNDING"
:
"退款中"
,
"REFUNDED"
:
"已退款"
}
},
"depositRule"
:
{
...
...
aus-front/admin/src/views/finance/deposit/DepositRefundModal.vue
View file @
b2c621c
<
template
>
<a-alert
show-icon
type=
"warning"
message=
"请仔细核对以下退款信息"
description=
"退款操作不可撤销,资金将原路退回用户微信账户,请谨慎操作"
></a-alert>
<a-descriptions
:column=
"2"
>
<a-descriptions-item
label=
"微信支付订单号"
>
{{
deposit
.
transaction
}}
</a-descriptions-item>
<a-descriptions-item
label=
"商户订单号"
></a-descriptions-item>
<a-descriptions-item
label=
"用户信息"
></a-descriptions-item>
<a-descriptions-item
label=
"支付金额"
></a-descriptions-item>
<a-descriptions-item
label=
"退款金额"
></a-descriptions-item>
<a-descriptions
:column=
"2"
class=
"mt-16"
>
<a-descriptions-item
label=
"微信支付订单号"
>
{{
deposit
.
transaction
Id
}}
</a-descriptions-item>
<a-descriptions-item
label=
"商户订单号"
>
{{
deposit
.
outTradeNo
}}
</a-descriptions-item>
<a-descriptions-item
label=
"用户信息"
>
{{
deposit
.
account
.
mobile
}}
{{
deposit
.
account
.
accountName
}}
</a-descriptions-item>
<a-descriptions-item
label=
"支付金额"
>
¥
{{
-
deposit
.
transaction
.
amount
}}
</a-descriptions-item>
<a-descriptions-item
label=
"退款金额"
>
¥
{{
deposit
.
amount
}}
</a-descriptions-item>
</a-descriptions>
<a-spin
:spinning=
"submitted"
>
<a-form
v-if=
"formState"
:model=
"formState"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
ref=
"formRef"
>
<a-form-item
label=
"启用状态"
name=
"enabled"
>
<a-switch
v-model:checked=
"formState.enabled"
checked-children=
"开"
un-checked-children=
"关"
/>
</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
label=
"退款备注"
name=
"refundRemark"
:rules=
"[
{ required: true, message: '请输入退款备注!' },{ min: 5,message: '至少5个字符!'},{ max: 250,message: '备注不能超过250个字符!'}]">
<a-textarea
v-model:value=
"formState.refundRemark"
rows=
"6"
placeholder=
"请输入退款原因,例如:用户申请取消参拍、系统错误重复扣款等"
/>
<a-typography-text
type=
"secondary"
>
请详细说明退款原因,此信息将用于财务审计
</a-typography-text>
</a-form-item>
<a-form-item
label=
"账户管理人联系方式"
>
{{
userMobile
}}
<!--
<a-input
:value=
"userMobile"
disabled
placeholder=
"请选择账户管理人"
:maxlength=
"11"
/>
-->
<a-form-item
label=
" "
:colon=
"false"
>
<a-typography
style=
"background-color: #f9f9f9;padding: 16px;border-radius: 8px"
>
<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>
</a-spin>
...
...
@@ -49,15 +60,17 @@ export default class DepositRefundModal extends FormComponent<Deposit> {
onValidSuccess
(
formValue
:
Deposit
):
void
{
const
that
=
this
;
formValue
.
depositId
=
this
.
deposit
.
depositId
;
Modal
.
confirm
({
title
:
'提示'
,
icon
:
createVNode
(
ExclamationCircleOutlined
),
content
:
`当前保证金冻结金额为 ¥
${
-
this
.
deposit
.
transaction
.
amount
}
,退款金额为 ¥
${
this
.
deposit
.
amount
}
,您确定将此保证金退款吗?`
,
onOk
:
()
=>
{
DepositController
.
refund
(
that
.
axios
,
that
.
deposit
.
depositId
).
then
(
response
=>
{
this
.
submitted
=
true
;
DepositController
.
refund
(
that
.
axios
,
formValue
).
then
(
response
=>
{
message
.
success
(
'退款操作成功,请等待支付平台回调,大约10秒左右退款到账。'
);
this
.
$emit
(
'handleOk'
,
response
.
data
);
});
})
.
finally
(()
=>
this
.
submitted
=
false
)
;
},
onCancel
()
{
console
.
log
(
'Cancel'
);
...
...
aus-front/admin/src/views/finance/deposit/DepositRefundPage.vue
View file @
b2c621c
...
...
@@ -24,7 +24,7 @@
<!--查询栏-->
<m-pagination-query-render
:fields=
"pagination.filterFields"
:form=
"pagination.queryForm"
@
onSearch=
"pageReload"
@
onReset=
"pageReset"
:simpleFieldNum=
"4"
/>
<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>
</div>
...
...
@@ -49,9 +49,9 @@
<!--
<router-link
v-sec=
"'deposit_11'"
:to=
"
{ path:'/auction/view',query:{auctionId: record.auctionVehicle.auction.auctionId}}">-->
<!--
<a-button
type=
"link"
size=
"small"
>
场次详情
</a-button>
-->
<!--
</router-link>
-->
<!--
<template
v-if=
"record.depositState==='FREEZE'&&(record.auctionOrder)"
>
--
>
<a-button
type=
"link"
size=
"small"
@
click=
"confirmRefund(record)"
>
手动退款
</a-button>
<!--
</
template
>
--
>
<template
v-if=
"record.depositState==='FREEZE'&&(record.auctionOrder)"
>
<a-button
v-sec=
"'deposit_refund_2'"
type=
"link"
size=
"small"
@
click=
"confirmRefund(record)"
>
手动退款
</a-button>
</
template
>
</template>
<
template
v-if=
"column.key === 'transactionType'"
>
{{
$t
(
'enum.transaction.transactionType.'
+
record
.
transaction
.
transactionType
)
}}
...
...
@@ -63,9 +63,10 @@
<
template
v-if=
"column.key === 'orderState'"
>
<auction-order-state-tag
v-if=
"record.auctionOrder"
:order-state=
"record.auctionOrder.orderState"
></auction-order-state-tag>
</
template
>
<
template
v-if=
"column.key === 'isRefund'"
>
<a-tag
v-if=
"record.refundTime"
color=
"red"
>
是
</a-tag>
<a-tag
v-else
color=
"green"
>
否
</a-tag>
<
template
v-if=
"column.key === 'refundState'"
>
<a-tag
v-if=
"record.refundState==='REFUNDED'"
color=
"red"
>
已退款
</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>
...
...
@@ -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
:
'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
,
customRender
:
({
text
,
record
,
index
,
column
})
=>
{
...
...
@@ -178,10 +179,10 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> {
outTradeNo
:
[
null
,
{
label
:
'商户订单号'
,
field
:
'outTradeNo'
,
operator
:
Operator
.
like
}],
transactionId
:
[
null
,
{
label
:
'微信支付订单号'
,
field
:
'transactionId'
,
operator
:
Operator
.
like
}],
refundTime
:
[
null
,
{
label
:
'是否退款'
,
field
:
'refund
Tim
e'
,
type
:
'select'
,
allowClear
:
true
,
optionItems
:
[
{
label
:
'
是'
,
value
:
'FREEZE
'
},
{
label
:
'
否'
,
value
:
'UNFREEZE
'
}
],
operator
:
Operator
.
isNull
label
:
'是否退款'
,
field
:
'refund
Stat
e'
,
type
:
'select'
,
allowClear
:
true
,
optionItems
:
[
{
label
:
'
未退款'
,
value
:
'UNREFUND
'
},
{
label
:
'
已退款'
,
value
:
'REFUNDED
'
}
],
operator
:
Operator
.
eq
}],
// depositState: [null, {
// label: '交易状态', field: 'depositState', type: 'select', allowClear: true, optionItems: [
...
...
@@ -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'}],
});
// this.pagination.addDefaultFilter('paymentTime',null,Operator.isNotNull);
this
.
pagination
.
setDefaultSort
(
'
create
Time'
,
Order
.
desc
);
this
.
pagination
.
setDefaultSort
(
'
payment
Time'
,
Order
.
desc
);
this
.
pageLoad
();
DepositController
.
getDepositStat
(
this
.
axios
).
then
(
response
=>
{
this
.
depositStat
=
response
.
data
;
...
...
@@ -209,7 +210,7 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> {
downloadExcel
():
void
{
this
.
exporting
=
true
;
DepositController
.
exportDeposit
(
this
.
axios
,
this
.
pagination
.
requestParams
,
{
responseType
:
'blob'
}).
then
(
response
=>
{
DepositController
.
exportDeposit
Refund
(
this
.
axios
,
this
.
pagination
.
requestParams
,
{
responseType
:
'blob'
}).
then
(
response
=>
{
message
.
success
(
'导出任务已创建,请稍后在浏览器下载列表中查看'
);
ExportUtil
.
downloadExcelFile
(
response
.
data
,
'保证金列表'
);
}).
catch
(
error
=>
{
...
...
@@ -220,28 +221,13 @@ export default class DepositRefundPage extends PaginationComponent<Deposit> {
}
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
({
title
:
'手动退款确认'
,
component
:
DepositRefundModal
,
closable
:
true
,
appContext
:
this
.
$
.
appContext
,
props
:
{
deposit
:
deposit
},
onOk
:
(
component
):
void
=>
{
modal
.
destroy
();
component
.
submitForm
();
},
emits
:
{
handleOk
:
(
e
)
=>
{
...
...
aus-front/lib/src/entity/business/domain/DarkBidPriceRange.ts
View file @
b2c621c
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'
;
// region 前端扩展导入包
// endregion
/**
*/
/**
*/
export
class
DarkBidPriceRange
{
/**
* 加价最小单位
*/
* 加价最小单位
*/
increase
:
number
;
/**
* 估值上限规则表
*/
* 估值上限规则表
*/
priceRanges
:
DarkPriceRange
[];
// region 前端扩展定义属性及方法区
...
...
aus-front/lib/src/entity/finance/domain/DepositStat.ts
View file @
b2c621c
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 前端扩展导入包
// endregion
/**
*/
/**
*/
export
class
DepositStat
{
/**
* 总金额
*/
* 总金额
*/
totalAmount
:
number
;
/**
* 可用金额
*/
* 可用金额
*/
depositAmount
:
number
;
/**
* 冻结金额
*/
* 冻结金额
*/
freezeAmount
:
number
;
/**
* 待审核提现金额
*/
* 待审核提现金额
*/
unauditedWithdrawAmount
:
number
;
// region 前端扩展定义属性及方法区
...
...
aus-front/lib/src/entity/finance/entity/Deposit.ts
View file @
b2c621c
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
{
Account
}
from
'../../account/entity/Account'
;
import
{
Transaction
}
from
'./Transaction'
;
import
{
AuctionOrder
}
from
"../../auction/entity/AuctionOrder"
;
import
{
AuctionOrder
}
from
'../../auction/entity/AuctionOrder'
;
// region 前端扩展导入包
// endregion
/**
*/
/**
*/
export
class
Deposit
extends
AuditingTimeEntity
{
/**
*/
*/
depositId
:
number
;
/**
* ACCOUNT_ID
*/
* ACCOUNT_ID
*/
account
:
Account
;
/**
* 参拍车辆
*/
* 参拍车辆
*/
auctionVehicle
:
AuctionVehicle
;
/**
* 账户交易
*/
* 账户交易
*/
transaction
:
Transaction
;
/**
* 订单号(生成订单后赋值)
*/
* 订单号(生成订单后赋值)
*/
orderCode
:
string
;
/**
* 保证金金额
*/
* 保证金金额
*/
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
;
auctionOrder
:
AuctionOrder
;
/**
* 退款时间
*/
refundTime
:
string
;
refundRemark
:
string
;
* 关联的订单
*/
auctionOrder
:
AuctionOrder
;
// region 前端扩展定义属性及方法区
// endregion
}
/**
* FREEZE 冻结中
* UNFREEZE 已解冻
*/
export
type
Deposit_DepositState
=
'FREEZE'
|
'UNFREEZE'
;
export
const
DEPOSIT_DEPOSIT_STATES
=
[
'FREEZE'
,
'UNFREEZE'
];
/**
* UNREFUND 未退款
* REFUNDING 退款中
* REFUNDED 已退款
*/
export
type
Deposit_RefundState
=
'UNREFUND'
|
'REFUNDING'
|
'REFUNDED'
;
export
const
DEPOSIT_REFUND_STATES
=
[
'UNREFUND'
,
'REFUNDING'
,
'REFUNDED'
];
/**
* FREEZE 冻结中
* UNFREEZE 已解冻
*/
export
type
Deposit_DepositState
=
'FREEZE'
|
'UNFREEZE'
;
export
const
DEPOSIT_DEPOSIT_STATES
=
[
'FREEZE'
,
'UNFREEZE'
];
aus-front/lib/src/entity/finance/entity/Transaction.ts
View file @
b2c621c
import
{
Dayjs
}
from
'dayjs'
;
import
{
AuditingEntity
,
AuditingTimeEntity
}
from
'autumn-vue/lib/core/orm/AuditingEntity'
;
import
{
Account
}
from
'../../account/entity/Account'
;
import
{
Deposit
}
from
"./Deposit"
;
import
{
Deposit
}
from
'./Deposit'
;
// region 前端扩展导入包
// endregion
...
...
@@ -37,8 +37,11 @@ export class Transaction extends AuditingTimeEntity {
* 余额
*/
surplus
:
number
;
/**
* 关联的保证金信息
*/
deposit
:
Deposit
;
deposit
:
Deposit
;
// region 前端扩展定义属性及方法区
// endregion
}
...
...
build.gradle
View file @
b2c621c
...
...
@@ -41,6 +41,16 @@ subprojects {
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'
}
}
}
doc/aus.xml
View file @
b2c621c
...
...
@@ -1691,6 +1691,30 @@
<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_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"
>
<PrTb
mn=
"0"
nm=
"account"
oe=
"1"
sch=
"schemaA"
zr=
"0"
/>
<CdTb
mn=
"1"
nm=
"deposit"
oe=
"1"
sch=
"schemaA"
zr=
"1"
/>
...
...
@@ -3509,7 +3533,7 @@
<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=
"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=
"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"
/>
...
...
@@ -3585,7 +3609,7 @@
<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=
"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=
"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"
/>
...
...
doc/sql/update.sql
View file @
b2c621c
...
...
@@ -119,4 +119,22 @@ ALTER TABLE deposit ADD WXTRANSACTION_ID VARCHAR(64)
COMMENT
'微信支付TRANSACTION_ID'
NULL
after
PAYMENT_TIME
;
ALTER
TABLE
deposit
ADD
REFUND_TIME
DATETIME
COMMENT
'退款时间'
NULL
after
WXTRANSACTION_ID
;
\ No newline at end of file
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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment