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 5ad8e379
authored
Apr 21, 2026
by
杨卫
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:车型车系查询接口
1 parent
f1269419
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
518 additions
and
18 deletions
aus-core/src/main/java/com/glsx/usedcar/consts/common/CommonConsts.java
aus-core/src/main/java/com/glsx/usedcar/converts/VrSystemConverter.java
aus-core/src/main/java/com/glsx/usedcar/gsc/vo/CarBrandCompleteRespVO.java
aus-core/src/main/java/com/glsx/usedcar/gsc/vo/CarBrandInfo.java
aus-core/src/main/java/com/glsx/usedcar/gsc/vo/CarTypeListRespVO.java
aus-core/src/main/java/com/glsx/usedcar/gsc/vo/CarTypeVO.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrAuditService.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrLoginService.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrOrgService.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/specifications/VrOrgSpecifications.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/VrUserChangePasswordVO.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrUserPasswordVO.java
aus-vr-api/src/main/java/com/glsx/usedcar/config/VrApiBeanConfig.java
aus-vr-api/src/main/java/com/glsx/usedcar/controller/RopApiController.java
aus-vr/src/main/java/com/glsx/usedcar/controller/VrAuditController.java
aus-core/src/main/java/com/glsx/usedcar/consts/common/CommonConsts.java
View file @
5ad8e37
...
@@ -19,4 +19,7 @@ public interface CommonConsts {
...
@@ -19,4 +19,7 @@ public interface CommonConsts {
/** asc */
/** asc */
String
ASC
=
"asc"
;
String
ASC
=
"asc"
;
// "delete_flag"
String
DELETE_FLAG
=
"delete_flag"
;
}
}
aus-core/src/main/java/com/glsx/usedcar/converts/VrSystemConverter.java
View file @
5ad8e37
...
@@ -51,4 +51,6 @@ public interface VrSystemConverter {
...
@@ -51,4 +51,6 @@ public interface VrSystemConverter {
void
updateMenuFromVO
(
VrMenuUpdateVO
updateVO
,
@MappingTarget
VrMenu
menu
);
void
updateMenuFromVO
(
VrMenuUpdateVO
updateVO
,
@MappingTarget
VrMenu
menu
);
void
updateOrgFromVO
(
VrOrgUpdateVO
updateVO
,
@MappingTarget
VrOrg
org
);
void
updateOrgFromVO
(
VrOrgUpdateVO
updateVO
,
@MappingTarget
VrOrg
org
);
VrOrgStoreRespVO
org2StoreRespVO
(
VrOrg
vrOrg
);
}
}
aus-core/src/main/java/com/glsx/usedcar/gsc/vo/CarBrandCompleteRespVO.java
0 → 100644
View file @
5ad8e37
package
com
.
glsx
.
usedcar
.
gsc
.
vo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.util.List
;
/**
* 车辆品牌全称(完整树形结构)响应数据VO
*
* @author yangwei
* @since 2026/04/21
*/
@Data
@Schema
(
description
=
"车辆品牌全称(完整树形结构)响应数据"
)
public
class
CarBrandCompleteRespVO
{
@Schema
(
description
=
"品牌/车系/车型树形信息列表"
)
private
List
<
CarBrandInfo
>
carinfos
;
}
aus-core/src/main/java/com/glsx/usedcar/gsc/vo/CarBrandInfo.java
0 → 100644
View file @
5ad8e37
package
com
.
glsx
.
usedcar
.
gsc
.
vo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.util.List
;
/**
* 车辆品牌/车系/车型树形节点信息
*
* @author yangwei
* @since 2026/04/21
*/
@Data
@Schema
(
description
=
"车辆品牌/车系/车型树形节点信息"
)
public
class
CarBrandInfo
{
@Schema
(
description
=
"首字母"
)
private
String
letter
;
@Schema
(
description
=
"名称"
)
private
String
name
;
@Schema
(
description
=
"ID"
)
private
Integer
id
;
@Schema
(
description
=
"子节点列表(车系/车型)"
)
private
List
<
CarBrandInfo
>
childs
;
@Schema
(
description
=
"Logo地址(仅品牌层有)"
)
private
String
logoUrl
;
}
aus-core/src/main/java/com/glsx/usedcar/gsc/vo/CarTypeListRespVO.java
View file @
5ad8e37
package
com
.
glsx
.
usedcar
.
gsc
.
vo
;
package
com
.
glsx
.
usedcar
.
gsc
.
vo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
import
java.util.List
;
...
@@ -11,8 +12,9 @@ import java.util.List;
...
@@ -11,8 +12,9 @@ import java.util.List;
* @since 2026/03/24 11:10
* @since 2026/03/24 11:10
*/
*/
@Data
@Data
@Schema
(
description
=
"车型列表响应数据"
)
public
class
CarTypeListRespVO
{
public
class
CarTypeListRespVO
{
/** 车型信息列表 */
@Schema
(
description
=
"车型信息列表"
)
private
List
<
CarTypeVO
>
carinfos
;
private
List
<
CarTypeVO
>
carinfos
;
}
}
aus-core/src/main/java/com/glsx/usedcar/gsc/vo/CarTypeVO.java
View file @
5ad8e37
package
com
.
glsx
.
usedcar
.
gsc
.
vo
;
package
com
.
glsx
.
usedcar
.
gsc
.
vo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -9,38 +10,39 @@ import lombok.Data;
...
@@ -9,38 +10,39 @@ import lombok.Data;
* @since 2026/03/24 11:10
* @since 2026/03/24 11:10
*/
*/
@Data
@Data
@Schema
(
description
=
"车型信息"
)
public
class
CarTypeVO
{
public
class
CarTypeVO
{
/** 品牌名称 */
@Schema
(
description
=
"品牌名称"
)
private
String
brandName
;
private
String
brandName
;
/** 车系名称 */
@Schema
(
description
=
"车系名称"
)
private
String
seriesName
;
private
String
seriesName
;
/** 品牌ID */
@Schema
(
description
=
"品牌ID"
)
private
Integer
brandId
;
private
Integer
brandId
;
/** 字母索引 */
@Schema
(
description
=
"字母索引"
)
private
String
letter
;
private
String
letter
;
/** 车型名称 */
@Schema
(
description
=
"车型名称"
)
private
String
name
;
private
String
name
;
/** 指导价 */
@Schema
(
description
=
"指导价"
)
private
String
guidePrice
;
private
String
guidePrice
;
/** 售价 */
@Schema
(
description
=
"售价"
)
private
String
sellPrice
;
private
String
sellPrice
;
/** 展示图片URL */
@Schema
(
description
=
"展示图片URL"
)
private
String
showImageUrl
;
private
String
showImageUrl
;
/** 车型ID */
@Schema
(
description
=
"车型ID"
)
private
Integer
id
;
private
Integer
id
;
/** 子车型列表 */
@Schema
(
description
=
"子车型列表"
)
private
Object
childs
;
private
Object
childs
;
/** 车系ID */
@Schema
(
description
=
"车系ID"
)
private
Integer
seriesId
;
private
Integer
seriesId
;
}
}
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrAuditService.java
View file @
5ad8e37
...
@@ -15,7 +15,12 @@ import com.glsx.usedcar.enums.common.VrRoleCodeEnum;
...
@@ -15,7 +15,12 @@ import com.glsx.usedcar.enums.common.VrRoleCodeEnum;
import
com.glsx.usedcar.enums.common.WebhooksBusinessType
;
import
com.glsx.usedcar.enums.common.WebhooksBusinessType
;
import
com.glsx.usedcar.handler.WebHookHandler
;
import
com.glsx.usedcar.handler.WebHookHandler
;
import
com.glsx.usedcar.module.auction.dao.AuctionOrderDao
;
import
com.glsx.usedcar.module.auction.dao.AuctionOrderDao
;
import
com.glsx.usedcar.module.auction.dao.OrderSnapshotRepository
;
import
com.glsx.usedcar.module.auction.dao.AuctionVehicleDao
;
import
com.glsx.usedcar.module.auction.dao.AuctionVehicleDao
;
import
com.glsx.usedcar.module.auction.entity.Auction
;
import
com.glsx.usedcar.module.auction.entity.AuctionOrder
;
import
com.glsx.usedcar.module.auction.entity.AuctionVehicle
;
import
com.glsx.usedcar.module.auction.entity.OrderSnapshot
;
import
com.glsx.usedcar.module.auction.entity.*
;
import
com.glsx.usedcar.module.auction.entity.*
;
import
com.glsx.usedcar.module.business.entity.NoticeTemplate
;
import
com.glsx.usedcar.module.business.entity.NoticeTemplate
;
import
com.glsx.usedcar.module.business.service.NoticeField
;
import
com.glsx.usedcar.module.business.service.NoticeField
;
...
@@ -76,6 +81,8 @@ public class VrAuditService {
...
@@ -76,6 +81,8 @@ public class VrAuditService {
private
final
VrOrgRepository
vrOrgRepository
;
private
final
VrOrgRepository
vrOrgRepository
;
private
final
OrderSnapshotRepository
orderSnapshotRepository
;
private
final
ChaboshiService
chaboshiService
;
private
final
ChaboshiService
chaboshiService
;
private
final
WebHookHandler
webHookHandler
;
private
final
WebHookHandler
webHookHandler
;
...
@@ -1033,4 +1040,111 @@ public class VrAuditService {
...
@@ -1033,4 +1040,111 @@ public class VrAuditService {
default
->
"自动"
;
default
->
"自动"
;
};
};
}
}
/**
* 获取发拍单订单详情
* <p>聚合发拍单信息、财务清算信息(AuctionOrder)、快照信息(OrderSnapshot)</p>
*
* @param id 发拍单ID
* @return 订单详情响应VO
*/
public
VrAuditOrderDetailRespVO
getOrderDetail
(
Long
id
)
{
// 1. 查询发拍单
VrAudit
vrAudit
=
vrAuditRepository
.
findByIdAndDeleteFlag
(
id
,
DeleteFlag
.
NOT_DELETED
.
getCode
())
.
orElseThrow
(()
->
new
BusinessCodeException
(
ErrorCodeEnum
.
DATA_NOT_EXIST
));
// 2. 构建基础响应VO
VrAuditOrderDetailRespVO
vo
=
new
VrAuditOrderDetailRespVO
();
// ==================== 一、全局状态 ====================
vo
.
setId
(
vrAudit
.
getId
());
vo
.
setStatus
(
vrAudit
.
getStatus
());
VrAudit
.
PublishStatus
publishStatus
=
VrAudit
.
PublishStatus
.
fromValue
(
vrAudit
.
getStatus
());
vo
.
setStatusName
(
publishStatus
!=
null
?
publishStatus
.
getLabel
()
:
""
);
vo
.
setPublishNo
(
vrAudit
.
getPublishNo
());
vo
.
setOrgName
(
vrAudit
.
getOrgName
());
vo
.
setVrUserName
(
vrAudit
.
getVrUserName
());
vo
.
setVrUserPhone
(
vrAudit
.
getVrUserPhone
());
vo
.
setSubmitTime
(
vrAudit
.
getSubmitTime
());
// ==================== 二、基础信息档 ====================
vo
.
setVin
(
vrAudit
.
getVin
());
vo
.
setLicensePlate
(
vrAudit
.
getLicensePlate
());
vo
.
setCarBrandName
(
vrAudit
.
getCarBrandName
());
vo
.
setCarSeriesName
(
vrAudit
.
getCarSeriesName
());
vo
.
setCarTypeName
(
vrAudit
.
getCarTypeName
());
vo
.
setDisplacement
(
vrAudit
.
getDisplacement
());
vo
.
setTransmissionType
(
vrAudit
.
getTransmissionType
());
vo
.
setTransmissionTypeName
(
getTransmissionTypeName
(
vrAudit
.
getTransmissionType
()));
vo
.
setFuelType
(
vrAudit
.
getFuelType
());
vo
.
setFuelTypeName
(
getFuelTypeName
(
vrAudit
.
getFuelType
()));
vo
.
setBodyColor
(
vrAudit
.
getBodyColor
());
vo
.
setInteriorColor
(
vrAudit
.
getInteriorColor
());
// ==================== 三、车辆登记履 ====================
vo
.
setRegisterDate
(
vrAudit
.
getRegisterDate
());
vo
.
setMileage
(
vrAudit
.
getMileage
());
vo
.
setTransferCount
(
vrAudit
.
getTransferCount
());
vo
.
setVehicleNature
(
vrAudit
.
getVehicleNature
());
vo
.
setVehicleNatureName
(
getVehicleNatureName
(
vrAudit
.
getVehicleNature
()));
// ==================== 四、财务底价与验车图证区 ====================
vo
.
setReservePrice
(
vrAudit
.
getReservePrice
());
vo
.
setPhotoFront
(
vrAudit
.
getPhotoFront
());
vo
.
setPhotoLeftFront
(
vrAudit
.
getPhotoLeftFront
());
vo
.
setPhotoRightRear
(
vrAudit
.
getPhotoRightRear
());
vo
.
setPhotoInterior
(
vrAudit
.
getPhotoInterior
());
vo
.
setPhotoDashboard
(
vrAudit
.
getPhotoDashboard
());
vo
.
setPhotoEngine
(
vrAudit
.
getPhotoEngine
());
vo
.
setPhotoTrunk
(
vrAudit
.
getPhotoTrunk
());
// ==================== 五、财务清算(来自AuctionOrder) ====================
// 根据vehicleId查询关联的拍卖订单
if
(
vrAudit
.
getVehicleId
()
!=
null
&&
vrAudit
.
getVehicleId
()
>
0
)
{
AuctionOrder
auctionOrder
=
auctionOrderDao
.
findTopByVehicle_VehicleIdOrderByCreateTimeDesc
(
vrAudit
.
getVehicleId
());
if
(
auctionOrder
!=
null
)
{
vo
.
setOrderId
(
auctionOrder
.
getOrderId
());
vo
.
setOrderCode
(
auctionOrder
.
getOrderCode
());
vo
.
setOrderPrice
(
auctionOrder
.
getOrderPrice
());
vo
.
setOrderState
(
auctionOrder
.
getOrderState
()
!=
null
?
auctionOrder
.
getOrderState
().
name
()
:
null
);
vo
.
setSettlement
(
auctionOrder
.
isSettlement
());
vo
.
setTransferredTime
(
auctionOrder
.
getTransferredTime
());
}
}
// ==================== 六、快照信息(来自OrderSnapshot) ====================
// 优先使用vrAuditId查询,如果没有则使用publishNo查询
List
<
OrderSnapshot
>
snapshots
=
orderSnapshotRepository
.
findByVrAuditIdAndDeleteFlag
(
id
,
DeleteFlag
.
NOT_DELETED
.
getCode
());
if
(
snapshots
.
isEmpty
()
&&
StringUtils
.
hasText
(
vrAudit
.
getPublishNo
()))
{
snapshots
=
orderSnapshotRepository
.
findByPublishNo
(
vrAudit
.
getPublishNo
());
}
// 取最新的一条快照
if
(!
snapshots
.
isEmpty
())
{
OrderSnapshot
snapshot
=
snapshots
.
get
(
0
);
vo
.
setSnapshotId
(
snapshot
.
getId
());
vo
.
setSnapshotSourceType
(
snapshot
.
getSourceType
());
vo
.
setSnapshotCommissionAmount
(
snapshot
.
getCommissionAmount
());
vo
.
setSnapshotVehicleAmount
(
snapshot
.
getVehicleAmount
());
vo
.
setSnapshotDealPrice
(
snapshot
.
getDealPrice
());
vo
.
setSnapshotTotalAmount
(
snapshot
.
getTotalAmount
());
}
log
.
info
(
"获取发拍单订单详情成功,id={},publishNo={}"
,
id
,
vrAudit
.
getPublishNo
());
return
vo
;
}
/**
* 获取车辆性质名称
*/
private
String
getVehicleNatureName
(
Integer
vehicleNature
)
{
if
(
vehicleNature
==
null
)
{
return
"非营运"
;
}
return
switch
(
vehicleNature
)
{
case
1
->
"非营运"
;
case
2
->
"营运"
;
default
->
"非营运"
;
};
}
}
}
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrLoginService.java
View file @
5ad8e37
...
@@ -9,16 +9,13 @@ import com.glsx.usedcar.module.vrsystem.util.RedisTokenUtil;
...
@@ -9,16 +9,13 @@ import com.glsx.usedcar.module.vrsystem.util.RedisTokenUtil;
import
com.glsx.usedcar.module.vrsystem.vo.VrLoginReqVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrLoginReqVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrLoginRespVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrLoginRespVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrLoginUserVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrLoginUserVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrRoleRespVO
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.security.crypto.password.PasswordEncoder
;
import
org.springframework.security.crypto.password.PasswordEncoder
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.summerframework.core.enums.ErrorCodeEnum
;
import
org.summerframework.core.enums.ErrorCodeEnum
;
import
org.summerframework.core.exception.BusinessCodeException
;
import
org.summerframework.core.exception.BusinessCodeException
;
import
java.util.Optional
;
import
java.util.Optional
;
import
java.util.UUID
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.CompletableFuture
;
/**
/**
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrOrgService.java
View file @
5ad8e37
package
com
.
glsx
.
usedcar
.
module
.
vrsystem
.
service
;
package
com
.
glsx
.
usedcar
.
module
.
vrsystem
.
service
;
import
com.glsx.usedcar.annotation.DataPermission
;
import
com.glsx.usedcar.converts.VrSystemConverter
;
import
com.glsx.usedcar.converts.VrSystemConverter
;
import
com.glsx.usedcar.enums.common.DataPermissionType
;
import
com.glsx.usedcar.enums.common.DeleteFlag
;
import
com.glsx.usedcar.enums.common.DeleteFlag
;
import
com.glsx.usedcar.module.vrsystem.dao.VrOrgRepository
;
import
com.glsx.usedcar.module.vrsystem.dao.VrOrgRepository
;
import
com.glsx.usedcar.module.vrsystem.dao.VrUserOrgRepository
;
import
com.glsx.usedcar.module.vrsystem.dao.VrUserOrgRepository
;
import
com.glsx.usedcar.module.vrsystem.entity.VrOrg
;
import
com.glsx.usedcar.module.vrsystem.entity.VrOrg
;
import
com.glsx.usedcar.module.vrsystem.specifications.VrOrgSpecifications
;
import
com.glsx.usedcar.module.vrsystem.vo.VrOrgAddVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrOrgAddVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrOrgRespVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrOrgRespVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrOrgStoreRespVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrOrgStoreRespVO
;
...
@@ -12,6 +15,7 @@ import com.glsx.usedcar.module.vrsystem.vo.VrOrgTreeRespVO;
...
@@ -12,6 +15,7 @@ import com.glsx.usedcar.module.vrsystem.vo.VrOrgTreeRespVO;
import
com.glsx.usedcar.module.vrsystem.vo.VrOrgUpdateVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrOrgUpdateVO
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -21,6 +25,7 @@ import org.summerframework.core.exception.BusinessCodeException;
...
@@ -21,6 +25,7 @@ import org.summerframework.core.exception.BusinessCodeException;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -147,4 +152,15 @@ public class VrOrgService {
...
@@ -147,4 +152,15 @@ public class VrOrgService {
.
map
(
VrOrg:
:
getOrgName
)
.
map
(
VrOrg:
:
getOrgName
)
.
orElse
(
null
);
.
orElse
(
null
);
}
}
@DataPermission
(
key
=
"orgIds"
,
type
=
DataPermissionType
.
ORG_ID
)
public
List
<
VrOrgStoreRespVO
>
listAllStores
(
Map
<
String
,
Set
<
Long
>>
params
)
{
Specification
<
VrOrg
>
specification
=
VrOrgSpecifications
.
deleteFlagIsN
();
Set
<
Long
>
orgIds
=
params
.
get
(
"orgIds"
);
specification
.
and
(
VrOrgSpecifications
.
orgIdIn
(
orgIds
));
return
vrOrgRepository
.
findAll
(
specification
)
.
stream
()
.
map
(
vrSystemConverter:
:
org2StoreRespVO
)
.
toList
();
}
}
}
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/specifications/VrOrgSpecifications.java
0 → 100644
View file @
5ad8e37
package
com
.
glsx
.
usedcar
.
module
.
vrsystem
.
specifications
;
import
cn.hutool.core.collection.CollUtil
;
import
com.glsx.usedcar.consts.common.CommonConsts
;
import
com.glsx.usedcar.module.vrsystem.entity.VrOrg
;
import
com.glsx.usedcar.module.vrsystem.entity.VrOrg_
;
import
org.springframework.data.jpa.domain.Specification
;
import
java.util.Set
;
/**
* VrOrg 系统的 specifications
* @author yangwei
* @version 1.0
* @since 2026/04/21 10:14
*/
public
class
VrOrgSpecifications
{
/**
* 查询id在指定集合中的
* @author yangwei
* @since 2026/4/21 10:16
* @param ids id 雷彪
* @return org.springframework.data.jpa.domain.Specification<com.glsx.usedcar.module.vrsystem.entity.VrOrg>
*/
public
static
Specification
<
VrOrg
>
orgIdIn
(
Set
<
Long
>
ids
)
{
if
(
CollUtil
.
isEmpty
(
ids
))
{
return
null
;
}
return
(
root
,
query
,
criteriaBuilder
)
->
root
.
get
(
VrOrg_
.
ID
).
in
(
ids
);
}
/**
* 删除标识为N
* @author yangwei
* @since 2026/4/21 10:16
* @return org.springframework.data.jpa.domain.Specification<com.glsx.usedcar.module.vrsystem.entity.VrOrg>
*/
public
static
Specification
<
VrOrg
>
deleteFlagIsN
()
{
return
(
root
,
query
,
criteriaBuilder
)
->
criteriaBuilder
.
equal
(
root
.
get
(
VrOrg_
.
DELETE_FLAG
),
CommonConsts
.
ZERO
);
}
}
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrAuditOrderDetailRespVO.java
0 → 100644
View file @
5ad8e37
package
com
.
glsx
.
usedcar
.
module
.
vrsystem
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.*
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.util.List
;
/**
* 发拍单订单详情响应VO
* 聚合发拍单信息、订单财务清算信息、订单快照
*
* @author yangwei
* @since 2026-04-18
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema
(
description
=
"发拍单订单详情响应"
)
public
class
VrAuditOrderDetailRespVO
{
// ==================== 一、全局状态 ====================
@Schema
(
description
=
"发拍单ID"
)
private
Long
id
;
@Schema
(
description
=
"发拍单当前状态 1:草稿 2:待拍卖 3:拍卖中 4:交易成功 5:流拍 6:已下架"
)
private
Integer
status
;
@Schema
(
description
=
"发拍单状态名称"
)
private
String
statusName
;
@Schema
(
description
=
"发拍单号"
)
private
String
publishNo
;
@Schema
(
description
=
"经销商/门店名称"
)
private
String
orgName
;
@Schema
(
description
=
"提交人姓名"
)
private
String
vrUserName
;
@Schema
(
description
=
"提交人电话"
)
private
String
vrUserPhone
;
@Schema
(
description
=
"申请时间(提交审核时间)"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
LocalDateTime
submitTime
;
// ==================== 二、基础信息档 ====================
@Schema
(
description
=
"VIN车架号"
)
private
String
vin
;
@Schema
(
description
=
"车牌号"
)
private
String
licensePlate
;
@Schema
(
description
=
"品牌名称"
)
private
String
carBrandName
;
@Schema
(
description
=
"车系名称"
)
private
String
carSeriesName
;
@Schema
(
description
=
"车型名称"
)
private
String
carTypeName
;
@Schema
(
description
=
"排量"
)
private
String
displacement
;
@Schema
(
description
=
"变速箱类型 1:手动 2:自动"
)
private
Integer
transmissionType
;
@Schema
(
description
=
"变速箱类型名称"
)
private
String
transmissionTypeName
;
@Schema
(
description
=
"燃料类型 1:汽油 2:柴油 3:电动 4:混动"
)
private
Integer
fuelType
;
@Schema
(
description
=
"燃料类型名称"
)
private
String
fuelTypeName
;
@Schema
(
description
=
"车身颜色"
)
private
String
bodyColor
;
@Schema
(
description
=
"内饰颜色"
)
private
String
interiorColor
;
// ==================== 三、车辆登记履 ====================
@Schema
(
description
=
"上牌日期(YYYY-MM格式)"
)
private
String
registerDate
;
@Schema
(
description
=
"表显里程(万公里)"
)
private
BigDecimal
mileage
;
@Schema
(
description
=
"过户次数"
)
private
Integer
transferCount
;
@Schema
(
description
=
"车辆性质 1:非营运 2:营运"
)
private
Integer
vehicleNature
;
@Schema
(
description
=
"车辆性质名称"
)
private
String
vehicleNatureName
;
// ==================== 四、财务底价与验车图证区 ====================
@Schema
(
description
=
"保留价(万元)"
)
private
BigDecimal
reservePrice
;
@Schema
(
description
=
"前脸照片URL"
)
private
String
photoFront
;
@Schema
(
description
=
"左前45°照片URL"
)
private
String
photoLeftFront
;
@Schema
(
description
=
"右后45°照片URL"
)
private
String
photoRightRear
;
@Schema
(
description
=
"内饰照片URL"
)
private
String
photoInterior
;
@Schema
(
description
=
"仪表盘照片URL"
)
private
String
photoDashboard
;
@Schema
(
description
=
"发动机舱照片URL"
)
private
String
photoEngine
;
@Schema
(
description
=
"后备箱照片URL"
)
private
String
photoTrunk
;
// ==================== 五、财务清算(来自AuctionOrder) ====================
@Schema
(
description
=
"订单ID"
)
private
Integer
orderId
;
@Schema
(
description
=
"订单编号"
)
private
String
orderCode
;
@Schema
(
description
=
"成交价(元)"
)
private
Double
orderPrice
;
@Schema
(
description
=
"订单状态"
)
private
String
orderState
;
@Schema
(
description
=
"是否结算"
)
private
Boolean
settlement
;
@Schema
(
description
=
"过户时间(成交时间)"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
LocalDateTime
transferredTime
;
// ==================== 六、快照信息(来自OrderSnapshot) ====================
@Schema
(
description
=
"快照ID"
)
private
Long
snapshotId
;
@Schema
(
description
=
"快照来源类型 1:VR审核单 2:拍卖订单"
)
private
Integer
snapshotSourceType
;
@Schema
(
description
=
"快照佣金金额(元)"
)
private
BigDecimal
snapshotCommissionAmount
;
@Schema
(
description
=
"快照车辆金额(元)"
)
private
BigDecimal
snapshotVehicleAmount
;
@Schema
(
description
=
"快照成交价(元)"
)
private
BigDecimal
snapshotDealPrice
;
@Schema
(
description
=
"快照总金额(元)"
)
private
BigDecimal
snapshotTotalAmount
;
}
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrUserChangePasswordVO.java
View file @
5ad8e37
...
@@ -25,7 +25,7 @@ public class VrUserChangePasswordVO implements Serializable {
...
@@ -25,7 +25,7 @@ public class VrUserChangePasswordVO implements Serializable {
@Schema
(
description
=
"新密码"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
,
example
=
"NewPass456!"
)
@Schema
(
description
=
"新密码"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
,
example
=
"NewPass456!"
)
@NotBlank
(
message
=
"新密码不能为空"
)
@NotBlank
(
message
=
"新密码不能为空"
)
@Size
(
min
=
6
,
max
=
20
,
message
=
"密码长度必须在{min}至{max}位之间"
)
@Size
(
min
=
6
,
max
=
16
,
message
=
"密码长度必须在{min}至{max}位之间"
)
@Pattern
(
regexp
=
"^[A-Za-z\\d!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]*$"
,
@Pattern
(
regexp
=
"^[A-Za-z\\d!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]*$"
,
message
=
"密码只能包含大小写字母、数字及特殊字符"
)
message
=
"密码只能包含大小写字母、数字及特殊字符"
)
private
String
newPassword
;
private
String
newPassword
;
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrUserPasswordVO.java
View file @
5ad8e37
...
@@ -21,7 +21,7 @@ public class VrUserPasswordVO implements Serializable {
...
@@ -21,7 +21,7 @@ public class VrUserPasswordVO implements Serializable {
@Schema
(
description
=
"新密码"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
,
example
=
"Abc123!@#"
)
@Schema
(
description
=
"新密码"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
,
example
=
"Abc123!@#"
)
@NotBlank
(
message
=
"密码不能为空"
)
@NotBlank
(
message
=
"密码不能为空"
)
@Size
(
min
=
6
,
max
=
20
,
message
=
"密码长度必须在{min}至{max}位之间"
)
@Size
(
min
=
6
,
max
=
16
,
message
=
"密码长度必须在{min}至{max}位之间"
)
@Pattern
(
regexp
=
"^[A-Za-z\\d!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]*$"
,
@Pattern
(
regexp
=
"^[A-Za-z\\d!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]*$"
,
message
=
"密码只能包含大小写字母、数字及特殊字符"
)
message
=
"密码只能包含大小写字母、数字及特殊字符"
)
private
String
password
;
private
String
password
;
...
...
aus-vr-api/src/main/java/com/glsx/usedcar/config/VrApiBeanConfig.java
View file @
5ad8e37
package
com
.
glsx
.
usedcar
.
config
;
package
com
.
glsx
.
usedcar
.
config
;
import
com.glsx.usedcar.security.SpringSecurityAuditor
;
import
com.glsx.usedcar.security.SpringSecurityAuditor
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.data.domain.AuditorAware
;
import
org.springframework.data.domain.AuditorAware
;
/**
/**
*
*
VR API 模块配置
*/
*/
@Configuration
@Configuration
public
class
VrApiBeanConfig
{
public
class
VrApiBeanConfig
{
@Bean
@Bean
@ConditionalOnMissingBean
(
AuditorAware
.
class
)
public
AuditorAware
<
String
>
auditorProvider
()
{
public
AuditorAware
<
String
>
auditorProvider
()
{
return
new
SpringSecurityAuditor
();
return
new
SpringSecurityAuditor
();
}
}
...
...
aus-vr-api/src/main/java/com/glsx/usedcar/controller/RopApiController.java
0 → 100644
View file @
5ad8e37
package
com
.
glsx
.
usedcar
.
controller
;
import
com.alibaba.fastjson2.JSON
;
import
com.glsx.usedcar.gsc.GscApiInvoker
;
import
com.glsx.usedcar.gsc.vo.CarBrandCompleteRespVO
;
import
com.glsx.usedcar.gsc.vo.CarTypeListRespVO
;
import
com.glsx.usedcar.gsc.vo.GscApiResponse
;
import
com.glsx.usedcar.resp.BaseResp
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.Parameter
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* rop api
* @author yangwei
* @version 1.0
* @since 2026/03/24 11:05
*/
@Slf4j
@RestController
@RequestMapping
(
"/rest/ropApi"
)
@RequiredArgsConstructor
@Tag
(
name
=
"rop-api调用前端控制器"
,
description
=
"各类rop-api调用处理"
)
public
class
RopApiController
{
private
final
GscApiInvoker
gscApiInvoker
;
@Operation
(
summary
=
"根据车系ID查询车型列表"
,
description
=
"根据车系ID查询车型列表"
)
@GetMapping
(
"getCarTypeList"
)
public
BaseResp
<
CarTypeListRespVO
>
getCarTypeList
(
@Parameter
(
description
=
"车系ID"
)
@RequestParam
(
value
=
"csId"
,
required
=
false
)
String
csId
)
{
String
jsonResult
=
gscApiInvoker
.
getCarTypeList
(
csId
);
if
(
jsonResult
==
null
)
{
return
BaseResp
.
fail
(
"获取车型列表失败"
);
}
try
{
GscApiResponse
<
CarTypeListRespVO
>
response
=
JSON
.
parseObject
(
jsonResult
,
new
com
.
alibaba
.
fastjson2
.
TypeReference
<
GscApiResponse
<
CarTypeListRespVO
>>()
{});
if
(
"0"
.
equals
(
response
.
getCode
()))
{
return
BaseResp
.
success
(
response
.
getData
());
}
else
{
return
BaseResp
.
fail
(
response
.
getCode
(),
response
.
getMessage
());
}
}
catch
(
Exception
e
)
{
log
.
error
(
"解析车型列表响应失败: {}"
,
e
.
getMessage
());
return
BaseResp
.
fail
(
"解析响应数据失败"
);
}
}
@Operation
(
summary
=
"查询车品牌全称"
,
description
=
"查询车品牌全称(品牌-车系-车型树形结构)"
)
@GetMapping
(
"getCarBrandComplete"
)
public
BaseResp
<
CarBrandCompleteRespVO
>
getCarBrandComplete
()
{
String
jsonResult
=
gscApiInvoker
.
getCarBrandComplete
();
if
(
jsonResult
==
null
)
{
return
BaseResp
.
fail
(
"获取车品牌信息失败"
);
}
try
{
GscApiResponse
<
CarBrandCompleteRespVO
>
response
=
JSON
.
parseObject
(
jsonResult
,
new
com
.
alibaba
.
fastjson2
.
TypeReference
<
GscApiResponse
<
CarBrandCompleteRespVO
>>()
{});
if
(
"0"
.
equals
(
response
.
getCode
()))
{
return
BaseResp
.
success
(
response
.
getData
());
}
else
{
return
BaseResp
.
fail
(
response
.
getCode
(),
response
.
getMessage
());
}
}
catch
(
Exception
e
)
{
log
.
error
(
"解析车品牌响应失败: {}"
,
e
.
getMessage
());
return
BaseResp
.
fail
(
"解析响应数据失败"
);
}
}
}
aus-vr/src/main/java/com/glsx/usedcar/controller/VrAuditController.java
View file @
5ad8e37
...
@@ -10,6 +10,11 @@ import com.glsx.usedcar.module.vehicle.entity.Vehicle_;
...
@@ -10,6 +10,11 @@ import com.glsx.usedcar.module.vehicle.entity.Vehicle_;
import
com.glsx.usedcar.module.vrsystem.entity.VrAudit
;
import
com.glsx.usedcar.module.vrsystem.entity.VrAudit
;
import
com.glsx.usedcar.module.vrsystem.entity.VrAudit_
;
import
com.glsx.usedcar.module.vrsystem.entity.VrAudit_
;
import
com.glsx.usedcar.module.vrsystem.service.VrAuditService
;
import
com.glsx.usedcar.module.vrsystem.service.VrAuditService
;
import
com.glsx.usedcar.module.vrsystem.vo.VrAuditOrderDetailRespVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrAuditPageQueryVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrAuditPageRespVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrAuditRespVO
;
import
com.glsx.usedcar.module.vrsystem.vo.VrAuditSaveReqVO
;
import
com.glsx.usedcar.module.vrsystem.vo.*
;
import
com.glsx.usedcar.module.vrsystem.vo.*
;
import
com.glsx.usedcar.resp.BaseResp
;
import
com.glsx.usedcar.resp.BaseResp
;
import
com.glsx.usedcar.util.UserContext
;
import
com.glsx.usedcar.util.UserContext
;
...
@@ -174,6 +179,18 @@ public class VrAuditController {
...
@@ -174,6 +179,18 @@ public class VrAuditController {
}
}
/**
/**
* 查询发拍单订单详情
* <p>聚合发拍单信息、财务清算信息(AuctionOrder)、快照信息(OrderSnapshot)</p>
*/
@GetMapping
(
"/orderDetail/{id}"
)
@Operation
(
summary
=
"查询发拍单订单详情"
,
description
=
"根据发拍单ID查询订单详情,包含发拍单信息、财务清算信息、快照信息"
)
public
BaseResp
<
VrAuditOrderDetailRespVO
>
orderDetail
(
@PathVariable
Long
id
)
{
log
.
info
(
"查询发拍单订单详情请求: id={}"
,
id
);
VrAuditOrderDetailRespVO
result
=
vrAuditService
.
getOrderDetail
(
id
);
return
BaseResp
.
success
(
result
);
}
/**
* 下架发拍单
* 下架发拍单
* <p>仅草稿状态和待拍卖状态可以下架</p>
* <p>仅草稿状态和待拍卖状态可以下架</p>
*/
*/
...
...
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