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 ec9e6806
authored
Apr 23, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:添加子品牌,枚举类型
1 parent
cd487353
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
144 additions
and
44 deletions
aus-core/src/main/java/com/glsx/usedcar/module/auction/entity/OrderSnapshot.java
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/OrderSnapshotService.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/dao/VrAuditRepository.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/entity/VrAudit.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrAuditService.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrAuditOrderDetailRespVO.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrAuditPageRespVO.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrAuditRespVO.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrAuditSaveReqVO.java
aus-core/src/main/java/com/glsx/usedcar/module/auction/entity/OrderSnapshot.java
View file @
ec9e680
...
...
@@ -113,6 +113,55 @@ public class OrderSnapshot extends AuditingEntity implements Serializable {
// ==================== 车辆信息 ====================
/**
* 车辆品牌ID
*/
@NotNull
(
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
nullable
=
false
)
private
Integer
carBrandId
;
/**
* 车辆品牌名称
*/
@Size
(
max
=
64
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
length
=
64
)
private
String
carBrand
;
/**
* 车辆子品牌ID
*/
@NotNull
(
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
nullable
=
false
)
private
Integer
carChildsBrandId
;
/**
* 车辆子品牌名称
*/
@Size
(
max
=
64
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
length
=
64
)
private
String
carChildsBrandName
;
/**
* 车辆车系ID
*/
@NotNull
(
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
nullable
=
false
)
private
Integer
carSeriesId
;
/**
* 车辆车系名称
*/
@Size
(
max
=
64
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
length
=
64
)
private
String
carSeriesName
;
/**
* 车辆车型ID
*/
@NotNull
(
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
nullable
=
false
)
private
Integer
carTypeId
;
/**
* 车型名称
*/
@Size
(
max
=
128
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
...
...
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/OrderSnapshotService.java
View file @
ec9e680
...
...
@@ -66,6 +66,14 @@ public class OrderSnapshotService {
snapshot
.
setDealPrice
(
BigDecimal
.
valueOf
(
auctionOrder
.
getOrderPrice
()));
// 车辆信息
// 车辆品牌/车系/车型信息
snapshot
.
setCarBrandId
(
vehicle
.
getBaseInfo
().
getCarBrandId
());
snapshot
.
setCarBrand
(
vehicle
.
getBaseInfo
().
getCarBrand
());
snapshot
.
setCarChildsBrandId
(
vehicle
.
getBaseInfo
().
getCarChildsBrandId
());
snapshot
.
setCarChildsBrandName
(
vehicle
.
getBaseInfo
().
getCarChildsBrandName
());
snapshot
.
setCarSeriesId
(
vehicle
.
getBaseInfo
().
getCarSeriesId
());
snapshot
.
setCarSeriesName
(
vehicle
.
getBaseInfo
().
getCarSeriesName
());
snapshot
.
setCarTypeId
(
vehicle
.
getBaseInfo
().
getCarTypeId
());
snapshot
.
setCarTypeName
(
vehicle
.
getBaseInfo
().
getCarTypeName
());
snapshot
.
setLicensePlate
(
vehicle
.
getBaseInfo
().
getLicensePlate
());
snapshot
.
setVin
(
vehicle
.
getBaseInfo
().
getVin
());
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/dao/VrAuditRepository.java
View file @
ec9e680
...
...
@@ -164,7 +164,7 @@ public interface VrAuditRepository extends BaseRepository<VrAudit, Long> {
* @param carBrandId 品牌ID
* @return 发拍记录列表
*/
List
<
VrAudit
>
findByCarBrandId
(
String
carBrandId
);
List
<
VrAudit
>
findByCarBrandId
(
Integer
carBrandId
);
/**
* 根据车系ID查询发拍记录
...
...
@@ -172,7 +172,7 @@ public interface VrAuditRepository extends BaseRepository<VrAudit, Long> {
* @param carSeriesId 车系ID
* @return 发拍记录列表
*/
List
<
VrAudit
>
findByCarSeriesId
(
String
carSeriesId
);
List
<
VrAudit
>
findByCarSeriesId
(
Integer
carSeriesId
);
/**
* 软删除发拍记录
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/entity/VrAudit.java
View file @
ec9e680
...
...
@@ -118,23 +118,37 @@ public class VrAudit extends AuditingEntity {
/**
* 品牌ID
*/
@
Size
(
max
=
32
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
length
=
32
)
private
String
carBrandId
;
@
NotNull
(
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
nullable
=
false
)
private
Integer
carBrandId
;
/**
* 品牌名称
*
车辆
品牌名称
*/
@Size
(
max
=
64
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
length
=
64
)
private
String
carBrandName
;
/**
* 车辆子品牌ID
*/
@NotNull
(
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
nullable
=
false
)
private
Integer
carChildsBrandId
;
/**
* 车辆子品牌名称
*/
@Size
(
max
=
64
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
length
=
64
)
private
String
carChildsBrandName
;
/**
* 车系ID
*/
@
Size
(
max
=
32
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
length
=
32
)
private
String
carSeriesId
;
@
NotNull
(
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
nullable
=
false
)
private
Integer
carSeriesId
;
/**
* 车系名称
...
...
@@ -146,9 +160,9 @@ public class VrAudit extends AuditingEntity {
/**
* 车型ID
*/
@
Size
(
max
=
32
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
length
=
32
)
private
String
carTypeId
;
@
NotNull
(
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
nullable
=
false
)
private
Integer
carTypeId
;
/**
* 车型名称
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrAuditService.java
View file @
ec9e680
...
...
@@ -138,6 +138,7 @@ public class VrAuditService {
builder
.
like
(
root
.
get
(
VrAudit_
.
carSeriesName
),
likePattern
),
builder
.
like
(
root
.
get
(
VrAudit_
.
carTypeName
),
likePattern
),
builder
.
like
(
root
.
get
(
VrAudit_
.
carBrandName
),
likePattern
),
builder
.
like
(
root
.
get
(
VrAudit_
.
carChildsBrandName
),
likePattern
),
builder
.
like
(
root
.
get
(
VrAudit_
.
publishNo
),
likePattern
)
));
}
...
...
@@ -375,13 +376,14 @@ public class VrAuditService {
try
{
VrUser
vrUser
=
vrUserRepository
.
findById
(
entity
.
getVrUserId
()).
orElse
(
null
);
String
publisherName
=
vrUser
!=
null
?
vrUser
.
getUserName
()
:
StrUtil
.
EMPTY
;
String
brandName
=
StrUtil
.
blankToDefault
(
entity
.
getCarBrandName
(),
StrUtil
.
EMPTY
)
+
" "
+
StrUtil
.
blankToDefault
(
entity
.
getCarChildsBrandName
(),
StrUtil
.
EMPTY
);
LocalDateTime
submitTime
=
entity
.
getSubmitTime
()
!=
null
?
entity
.
getSubmitTime
()
:
LocalDateTime
.
now
();
webHookHandler
.
sendNoticeMessage
(
WebhooksBusinessType
.
VR_PUBLISH
,
NoticeTemplate
.
TemplateType
.
VR_PUBLISH
,
Map
.
of
(
NoticeField
.
VR_PUBLISHER_NAME
,
publisherName
,
NoticeField
.
VR_CAR_BRAND_NAME
,
StrUtil
.
blankToDefault
(
entity
.
getCarBrandName
(),
StrUtil
.
EMPTY
)
,
NoticeField
.
VR_CAR_BRAND_NAME
,
brandName
,
NoticeField
.
VR_CAR_SERIES_NAME
,
StrUtil
.
blankToDefault
(
entity
.
getCarSeriesName
(),
StrUtil
.
EMPTY
),
NoticeField
.
VR_CAR_TYPE_NAME
,
StrUtil
.
blankToDefault
(
entity
.
getCarTypeName
(),
StrUtil
.
EMPTY
),
NoticeField
.
VR_VIN
,
StrUtil
.
blankToDefault
(
entity
.
getVin
(),
StrUtil
.
EMPTY
),
...
...
@@ -435,19 +437,25 @@ public class VrAuditService {
if
(
req
.
getLicensePlate
()
!=
null
)
{
entity
.
setLicensePlate
(
req
.
getLicensePlate
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarBrandId
())
)
{
if
(
req
.
getCarBrandId
()
!=
null
)
{
entity
.
setCarBrandId
(
req
.
getCarBrandId
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarBrandName
()))
{
entity
.
setCarBrandName
(
req
.
getCarBrandName
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarSeriesId
()))
{
if
(
req
.
getCarChildsBrandId
()
!=
null
)
{
entity
.
setCarChildsBrandId
(
req
.
getCarChildsBrandId
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarChildsBrandName
()))
{
entity
.
setCarChildsBrandName
(
req
.
getCarChildsBrandName
());
}
if
(
req
.
getCarSeriesId
()
!=
null
)
{
entity
.
setCarSeriesId
(
req
.
getCarSeriesId
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarSeriesName
()))
{
entity
.
setCarSeriesName
(
req
.
getCarSeriesName
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarTypeId
())
)
{
if
(
req
.
getCarTypeId
()
!=
null
)
{
entity
.
setCarTypeId
(
req
.
getCarTypeId
());
}
if
(
StringUtils
.
hasText
(
req
.
getCarTypeName
()))
{
...
...
@@ -926,11 +934,13 @@ public class VrAuditService {
vehicle
.
setBaseInfo
(
baseInfo
);
}
if
(
vrAudit
.
getLicensePlate
()
!=
null
)
baseInfo
.
setLicensePlate
(
vrAudit
.
getLicensePlate
());
baseInfo
.
setCarBrandId
(
parseIntOrZero
(
vrAudit
.
getCarBrandId
())
);
baseInfo
.
setCarBrandId
(
vrAudit
.
getCarBrandId
()
!=
null
?
vrAudit
.
getCarBrandId
()
:
0
);
baseInfo
.
setCarBrand
(
vrAudit
.
getCarBrandName
());
baseInfo
.
setCarSeriesId
(
parseIntOrZero
(
vrAudit
.
getCarSeriesId
()));
baseInfo
.
setCarChildsBrandId
(
vrAudit
.
getCarChildsBrandId
()
!=
null
?
vrAudit
.
getCarChildsBrandId
()
:
0
);
baseInfo
.
setCarChildsBrandName
(
vrAudit
.
getCarChildsBrandName
());
baseInfo
.
setCarSeriesId
(
vrAudit
.
getCarSeriesId
()
!=
null
?
vrAudit
.
getCarSeriesId
()
:
0
);
baseInfo
.
setCarSeriesName
(
vrAudit
.
getCarSeriesName
());
baseInfo
.
setCarTypeId
(
parseIntOrZero
(
vrAudit
.
getCarTypeId
())
);
baseInfo
.
setCarTypeId
(
vrAudit
.
getCarTypeId
()
!=
null
?
vrAudit
.
getCarTypeId
()
:
0
);
baseInfo
.
setCarTypeName
(
vrAudit
.
getCarTypeName
());
baseInfo
.
setMileage
(
vrAudit
.
getMileage
()
!=
null
?
vrAudit
.
getMileage
().
multiply
(
BigDecimal
.
valueOf
(
10000
)).
intValue
()
:
baseInfo
.
getMileage
());
baseInfo
.
setSourceNo
(
vrAudit
.
getPublishNo
());
...
...
@@ -995,11 +1005,13 @@ public class VrAuditService {
BaseInfo
baseInfo
=
new
BaseInfo
();
baseInfo
.
setVin
(
vrAudit
.
getVin
());
baseInfo
.
setLicensePlate
(
vrAudit
.
getLicensePlate
()
!=
null
?
vrAudit
.
getLicensePlate
()
:
""
);
baseInfo
.
setCarBrandId
(
parseIntOrZero
(
vrAudit
.
getCarBrandId
())
);
baseInfo
.
setCarBrandId
(
vrAudit
.
getCarBrandId
()
!=
null
?
vrAudit
.
getCarBrandId
()
:
0
);
baseInfo
.
setCarBrand
(
vrAudit
.
getCarBrandName
());
baseInfo
.
setCarSeriesId
(
parseIntOrZero
(
vrAudit
.
getCarSeriesId
()));
baseInfo
.
setCarChildsBrandId
(
vrAudit
.
getCarChildsBrandId
()
!=
null
?
vrAudit
.
getCarChildsBrandId
()
:
0
);
baseInfo
.
setCarChildsBrandName
(
vrAudit
.
getCarChildsBrandName
());
baseInfo
.
setCarSeriesId
(
vrAudit
.
getCarSeriesId
()
!=
null
?
vrAudit
.
getCarSeriesId
()
:
0
);
baseInfo
.
setCarSeriesName
(
vrAudit
.
getCarSeriesName
());
baseInfo
.
setCarTypeId
(
parseIntOrZero
(
vrAudit
.
getCarTypeId
())
);
baseInfo
.
setCarTypeId
(
vrAudit
.
getCarTypeId
()
!=
null
?
vrAudit
.
getCarTypeId
()
:
0
);
baseInfo
.
setCarTypeName
(
vrAudit
.
getCarTypeName
());
baseInfo
.
setMileage
(
vrAudit
.
getMileage
()
!=
null
?
vrAudit
.
getMileage
().
multiply
(
BigDecimal
.
valueOf
(
10000
)).
intValue
()
:
0
);
baseInfo
.
setEngineNumber
(
""
);
// 发动机号,默认空
...
...
@@ -1234,7 +1246,8 @@ public class VrAuditService {
// ==================== 二、基础信息档 ====================
vo
.
setVin
(
vrAudit
.
getVin
());
vo
.
setLicensePlate
(
vrAudit
.
getLicensePlate
());
vo
.
setCarBrandName
(
vrAudit
.
getCarBrandName
());
vo
.
setCarBrand
(
vrAudit
.
getCarBrandName
());
vo
.
setCarChildsBrandName
(
vrAudit
.
getCarChildsBrandName
());
vo
.
setCarSeriesName
(
vrAudit
.
getCarSeriesName
());
vo
.
setCarTypeName
(
vrAudit
.
getCarTypeName
());
vo
.
setDisplacement
(
vrAudit
.
getDisplacement
());
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrAuditOrderDetailRespVO.java
View file @
ec9e680
...
...
@@ -58,7 +58,10 @@ public class VrAuditOrderDetailRespVO {
private
String
licensePlate
;
@Schema
(
description
=
"品牌名称"
)
private
String
carBrandName
;
private
String
carBrand
;
@Schema
(
description
=
"子品牌名称"
)
private
String
carChildsBrandName
;
@Schema
(
description
=
"车系名称"
)
private
String
carSeriesName
;
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrAuditPageRespVO.java
View file @
ec9e680
...
...
@@ -2,12 +2,10 @@ package com.glsx.usedcar.module.vrsystem.vo;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
jakarta.persistence.Column
;
import
jakarta.validation.constraints.NotBlank
;
import
jakarta.validation.constraints.Size
;
import
lombok.*
;
import
org.summerframework.orm.validator.CreateValidGroup
;
import
org.summerframework.orm.validator.UpdateValidGroup
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
...
...
@@ -34,6 +32,9 @@ public class VrAuditPageRespVO {
@Schema
(
description
=
"品牌名称"
)
private
String
carBrandName
;
@Schema
(
description
=
"子品牌名称"
)
private
String
carChildsBrandName
;
@Schema
(
description
=
"车系名称"
)
private
String
carSeriesName
;
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrAuditRespVO.java
View file @
ec9e680
...
...
@@ -2,7 +2,6 @@ package com.glsx.usedcar.module.vrsystem.vo;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
jakarta.persistence.Column
;
import
lombok.*
;
import
java.math.BigDecimal
;
...
...
@@ -36,19 +35,25 @@ public class VrAuditRespVO {
private
String
licensePlate
;
@Schema
(
description
=
"品牌ID"
)
private
String
carBrandId
;
private
Integer
carBrandId
;
@Schema
(
description
=
"品牌名称"
)
private
String
carBrandName
;
@Schema
(
description
=
"子品牌ID"
)
private
Integer
carChildsBrandId
;
@Schema
(
description
=
"子品牌名称"
)
private
String
carChildsBrandName
;
@Schema
(
description
=
"车系ID"
)
private
String
carSeriesId
;
private
Integer
carSeriesId
;
@Schema
(
description
=
"车系名称"
)
private
String
carSeriesName
;
@Schema
(
description
=
"车型ID"
)
private
String
carTypeId
;
private
Integer
carTypeId
;
@Schema
(
description
=
"车型名称"
)
private
String
carTypeName
;
...
...
@@ -116,13 +121,13 @@ public class VrAuditRespVO {
@Schema
(
description
=
"后备箱照片URL"
)
private
String
photoTrunk
;
@Schema
(
description
=
"变速箱类型(1:手动/2:自动)"
)
@Schema
(
description
=
"变速箱类型(1:手动/2:自动
/3:双离合/4:手自一体
)"
)
private
Integer
transmissionType
;
@Schema
(
description
=
"车辆性质(1:非营运/2:营运)"
)
@Schema
(
description
=
"车辆性质(1:非营运/2:营运
/3:盈转非
)"
)
private
Integer
vehicleNature
;
@Schema
(
description
=
"燃料类型(1:汽油/2:柴油/3:
电动
/4:混动)"
)
@Schema
(
description
=
"燃料类型(1:汽油/2:柴油/3:
纯电
/4:混动)"
)
private
Integer
fuelType
;
@Schema
(
description
=
"提交审核时间"
)
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrAuditSaveReqVO.java
View file @
ec9e680
...
...
@@ -41,21 +41,28 @@ public class VrAuditSaveReqVO {
private
String
licensePlate
;
@Schema
(
description
=
"品牌ID"
)
private
String
carBrandId
;
private
Integer
carBrandId
;
@Size
(
max
=
64
,
message
=
"品牌名称最长64位"
)
@Schema
(
description
=
"品牌名称"
)
private
String
carBrandName
;
@Schema
(
description
=
"子品牌ID"
)
private
Integer
carChildsBrandId
;
@Size
(
max
=
64
,
message
=
"子品牌名称最长64位"
)
@Schema
(
description
=
"子品牌名称"
)
private
String
carChildsBrandName
;
@Schema
(
description
=
"车系ID"
)
private
String
carSeriesId
;
private
Integer
carSeriesId
;
@Size
(
max
=
64
,
message
=
"车系名称最长64位"
)
@Schema
(
description
=
"车系名称"
)
private
String
carSeriesName
;
@Schema
(
description
=
"车型ID"
)
private
String
carTypeId
;
private
Integer
carTypeId
;
@Size
(
max
=
128
,
message
=
"车型名称最长128位"
)
@Schema
(
description
=
"车型名称"
)
...
...
@@ -65,17 +72,17 @@ public class VrAuditSaveReqVO {
@Schema
(
description
=
"排量"
)
private
String
displacement
;
@Schema
(
description
=
"变速箱类型(1:手动
2:自动
)"
)
@Schema
(
description
=
"变速箱类型(1:手动
/2:自动/3:双离合/4:手自一体
)"
)
private
Integer
transmissionType
;
@Schema
(
description
=
"车辆性质(1:非营运
2:营运
)"
)
@Schema
(
description
=
"车辆性质(1:非营运
/2:营运/3:盈转非
)"
)
private
Integer
vehicleNature
;
@Schema
(
description
=
"燃料类型(1:汽油
2:柴油 3:电动
4:混动)"
)
@Schema
(
description
=
"燃料类型(1:汽油
/2:柴油/3:纯电/
4:混动)"
)
private
Integer
fuelType
;
@Size
(
max
=
16
,
message
=
"车身颜色最长16位"
)
@Schema
(
description
=
"车身颜色"
)
@Schema
(
description
=
"车身颜色
(黑色;白色;银/灰色;红色;蓝色;棕/咖色;黄/橙/金色;其他)
"
)
private
String
bodyColor
;
@Size
(
max
=
16
,
message
=
"内饰颜色最长16位"
)
...
...
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