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 a6a1e040
authored
Apr 22, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:发拍小程序新增发拍用户隐私协议
1 parent
f3125fdb
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
58 additions
and
7 deletions
aus-admin/src/main/java/com/glsx/usedcar/web/rest/vr/VrAuditController.java
aus-core/src/main/java/com/glsx/usedcar/consts/common/DatePatternConsts.java
aus-core/src/main/java/com/glsx/usedcar/module/business/entity/Agreement.java
aus-core/src/main/java/com/glsx/usedcar/module/business/service/NoticeField.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-vr-api/src/main/java/com/glsx/usedcar/controller/AgreementController.java
aus-admin/src/main/java/com/glsx/usedcar/web/rest/vr/VrAuditController.java
View file @
a6a1e04
...
@@ -31,7 +31,7 @@ public class VrAuditController {
...
@@ -31,7 +31,7 @@ public class VrAuditController {
* <p>根据vehicleId查询对应的发拍单保留价,查询不到则抛出业务异常</p>
* <p>根据vehicleId查询对应的发拍单保留价,查询不到则抛出业务异常</p>
*/
*/
@GetMapping
(
"/reservePrice/{vehicleId}"
)
@GetMapping
(
"/reservePrice/{vehicleId}"
)
@Operation
(
summary
=
"查询发拍单保留价
"
,
description
=
"根据车辆ID查询发拍单配置的保留价,查询不到则抛出业务异常
"
)
@Operation
(
summary
=
"查询发拍单保留价
(万元)"
,
description
=
"根据车辆ID查询发拍单配置的保留价
"
)
public
BaseResp
<
BigDecimal
>
getReservePrice
(
@PathVariable
Integer
vehicleId
)
{
public
BaseResp
<
BigDecimal
>
getReservePrice
(
@PathVariable
Integer
vehicleId
)
{
log
.
info
(
"查询发拍单保留价请求: vehicleId={}"
,
vehicleId
);
log
.
info
(
"查询发拍单保留价请求: vehicleId={}"
,
vehicleId
);
try
{
try
{
...
...
aus-core/src/main/java/com/glsx/usedcar/consts/common/DatePatternConsts.java
View file @
a6a1e04
...
@@ -13,4 +13,6 @@ public interface DatePatternConsts {
...
@@ -13,4 +13,6 @@ public interface DatePatternConsts {
/** "yyyy-MM-dd HH:mm:ss" */
/** "yyyy-MM-dd HH:mm:ss" */
String
PATTERN_YMDHMSS
=
"yyyy-MM-dd HH:mm:ss"
;
String
PATTERN_YMDHMSS
=
"yyyy-MM-dd HH:mm:ss"
;
String
PATTERN_YMDHM
=
"yyyy-MM-dd HH:mm"
;
}
}
aus-core/src/main/java/com/glsx/usedcar/module/business/entity/Agreement.java
View file @
a6a1e04
...
@@ -117,7 +117,13 @@ public class Agreement extends AuditingEntity implements Serializable {
...
@@ -117,7 +117,13 @@ public class Agreement extends AuditingEntity implements Serializable {
/**
/**
* 关于我们
* 关于我们
*/
*/
ABOUT_US
;
ABOUT_US
,
FAPAI_ACCOUNT
,
FAPAI_PRIVACY
,
;
}
}
public
enum
AgreementState
{
public
enum
AgreementState
{
...
...
aus-core/src/main/java/com/glsx/usedcar/module/business/service/NoticeField.java
View file @
a6a1e04
...
@@ -112,7 +112,7 @@ public interface NoticeField {
...
@@ -112,7 +112,7 @@ public interface NoticeField {
/** 车型名称 */
/** 车型名称 */
String
VR_CAR_TYPE_NAME
=
"{{车型名称}}"
;
String
VR_CAR_TYPE_NAME
=
"{{车型名称}}"
;
/** VIN码全文 */
/** VIN码全文 */
String
VR_VIN
=
"{{VIN
码全文
}}"
;
String
VR_VIN
=
"{{VIN}}"
;
/** 发拍时间 */
/** 发拍时间 */
String
VR_PUBLISH_TIME
=
"{{发拍时间}}"
;
String
VR_PUBLISH_TIME
=
"{{发拍时间}}"
;
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrAuditService.java
View file @
a6a1e04
...
@@ -328,7 +328,7 @@ public class VrAuditService {
...
@@ -328,7 +328,7 @@ public class VrAuditService {
NoticeField
.
VR_CAR_SERIES_NAME
,
StrUtil
.
blankToDefault
(
entity
.
getCarSeriesName
(),
StrUtil
.
EMPTY
),
NoticeField
.
VR_CAR_SERIES_NAME
,
StrUtil
.
blankToDefault
(
entity
.
getCarSeriesName
(),
StrUtil
.
EMPTY
),
NoticeField
.
VR_CAR_TYPE_NAME
,
StrUtil
.
blankToDefault
(
entity
.
getCarTypeName
(),
StrUtil
.
EMPTY
),
NoticeField
.
VR_CAR_TYPE_NAME
,
StrUtil
.
blankToDefault
(
entity
.
getCarTypeName
(),
StrUtil
.
EMPTY
),
NoticeField
.
VR_VIN
,
StrUtil
.
blankToDefault
(
entity
.
getVin
(),
StrUtil
.
EMPTY
),
NoticeField
.
VR_VIN
,
StrUtil
.
blankToDefault
(
entity
.
getVin
(),
StrUtil
.
EMPTY
),
NoticeField
.
VR_PUBLISH_TIME
,
DateUtil
.
format
(
submitTime
,
DatePatternConsts
.
PATTERN_YMDHM
SS
)
NoticeField
.
VR_PUBLISH_TIME
,
DateUtil
.
format
(
submitTime
,
DatePatternConsts
.
PATTERN_YMDHM
)
)
)
);
);
log
.
info
(
"发拍提交企微通知发送成功,id={},publishNo={}"
,
entity
.
getId
(),
entity
.
getPublishNo
());
log
.
info
(
"发拍提交企微通知发送成功,id={},publishNo={}"
,
entity
.
getId
(),
entity
.
getPublishNo
());
...
@@ -812,9 +812,9 @@ public class VrAuditService {
...
@@ -812,9 +812,9 @@ public class VrAuditService {
if
(
vrAudit
.
getVehicleNature
()
!=
null
)
ownership
.
setUsageType
(
vrAudit
.
getVehicleNature
());
if
(
vrAudit
.
getVehicleNature
()
!=
null
)
ownership
.
setUsageType
(
vrAudit
.
getVehicleNature
());
// 更新保留价(万元转元)
// 更新保留价(万元转元)
if
(
vrAudit
.
getReservePrice
()
!=
null
)
{
//
if (vrAudit.getReservePrice() != null) {
vehicle
.
setReservePrice
(
vrAudit
.
getReservePrice
().
multiply
(
BigDecimal
.
valueOf
(
10000
)).
doubleValue
());
//
vehicle.setReservePrice(vrAudit.getReservePrice().multiply(BigDecimal.valueOf(10000)).doubleValue());
}
//
}
// 更新车辆图片
// 更新车辆图片
List
<
CarImage
>
carImages
=
buildCarImages
(
vrAudit
);
List
<
CarImage
>
carImages
=
buildCarImages
(
vrAudit
);
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrLoginService.java
View file @
a6a1e04
...
@@ -220,6 +220,7 @@ public class VrLoginService {
...
@@ -220,6 +220,7 @@ public class VrLoginService {
.
userName
(
userDTO
.
getUserName
())
.
userName
(
userDTO
.
getUserName
())
.
roleId
(
userDTO
.
getRoleId
())
.
roleId
(
userDTO
.
getRoleId
())
.
orgId
(
userDTO
.
getOrgId
())
.
orgId
(
userDTO
.
getOrgId
())
.
roleCode
(
userDTO
.
getRoleCode
())
.
orgName
(
orgName
)
.
orgName
(
orgName
)
.
build
();
.
build
();
...
...
aus-vr-api/src/main/java/com/glsx/usedcar/controller/AgreementController.java
0 → 100644
View file @
a6a1e04
package
com
.
glsx
.
usedcar
.
controller
;
import
com.glsx.usedcar.module.business.entity.Agreement
;
import
com.glsx.usedcar.module.business.service.AgreementService
;
import
jakarta.annotation.Resource
;
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
;
/**
* 协议管理(Agreement) PI接口
*
* @since 2025-10-13 12:18:11
*/
@Slf4j
@RestController
@RequestMapping
(
"/api/agreement"
)
public
class
AgreementController
{
/**
* Agreement服务对象
*/
@Resource
private
AgreementService
agreementService
;
/**
* 根据id查询协议管理
*
* @param agreementKey
* @return
*/
@GetMapping
(
"getAgreementByKey"
)
public
Agreement
getAgreementByKey
(
@RequestParam
Agreement
.
AgreementKey
agreementKey
)
{
return
agreementService
.
getAgreementByKey
(
agreementKey
);
}
}
\ No newline at end of file
\ 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