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 35ccdd60
authored
Jan 14, 2026
by
gonglei
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
加入框架代码
1 parent
ebd4bdc4
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
160 additions
and
53 deletions
aus-admin/src/main/java/com/glsx/usedcar/export/AppealBean.java
aus-admin/src/main/java/com/glsx/usedcar/export/AuctionOrderBean.java
aus-admin/src/main/java/com/glsx/usedcar/export/DeliveryOrderBean.java
aus-admin/src/main/java/com/glsx/usedcar/export/OrderTransactionBean.java
aus-admin/src/main/java/com/glsx/usedcar/web/rest/AppealController.java
aus-admin/src/main/java/com/glsx/usedcar/web/rest/auction/AuctionOrderController.java
aus-admin/src/main/java/com/glsx/usedcar/web/rest/order/DeliveryOrderController.java
aus-admin/src/main/java/com/glsx/usedcar/export/AppealBean.java
View file @
35ccdd6
...
@@ -22,6 +22,7 @@ import org.summerframework.orm.validator.UpdateValidGroup;
...
@@ -22,6 +22,7 @@ import org.summerframework.orm.validator.UpdateValidGroup;
import
org.summerframework.storage.converter.FileInfosConverter
;
import
org.summerframework.storage.converter.FileInfosConverter
;
import
org.summerframework.storage.domain.FileInfo
;
import
org.summerframework.storage.domain.FileInfo
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Objects
;
...
@@ -45,7 +46,8 @@ public class AppealBean {
...
@@ -45,7 +46,8 @@ public class AppealBean {
@ExcelProperty
(
"关联订单编号"
)
@ExcelProperty
(
"关联订单编号"
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
String
orderCode
;
private
String
orderCode
;
@ExcelProperty
(
"车源号(平台唯一识别编号)"
)
private
String
sourceNo
;
@ExcelProperty
(
"车系名字"
)
@ExcelProperty
(
"车系名字"
)
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
private
String
carSeriesName
;
private
String
carSeriesName
;
...
@@ -54,11 +56,20 @@ public class AppealBean {
...
@@ -54,11 +56,20 @@ public class AppealBean {
@ColumnWidth
(
30
)
@ColumnWidth
(
30
)
private
String
carTypeName
;
private
String
carTypeName
;
@ExcelProperty
(
"用户名"
)
@ExcelProperty
(
"车架号"
)
private
String
vin
;
@ExcelProperty
(
"车牌号"
)
private
String
licensePlate
;
@ExcelProperty
(
"所属门店"
)
@ColumnWidth
(
30
)
private
String
venueName
;
@ExcelProperty
(
"付款方姓名"
)
private
String
accountName
;
private
String
accountName
;
@ExcelProperty
(
"手机号"
)
@ExcelProperty
(
"
付款方
手机号"
)
private
String
mobile
;
private
String
mobile
;
@ExcelProperty
(
value
=
"申诉原因"
,
converter
=
DictionConverter
.
class
)
@ExcelProperty
(
value
=
"申诉原因"
,
converter
=
DictionConverter
.
class
)
...
@@ -68,7 +79,9 @@ public class AppealBean {
...
@@ -68,7 +79,9 @@ public class AppealBean {
@ExcelProperty
(
"补充描述"
)
@ExcelProperty
(
"补充描述"
)
@ColumnWidth
(
30
)
@ColumnWidth
(
30
)
private
String
appealContent
;
private
String
appealContent
;
@ExcelProperty
(
"申诉时间"
)
@ColumnWidth
(
16
)
private
LocalDateTime
createTime
;
/**
/**
* 附件
* 附件
...
@@ -77,7 +90,7 @@ public class AppealBean {
...
@@ -77,7 +90,7 @@ public class AppealBean {
private
List
<
FileInfo
>
attachments
;
private
List
<
FileInfo
>
attachments
;
@ExcelProperty
(
value
=
"
申诉
状态"
,
converter
=
AppealStateConverter
.
class
)
@ExcelProperty
(
value
=
"
工单
状态"
,
converter
=
AppealStateConverter
.
class
)
private
Appeal
.
AppealState
appealState
;
private
Appeal
.
AppealState
appealState
;
...
@@ -124,6 +137,12 @@ public class AppealBean {
...
@@ -124,6 +137,12 @@ public class AppealBean {
this
.
solution
=
appeal
.
getSolution
();
this
.
solution
=
appeal
.
getSolution
();
this
.
solutionDesc
=
appeal
.
getSolutionDesc
();
this
.
solutionDesc
=
appeal
.
getSolutionDesc
();
this
.
compensationAmount
=
appeal
.
getCompensationAmount
();
this
.
compensationAmount
=
appeal
.
getCompensationAmount
();
this
.
sourceNo
=
vehicle
.
getBaseInfo
().
getSourceNo
();
this
.
vin
=
vehicle
.
getBaseInfo
().
getVin
();
this
.
licensePlate
=
vehicle
.
getBaseInfo
().
getLicensePlate
();
this
.
venueName
=
vehicle
.
getVenue
().
getVenueName
();
this
.
createTime
=
appeal
.
getCreateTime
();
}
}
...
...
aus-admin/src/main/java/com/glsx/usedcar/export/AuctionOrderBean.java
View file @
35ccdd6
...
@@ -44,11 +44,11 @@ public class AuctionOrderBean {
...
@@ -44,11 +44,11 @@ public class AuctionOrderBean {
private
String
auctionName
;
private
String
auctionName
;
@ExcelProperty
(
"
用户
名"
)
@ExcelProperty
(
"
中拍人姓
名"
)
private
String
accountName
;
private
String
accountName
;
@ExcelProperty
(
"
手机号
"
)
@ExcelProperty
(
"
中拍人电话
"
)
private
String
mobile
;
private
String
mobile
;
@ExcelProperty
(
"车源号"
)
@ExcelProperty
(
"车源号"
)
...
@@ -63,8 +63,13 @@ public class AuctionOrderBean {
...
@@ -63,8 +63,13 @@ public class AuctionOrderBean {
@ColumnWidth
(
30
)
@ColumnWidth
(
30
)
private
String
carTypeName
;
private
String
carTypeName
;
@ExcelProperty
(
"新车牌号"
)
@ExcelProperty
(
"车牌号"
)
private
String
newPlateNumber
;
private
String
licensePlate
;
@ExcelProperty
(
"所属门店"
)
@ColumnWidth
(
30
)
private
String
venueName
;
@ExcelIgnore
@ExcelIgnore
@ExcelProperty
(
"机动车登记证书"
)
@ExcelProperty
(
"机动车登记证书"
)
private
List
<
FileInfo
>
registrationCertificate
;
private
List
<
FileInfo
>
registrationCertificate
;
...
@@ -81,6 +86,10 @@ public class AuctionOrderBean {
...
@@ -81,6 +86,10 @@ public class AuctionOrderBean {
@ExcelProperty
(
"佣金"
)
@ExcelProperty
(
"佣金"
)
private
double
commissionPrice
;
private
double
commissionPrice
;
@ExcelProperty
(
"买家应付车款"
)
private
double
totalPrice
;
@ExcelIgnore
@ExcelIgnore
@ExcelProperty
(
"支付凭证"
)
@ExcelProperty
(
"支付凭证"
)
private
List
<
FileInfo
>
payVouchers
;
private
List
<
FileInfo
>
payVouchers
;
...
@@ -102,17 +111,24 @@ public class AuctionOrderBean {
...
@@ -102,17 +111,24 @@ public class AuctionOrderBean {
private
Contract
deliveryContract
;
private
Contract
deliveryContract
;
@ExcelProperty
(
value
=
"审核状态"
,
converter
=
AuditStateConverter
.
class
)
// @ExcelProperty(value = "审核状态", converter = AuditStateConverter.class)
private
AuditState
auditState
;
// private AuditState auditState;
@ExcelProperty
(
value
=
"订单状态"
,
converter
=
AuctionOrderStateConverter
.
class
)
@ExcelProperty
(
value
=
"订单状态"
,
converter
=
AuctionOrderStateConverter
.
class
)
private
AuctionOrder
.
OrderState
orderState
;
private
AuctionOrder
.
OrderState
orderState
;
@ExcelProperty
(
"负责人"
)
private
String
realName
;
@ExcelProperty
(
"新车牌号"
)
private
String
newPlateNumber
;
@ExcelProperty
(
"过户时间"
)
@ExcelProperty
(
"过户时间"
)
private
LocalDateTime
transferredTime
;
private
LocalDateTime
transferredTime
;
@ExcelProperty
(
"中拍时间"
)
private
LocalDateTime
createTime
;
@ExcelProperty
(
"订单更新时间"
)
private
LocalDateTime
updateTime
;
@ExcelProperty
(
value
=
"是否在申诉中"
,
converter
=
BooleanConverter
.
class
)
@ExcelProperty
(
value
=
"是否在申诉中"
,
converter
=
BooleanConverter
.
class
)
private
boolean
onAppeal
;
private
boolean
onAppeal
;
...
@@ -139,10 +155,16 @@ public class AuctionOrderBean {
...
@@ -139,10 +155,16 @@ public class AuctionOrderBean {
this
.
settlement
=
auctionOrder
.
isSettlement
();
this
.
settlement
=
auctionOrder
.
isSettlement
();
this
.
contract
=
auctionOrder
.
getContract
();
this
.
contract
=
auctionOrder
.
getContract
();
this
.
deliveryContract
=
auctionOrder
.
getDeliveryContract
();
this
.
deliveryContract
=
auctionOrder
.
getDeliveryContract
();
this
.
auditState
=
auctionOrder
.
getAuditState
();
this
.
orderState
=
auctionOrder
.
getOrderState
();
this
.
orderState
=
auctionOrder
.
getOrderState
();
this
.
transferredTime
=
auctionOrder
.
getTransferredTime
();
this
.
transferredTime
=
auctionOrder
.
getTransferredTime
();
this
.
onAppeal
=
auctionOrder
.
isOnAppeal
();
this
.
onAppeal
=
auctionOrder
.
isOnAppeal
();
this
.
realName
=
auction
.
getUser
().
getRealName
();
this
.
createTime
=
auctionOrder
.
getCreateTime
();
this
.
updateTime
=
auctionOrder
.
getUpdateTime
();
this
.
totalPrice
=
auctionOrder
.
getOrderPrice
()
+
auctionOrder
.
getCommissionPrice
();
this
.
licensePlate
=
vehicle
.
getBaseInfo
().
getLicensePlate
();
this
.
venueName
=
vehicle
.
getVenue
().
getVenueName
();
}
}
}
}
aus-admin/src/main/java/com/glsx/usedcar/export/DeliveryOrderBean.java
View file @
35ccdd6
...
@@ -3,8 +3,10 @@ package com.glsx.usedcar.export;
...
@@ -3,8 +3,10 @@ package com.glsx.usedcar.export;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.glsx.usedcar.export.converter.AuctionOrderStateConverter
;
import
com.glsx.usedcar.export.converter.BooleanConverter
;
import
com.glsx.usedcar.export.converter.BooleanConverter
;
import
com.glsx.usedcar.export.converter.DeliveryOrderStateConverter
;
import
com.glsx.usedcar.export.converter.DeliveryOrderStateConverter
;
import
com.glsx.usedcar.module.account.entity.Account
;
import
com.glsx.usedcar.module.auction.entity.AuctionOrder
;
import
com.glsx.usedcar.module.auction.entity.AuctionOrder
;
import
com.glsx.usedcar.module.auction.entity.DeliveryOrder
;
import
com.glsx.usedcar.module.auction.entity.DeliveryOrder
;
import
com.glsx.usedcar.module.security.entity.User
;
import
com.glsx.usedcar.module.security.entity.User
;
...
@@ -34,6 +36,8 @@ public class DeliveryOrderBean {
...
@@ -34,6 +36,8 @@ public class DeliveryOrderBean {
@ExcelProperty
(
"工单编号"
)
@ExcelProperty
(
"工单编号"
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
String
orderCode
;
private
String
orderCode
;
@ExcelProperty
(
"车源号(平台唯一识别编号)"
)
private
String
sourceNo
;
@ExcelProperty
(
"车系名字"
)
@ExcelProperty
(
"车系名字"
)
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
...
@@ -43,30 +47,50 @@ public class DeliveryOrderBean {
...
@@ -43,30 +47,50 @@ public class DeliveryOrderBean {
@ColumnWidth
(
30
)
@ColumnWidth
(
30
)
private
String
carTypeName
;
private
String
carTypeName
;
@ExcelProperty
(
"车架号"
)
private
String
vin
;
@ExcelProperty
(
"车牌号"
)
private
String
licensePlate
;
@ExcelProperty
(
"所属门店"
)
@ColumnWidth
(
30
)
private
String
venueName
;
@ExcelProperty
(
"中拍人姓名"
)
private
String
accountName
;
@ExcelProperty
(
"中拍人电话"
)
private
String
accountMobile
;
@ExcelProperty
(
"
指派
专员"
)
@ExcelProperty
(
"
交付
专员"
)
private
String
realName
;
private
String
realName
;
@ExcelProperty
(
"
指派专员手机号
"
)
@ExcelProperty
(
"
交付专员联系方式
"
)
private
String
mobile
;
private
String
mobile
;
/**
* 工单状态
*/
@ExcelProperty
(
value
=
"工单状态"
,
converter
=
DeliveryOrderStateConverter
.
class
)
private
DeliveryOrder
.
OrderState
orderState
;
@ExcelProperty
(
"备注"
)
@ExcelProperty
(
"备注"
)
private
String
remark
;
private
String
remark
;
@ExcelIgnore
// @ExcelIgnore
@ExcelProperty
(
"预约时间"
)
// @ExcelProperty("预约时间")
private
LocalDateTime
appointmentTime
;
// private LocalDateTime appointmentTime;
// @ExcelProperty("指派时间")
// private LocalDateTime assignedTime;
@ExcelProperty
(
"指派时间"
)
@ExcelProperty
(
"中拍时间"
)
private
LocalDateTime
assignedTime
;
private
LocalDateTime
orderCreateTime
;
@ExcelProperty
(
"订单更新时间"
)
private
LocalDateTime
orderUpdateTime
;
@ExcelProperty
(
value
=
"订单状态"
,
converter
=
AuctionOrderStateConverter
.
class
)
private
AuctionOrder
.
OrderState
auctionOrderState
;
/**
* 工单状态
*/
@ExcelProperty
(
value
=
"工单状态"
,
converter
=
DeliveryOrderStateConverter
.
class
)
private
DeliveryOrder
.
OrderState
orderState
;
/**
/**
* 凭证
* 凭证
*/
*/
...
@@ -74,26 +98,26 @@ public class DeliveryOrderBean {
...
@@ -74,26 +98,26 @@ public class DeliveryOrderBean {
private
List
<
FileInfo
>
vouchers
;
private
List
<
FileInfo
>
vouchers
;
@ExcelProperty
(
value
=
"核验买家身份证原件"
,
converter
=
BooleanConverter
.
class
)
//
@ExcelProperty(value = "核验买家身份证原件", converter = BooleanConverter.class)
private
boolean
checkIdCard
;
//
private boolean checkIdCard;
//
//
@ExcelProperty
(
value
=
"签署车辆交接确认单"
,
converter
=
BooleanConverter
.
class
)
//
@ExcelProperty(value = "签署车辆交接确认单", converter = BooleanConverter.class)
private
boolean
checkHandover
;
//
private boolean checkHandover;
//
//
@ExcelProperty
(
value
=
"交付车辆钥匙"
,
converter
=
BooleanConverter
.
class
)
//
@ExcelProperty(value = "交付车辆钥匙", converter = BooleanConverter.class)
private
boolean
checkKey
;
//
private boolean checkKey;
//
//
@ExcelProperty
(
value
=
"交付车辆所有权证及登记证"
,
converter
=
BooleanConverter
.
class
)
//
@ExcelProperty(value = "交付车辆所有权证及登记证", converter = BooleanConverter.class)
private
boolean
checkCertificate
;
//
private boolean checkCertificate;
/**
/**
* 交付工单的当前状态:准备交付/交付中/过户中/已完成/已取消
* 交付工单的当前状态:准备交付/交付中/过户中/已完成/已取消
*/
*/
@ExcelProperty
(
"当前
状态"
)
// @ExcelProperty("
状态")
private
int
orderStatus
;
//
private int orderStatus;
@ExcelProperty
(
"状态描述"
)
@ExcelProperty
(
"状态描述"
)
...
@@ -111,6 +135,7 @@ public class DeliveryOrderBean {
...
@@ -111,6 +135,7 @@ public class DeliveryOrderBean {
AuctionOrder
auctionOrder
=
deliveryOrder
.
getAuctionOrder
();
AuctionOrder
auctionOrder
=
deliveryOrder
.
getAuctionOrder
();
Vehicle
vehicle
=
auctionOrder
.
getVehicle
();
Vehicle
vehicle
=
auctionOrder
.
getVehicle
();
User
user
=
deliveryOrder
.
getUser
();
User
user
=
deliveryOrder
.
getUser
();
Account
account
=
auctionOrder
.
getAccount
();
this
.
deliveryOrderId
=
deliveryOrder
.
getDeliveryOrderId
();
this
.
deliveryOrderId
=
deliveryOrder
.
getDeliveryOrderId
();
this
.
orderCode
=
auctionOrder
.
getOrderCode
();
this
.
orderCode
=
auctionOrder
.
getOrderCode
();
this
.
carSeriesName
=
vehicle
.
getBaseInfo
().
getCarSeriesName
();
this
.
carSeriesName
=
vehicle
.
getBaseInfo
().
getCarSeriesName
();
...
@@ -122,16 +147,20 @@ public class DeliveryOrderBean {
...
@@ -122,16 +147,20 @@ public class DeliveryOrderBean {
this
.
orderState
=
deliveryOrder
.
getOrderState
();
this
.
orderState
=
deliveryOrder
.
getOrderState
();
this
.
remark
=
deliveryOrder
.
getRemark
();
this
.
remark
=
deliveryOrder
.
getRemark
();
this
.
appointmentTime
=
deliveryOrder
.
getAppointmentTime
();
this
.
assignedTime
=
deliveryOrder
.
getAssignedTime
();
this
.
vouchers
=
deliveryOrder
.
getVouchers
();
this
.
vouchers
=
deliveryOrder
.
getVouchers
();
this
.
checkIdCard
=
deliveryOrder
.
isCheckIdCard
();
// this.orderStatus = deliveryOrder.getOrderStatus();
this
.
checkHandover
=
deliveryOrder
.
isCheckHandover
();
this
.
checkKey
=
deliveryOrder
.
isCheckKey
();
this
.
checkCertificate
=
deliveryOrder
.
isCheckCertificate
();
this
.
orderStatus
=
deliveryOrder
.
getOrderStatus
();
this
.
statusText
=
deliveryOrder
.
getStatusText
();
this
.
statusText
=
deliveryOrder
.
getStatusText
();
this
.
remarks
=
deliveryOrder
.
getRemarks
();
this
.
remarks
=
deliveryOrder
.
getRemarks
();
this
.
cancelReason
=
deliveryOrder
.
getCancelReason
();
this
.
cancelReason
=
deliveryOrder
.
getCancelReason
();
this
.
orderCreateTime
=
auctionOrder
.
getCreateTime
();
this
.
orderUpdateTime
=
auctionOrder
.
getUpdateTime
();
this
.
accountMobile
=
account
.
getMobile
();
this
.
accountName
=
account
.
getAccountName
();
this
.
venueName
=
vehicle
.
getVenue
().
getVenueName
();
this
.
vin
=
vehicle
.
getBaseInfo
().
getVin
();
this
.
licensePlate
=
vehicle
.
getBaseInfo
().
getLicensePlate
();
this
.
sourceNo
=
vehicle
.
getBaseInfo
().
getSourceNo
();
this
.
orderCode
=
auctionOrder
.
getOrderCode
();
}
}
}
}
aus-admin/src/main/java/com/glsx/usedcar/export/OrderTransactionBean.java
View file @
35ccdd6
...
@@ -33,6 +33,10 @@ public class OrderTransactionBean {
...
@@ -33,6 +33,10 @@ public class OrderTransactionBean {
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
String
transactionCode
;
private
String
transactionCode
;
@ExcelProperty
(
"交易时间"
)
@ColumnWidth
(
20
)
private
LocalDateTime
transactionTime
;
@ExcelProperty
(
"订单编号"
)
@ExcelProperty
(
"订单编号"
)
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
private
String
orderCode
;
private
String
orderCode
;
...
@@ -46,6 +50,9 @@ public class OrderTransactionBean {
...
@@ -46,6 +50,9 @@ public class OrderTransactionBean {
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
private
String
mobile
;
private
String
mobile
;
@ExcelProperty
(
"车源号(平台唯一识别编号)"
)
private
String
sourceNo
;
@ExcelProperty
(
"车系名字"
)
@ExcelProperty
(
"车系名字"
)
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
private
String
carSeriesName
;
private
String
carSeriesName
;
...
@@ -54,6 +61,14 @@ public class OrderTransactionBean {
...
@@ -54,6 +61,14 @@ public class OrderTransactionBean {
@ColumnWidth
(
30
)
@ColumnWidth
(
30
)
private
String
carTypeName
;
private
String
carTypeName
;
@ExcelProperty
(
"车辆保管人姓名"
)
private
String
custodianName
;
@ExcelProperty
(
"车辆保管人联系方式"
)
private
String
custodianPhone
;
@ExcelProperty
(
"车辆停放地址信息"
)
private
String
handoverAddress
;
@ExcelProperty
(
"交易说明"
)
@ExcelProperty
(
"交易说明"
)
@ColumnWidth
(
35
)
@ColumnWidth
(
35
)
...
@@ -66,16 +81,20 @@ public class OrderTransactionBean {
...
@@ -66,16 +81,20 @@ public class OrderTransactionBean {
private
List
<
FileInfo
>
payVouchers
;
private
List
<
FileInfo
>
payVouchers
;
@ExcelProperty
(
value
=
"
审核
状态"
,
converter
=
AuditStateConverter
.
class
)
@ExcelProperty
(
value
=
"
工单
状态"
,
converter
=
AuditStateConverter
.
class
)
private
AuditState
auditState
;
private
AuditState
auditState
;
@ExcelProperty
(
"应付金额"
)
@ColumnWidth
(
15
)
private
double
totalAmount
;
@ExcelProperty
(
"实际到账金额"
)
@ExcelProperty
(
"实际到账金额"
)
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
private
double
amount
;
private
double
amount
;
@ExcelProperty
(
value
=
"支付
类型
"
,
converter
=
PaymentTypeConverter
.
class
)
@ExcelProperty
(
value
=
"支付
方式
"
,
converter
=
PaymentTypeConverter
.
class
)
@ColumnWidth
(
10
)
@ColumnWidth
(
10
)
private
OrderTransaction
.
PaymentType
paymentType
;
private
OrderTransaction
.
PaymentType
paymentType
;
...
@@ -95,6 +114,10 @@ public class OrderTransactionBean {
...
@@ -95,6 +114,10 @@ public class OrderTransactionBean {
private
LocalDateTime
auditTime
;
private
LocalDateTime
auditTime
;
@ExcelProperty
(
"创建时间"
)
@ColumnWidth
(
20
)
private
LocalDateTime
createTime
;
public
OrderTransactionBean
(
OrderTransaction
transaction
)
{
public
OrderTransactionBean
(
OrderTransaction
transaction
)
{
Account
account
=
transaction
.
getAuctionOrder
().
getAccount
();
Account
account
=
transaction
.
getAuctionOrder
().
getAccount
();
Vehicle
vehicle
=
transaction
.
getAuctionOrder
().
getVehicle
();
Vehicle
vehicle
=
transaction
.
getAuctionOrder
().
getVehicle
();
...
@@ -110,6 +133,13 @@ public class OrderTransactionBean {
...
@@ -110,6 +133,13 @@ public class OrderTransactionBean {
this
.
auditState
=
transaction
.
getAuditState
();
this
.
auditState
=
transaction
.
getAuditState
();
this
.
amount
=
transaction
.
getAmount
();
this
.
amount
=
transaction
.
getAmount
();
this
.
paymentType
=
transaction
.
getPaymentType
();
this
.
paymentType
=
transaction
.
getPaymentType
();
this
.
totalAmount
=
transaction
.
getAuctionOrder
().
getOrderPrice
()
+
transaction
.
getAuctionOrder
().
getCommissionPrice
();
this
.
createTime
=
transaction
.
getCreateTime
();
this
.
transactionTime
=
transaction
.
getCreateTime
();
this
.
sourceNo
=
vehicle
.
getBaseInfo
().
getSourceNo
();
this
.
custodianName
=
vehicle
.
getCustodianInfo
().
getCustodianName
();
this
.
custodianPhone
=
vehicle
.
getCustodianInfo
().
getCustodianPhone
();
this
.
handoverAddress
=
vehicle
.
getCustodianInfo
().
getHandoverAddress
();
}
}
public
void
setApproveHistory
(
ApproveHistory
approveHistory
)
{
public
void
setApproveHistory
(
ApproveHistory
approveHistory
)
{
...
...
aus-admin/src/main/java/com/glsx/usedcar/web/rest/AppealController.java
View file @
35ccdd6
...
@@ -5,6 +5,7 @@ import com.glsx.usedcar.export.DeliveryOrderBean;
...
@@ -5,6 +5,7 @@ import com.glsx.usedcar.export.DeliveryOrderBean;
import
com.glsx.usedcar.export.ExcelExporter
;
import
com.glsx.usedcar.export.ExcelExporter
;
import
com.glsx.usedcar.module.auction.entity.*
;
import
com.glsx.usedcar.module.auction.entity.*
;
import
com.glsx.usedcar.module.auction.service.AppealService
;
import
com.glsx.usedcar.module.auction.service.AppealService
;
import
com.glsx.usedcar.module.vehicle.entity.Vehicle_
;
import
jakarta.annotation.Resource
;
import
jakarta.annotation.Resource
;
import
jakarta.persistence.criteria.Fetch
;
import
jakarta.persistence.criteria.Fetch
;
import
jakarta.persistence.criteria.JoinType
;
import
jakarta.persistence.criteria.JoinType
;
...
@@ -99,7 +100,9 @@ public class AppealController {
...
@@ -99,7 +100,9 @@ public class AppealController {
@PostMapping
(
"exportAppeal"
)
@PostMapping
(
"exportAppeal"
)
public
void
exportAppeal
(
@RequestBody
Pagination
<
Appeal
>
pagination
,
HttpServletResponse
response
)
throws
IOException
{
public
void
exportAppeal
(
@RequestBody
Pagination
<
Appeal
>
pagination
,
HttpServletResponse
response
)
throws
IOException
{
pagination
.
setLimit
(
9999
);
pagination
.
setLimit
(
9999
);
pagination
.
addFetch
(
root
->
root
.
fetch
(
Appeal_
.
auctionOrder
,
JoinType
.
LEFT
).
fetch
(
AuctionOrder_
.
vehicle
,
JoinType
.
LEFT
).
fetch
(
Vehicle_
.
venue
,
JoinType
.
LEFT
));
List
<
Appeal
>
vehicles
=
pageAppeal
(
pagination
).
getContent
();
List
<
Appeal
>
vehicles
=
pageAppeal
(
pagination
).
getContent
();
List
<
AppealBean
>
vehicleBeans
=
vehicles
.
stream
().
map
(
AppealBean:
:
new
).
toList
();
List
<
AppealBean
>
vehicleBeans
=
vehicles
.
stream
().
map
(
AppealBean:
:
new
).
toList
();
ExcelExporter
.
exportExcel
(
response
,
"交付工单列表"
,
"交付工单列表"
,
AppealBean
.
class
,
vehicleBeans
);
ExcelExporter
.
exportExcel
(
response
,
"交付工单列表"
,
"交付工单列表"
,
AppealBean
.
class
,
vehicleBeans
);
}
}
...
...
aus-admin/src/main/java/com/glsx/usedcar/web/rest/auction/AuctionOrderController.java
View file @
35ccdd6
...
@@ -10,6 +10,7 @@ import com.glsx.usedcar.module.auction.service.AuctionOrderService;
...
@@ -10,6 +10,7 @@ import com.glsx.usedcar.module.auction.service.AuctionOrderService;
import
com.glsx.usedcar.module.auction.service.AuctionService
;
import
com.glsx.usedcar.module.auction.service.AuctionService
;
import
com.glsx.usedcar.module.security.entity.User
;
import
com.glsx.usedcar.module.security.entity.User
;
import
com.glsx.usedcar.module.track.entity.ApproveHistory
;
import
com.glsx.usedcar.module.track.entity.ApproveHistory
;
import
com.glsx.usedcar.module.vehicle.entity.Vehicle_
;
import
jakarta.annotation.Resource
;
import
jakarta.annotation.Resource
;
import
jakarta.persistence.criteria.JoinType
;
import
jakarta.persistence.criteria.JoinType
;
import
jakarta.servlet.http.HttpServletResponse
;
import
jakarta.servlet.http.HttpServletResponse
;
...
@@ -147,6 +148,7 @@ public class AuctionOrderController {
...
@@ -147,6 +148,7 @@ public class AuctionOrderController {
public
void
exportAuctionOrder
(
@RequestBody
Pagination
<
AuctionOrder
>
pagination
,
HttpServletResponse
response
)
throws
IOException
{
public
void
exportAuctionOrder
(
@RequestBody
Pagination
<
AuctionOrder
>
pagination
,
HttpServletResponse
response
)
throws
IOException
{
pagination
.
setLimit
(
9999
);
pagination
.
setLimit
(
9999
);
pagination
.
addFetch
(
root
->
root
.
fetch
(
AuctionOrder_
.
auction
,
JoinType
.
LEFT
));
pagination
.
addFetch
(
root
->
root
.
fetch
(
AuctionOrder_
.
auction
,
JoinType
.
LEFT
));
pagination
.
addFetch
(
root
->
root
.
fetch
(
AuctionOrder_
.
vehicle
,
JoinType
.
LEFT
).
fetch
(
Vehicle_
.
venue
,
JoinType
.
LEFT
));
List
<
AuctionOrder
>
vehicles
=
pageAuctionOrder
(
pagination
).
getContent
();
List
<
AuctionOrder
>
vehicles
=
pageAuctionOrder
(
pagination
).
getContent
();
List
<
AuctionOrderBean
>
vehicleBeans
=
vehicles
.
stream
().
map
(
AuctionOrderBean:
:
new
).
toList
();
List
<
AuctionOrderBean
>
vehicleBeans
=
vehicles
.
stream
().
map
(
AuctionOrderBean:
:
new
).
toList
();
ExcelExporter
.
exportExcel
(
response
,
"订单列表"
,
"订单列表"
,
AuctionOrderBean
.
class
,
vehicleBeans
);
ExcelExporter
.
exportExcel
(
response
,
"订单列表"
,
"订单列表"
,
AuctionOrderBean
.
class
,
vehicleBeans
);
...
...
aus-admin/src/main/java/com/glsx/usedcar/web/rest/order/DeliveryOrderController.java
View file @
35ccdd6
...
@@ -7,6 +7,7 @@ import com.glsx.usedcar.module.auction.entity.AuctionOrder_;
...
@@ -7,6 +7,7 @@ import com.glsx.usedcar.module.auction.entity.AuctionOrder_;
import
com.glsx.usedcar.module.auction.entity.DeliveryOrder
;
import
com.glsx.usedcar.module.auction.entity.DeliveryOrder
;
import
com.glsx.usedcar.module.auction.entity.DeliveryOrder_
;
import
com.glsx.usedcar.module.auction.entity.DeliveryOrder_
;
import
com.glsx.usedcar.module.auction.service.DeliveryOrderService
;
import
com.glsx.usedcar.module.auction.service.DeliveryOrderService
;
import
com.glsx.usedcar.module.vehicle.entity.Vehicle_
;
import
jakarta.annotation.Resource
;
import
jakarta.annotation.Resource
;
import
jakarta.persistence.criteria.Fetch
;
import
jakarta.persistence.criteria.Fetch
;
import
jakarta.persistence.criteria.JoinType
;
import
jakarta.persistence.criteria.JoinType
;
...
@@ -142,6 +143,7 @@ public class DeliveryOrderController {
...
@@ -142,6 +143,7 @@ public class DeliveryOrderController {
public
void
exportDeliveryOrder
(
@RequestBody
Pagination
<
DeliveryOrder
>
pagination
,
HttpServletResponse
response
)
throws
IOException
{
public
void
exportDeliveryOrder
(
@RequestBody
Pagination
<
DeliveryOrder
>
pagination
,
HttpServletResponse
response
)
throws
IOException
{
pagination
.
setLimit
(
9999
);
pagination
.
setLimit
(
9999
);
pagination
.
addFetch
(
root
->
root
.
fetch
(
DeliveryOrder_
.
user
,
JoinType
.
LEFT
));
pagination
.
addFetch
(
root
->
root
.
fetch
(
DeliveryOrder_
.
user
,
JoinType
.
LEFT
));
pagination
.
addFetch
(
root
->
root
.
fetch
(
DeliveryOrder_
.
auctionOrder
,
JoinType
.
LEFT
).
fetch
(
AuctionOrder_
.
vehicle
,
JoinType
.
LEFT
).
fetch
(
Vehicle_
.
venue
,
JoinType
.
LEFT
));
List
<
DeliveryOrder
>
vehicles
=
pageDeliveryOrder
(
pagination
).
getContent
();
List
<
DeliveryOrder
>
vehicles
=
pageDeliveryOrder
(
pagination
).
getContent
();
List
<
DeliveryOrderBean
>
vehicleBeans
=
vehicles
.
stream
().
map
(
DeliveryOrderBean:
:
new
).
toList
();
List
<
DeliveryOrderBean
>
vehicleBeans
=
vehicles
.
stream
().
map
(
DeliveryOrderBean:
:
new
).
toList
();
ExcelExporter
.
exportExcel
(
response
,
"交付工单列表"
,
"交付工单列表"
,
DeliveryOrderBean
.
class
,
vehicleBeans
);
ExcelExporter
.
exportExcel
(
response
,
"交付工单列表"
,
"交付工单列表"
,
DeliveryOrderBean
.
class
,
vehicleBeans
);
...
...
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