Commit b4b43ce0 by gonglei

加入框架代码

1 parent cf0cae88
......@@ -79,10 +79,16 @@ public class Withdraw extends AuditingEntity implements Serializable {
/**
* 审核时间
*/
@Column(nullable = false)
@Column
private LocalDateTime auditTime;
/**
* 审核人
*/
@Column
private String auditor;
/**
* 收款账户
*/
......@@ -178,22 +184,5 @@ public class Withdraw extends AuditingEntity implements Serializable {
@Column
private String transferRemark;
// /**
// * 【微信支付】转账单号
// */
// @Column
// private String packageInfo;
public void setPayResult(TransferBillsGetResult result) {
double paymentAmount = Long.parseLong(result.getTransferAmount()) * 0.0 / 100;
LocalDateTime transferTime = DateTimeUtils.attemptParseLocalDateTime(result.getUpdateTime());
// this.transferBillNo = result.getTransferBillNo();
// this.state = result.getState();
// this.failReason = result.getFailReason();
// this.transferName = result.getUserName();
// this.paymentAmount = paymentAmount;
this.transferTime = transferTime;
this.transferRemark = result.getTransferRemark();
}
}
\ No newline at end of file
......@@ -174,6 +174,7 @@ public class WithdrawService {
}
withdraw.setRejectReason(approveHistory.getRejectReason());
withdraw.setAuditTime(LocalDateTime.now());
withdraw.setAuditor(approveHistory.getUser().getUserName());
withdraw.setAuditState(approveHistory.getApproveResult());
withdraw.setAuditRemark(approveHistory.getRemark());
approveHistory.setApproveType(ApproveHistory.ApproveType.WITHDRAW);
......
......@@ -11,7 +11,11 @@
</a-radio-button>
</a-radio-group>
</div>
<a-list :grid="{ gutter: 16, xs: 1, sm: 2, md: 2, lg: 3, xl: 3, xxl: 3 }" :loading="loading" :data-source="contents" :pagination="pageState">
<a-list :grid="{ gutter: 16, xs: 1, sm: 2, md: 2, lg: 3, xl: 3, xxl: 3 }" :loading="loading" :data-source="contents">
<template #footer>
<a-pagination style="float: right" v-model:current="pagination.pageIndex" :total="pagination.totalElements" @change="pageChange" v-model:page-size="pagination.pageSize"
:show-total="showTotal"/>
</template>
<template #renderItem="{ item }">
<a-list-item style="padding-bottom: 0;margin-bottom:4px">
<a-card class="control-card" size="default" :bordered="false">
......@@ -283,6 +287,28 @@ export default class AuctionControlPage extends PaginationComponent<AuctionContr
percentFormat(item, percent, successPercent) {
return `${percent.toFixed(2)}%(${successPercent.toFixed(2)}%)`
}
showTotal(total, range) {
return this.$t('common.page_state', {start: range[0], end: range[1], total: total});
}
/**
* 当前分页状态
*/
// get listPageState(): unknown {
// return {
// current: this.pagination.pageIndex,
// pageSize: this.pagination.pageSize,
// total: this.pagination.totalElements,
// showSizeChanger: true,
// pageSizeOptions: ['10', '20', '30', '50', '100'],
// showQuickJumper: true,
// // @ts-ignore
// showTotal: (total, range) => this.$t('common.page_state', {start: range[0], end: range[1], total: total}),
// // change: (page: number, pageSize: number) => this.pageChange(page, pageSize),
// change: this.pageChange
// };
// }
}
</script>
......
......@@ -56,8 +56,8 @@
<template v-if="column.key === 'state'">
<transfer-state-tag :state="record.state"></transfer-state-tag>
</template>
<template v-if="column.key === 'updateBy'">
<user-real-name :user-name="record.updateBy"></user-real-name>
<template v-if="column.key === 'auditor'">
<user-real-name :user-name="record.auditor"></user-real-name>
</template>
<template v-if="column.key === 'frozenDeposit'">
<a-button type="link" size="small" @click="showDeposit(record)">¥{{ record.account.frozenDeposit }}</a-button>
......@@ -163,7 +163,7 @@ export default class WithdrawPage extends PaginationComponent<Withdraw> {
}
},
{title: '申请时间', dataIndex: 'createTime', key: 'createTime', align: 'center', width: 170, resizable: true, ellipsis: true, sorter: true},
{title: '审核人', dataIndex: 'updateBy', key: 'updateBy', width: 120, resizable: true, ellipsis: true, sorter: true},
{title: '审核人', dataIndex: 'auditor', key: 'auditor', width: 120, resizable: true, ellipsis: true, sorter: true},
{title: '审核时间', dataIndex: 'auditTime', key: 'auditTime', align: 'center', width: 170, resizable: true, ellipsis: true, sorter: true},
{
......
......@@ -34,6 +34,10 @@ export class Withdraw extends AuditingEntity {
*/
auditTime: Dayjs | string;
/**
* 审核人
*/
auditor: string;
/**
* 收款账户
*/
bankAccount: string;
......@@ -50,42 +54,9 @@ export class Withdraw extends AuditingEntity {
*/
rejectReason: string;
/**
* 付款单号
*/
transferBillNo: string;
/**
* 【单据状态】
可选取值
ACCEPTED: 转账已受理
PROCESSING: 转账处理中,转账结果尚未明确,如一直处于此状态,建议检查账户余额是否足够
WAIT_USER_CONFIRM: 待收款用户确认,可拉起微信收款确认页面进行收款确认
TRANSFERING: 转账结果尚未明确,可拉起微信收款确认页面再次重试确认收款
SUCCESS: 转账成功
FAIL: 转账失败
CANCELING: 商户撤销请求受理成功,该笔转账正在撤销中
CANCELLED: 转账撤销完成
*/
state: string;
/**
* 失败原因
*/
failReason: string;
/**
* 收款用户姓名
* 已退款金额
*/
transferName: string;
/**
* 付款金额
*/
paymentAmount: number;
/**
* 用户确认时间
*/
confirmTime: Dayjs | string;
/**
* 发起付款时间
*/
paymentTime: Dayjs | string;
refundAmount: number;
/**
* 转账成功时间
*/
......@@ -94,10 +65,6 @@ CANCELLED: 转账撤销完成
* 付款备注
*/
transferRemark: string;
/**
* 【微信支付】转账单号
*/
packageInfo: string;
// region 前端扩展定义属性及方法区
static stateLabel(state: string): string {
......
......@@ -3511,6 +3511,10 @@
<DT arr="0" ds="Decimal" en="" id="3" ln="16" sc="2" sg="1" un="0"/>
<Cm>已退款金额</Cm>
</Cl>
<Cl au="0" df="" nm="AUDITOR" 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_withdraw_account" prLkCl="ACCOUNT_ID" upAc="1">
<PrTb mn="0" nm="account" oe="1" sch="schemaA" zr="0"/>
<CdTb mn="1" nm="withdraw" oe="1" sch="schemaA" zr="1"/>
......
......@@ -211,4 +211,7 @@ ALTER TABLE recharge ADD REFUNDABLE_AMOUNT DECIMAL(16, 2) DEFAULT 0
update recharge set REFUNDABLE_AMOUNT= AMOUNT where PAYMENT_TIME is not null;
ALTER TABLE withdraw ADD REFUND_AMOUNT DECIMAL(16, 2) DEFAULT 0
COMMENT '已退款金额' NOT NULL after REJECT_REASON;
\ No newline at end of file
COMMENT '已退款金额' NOT NULL after REJECT_REASON;
ALTER TABLE withdraw ADD AUDITOR VARCHAR(32)
COMMENT '审核人' NULL after REFUND_AMOUNT;
\ 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!