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 9512e0f1
authored
Aug 17, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v5.8.5' of
http://192.168.3.233:8090/usedCarAuction/aus
into v5.8.5
2 parents
3136f28f
c2e9da45
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
5 deletions
aus-core/src/main/java/com/glsx/usedcar/module/system/enums/SystemConfigKeyEnum.java
aus-core/src/main/java/com/glsx/usedcar/module/system/service/SystemConfigService.java
aus-front/app/src/pages/tabbar/ProfilePage.vue
aus-task/src/main/java/com/glsx/usedcar/task/TransferMaterialsSyncSchedule.java
aus-core/src/main/java/com/glsx/usedcar/module/system/enums/SystemConfigKeyEnum.java
View file @
9512e0f
...
@@ -11,6 +11,7 @@ import lombok.Getter;
...
@@ -11,6 +11,7 @@ import lombok.Getter;
public
enum
SystemConfigKeyEnum
{
public
enum
SystemConfigKeyEnum
{
MAIN_PAGE_SCRIPT
(
"main_page_script"
,
"首页脚本"
),
MAIN_PAGE_SCRIPT
(
"main_page_script"
,
"首页脚本"
),
MAIN_PAGE_LINK
(
"main_page_link"
,
"首页链接"
),
MAIN_PAGE_LINK
(
"main_page_link"
,
"首页链接"
),
TRANSFER_MATERIALS_SYNCED
(
"transfer_materials_synced"
,
"过户资料是否已同步"
),
;
;
private
String
key
;
private
String
key
;
private
String
desc
;
private
String
desc
;
...
...
aus-core/src/main/java/com/glsx/usedcar/module/system/service/SystemConfigService.java
View file @
9512e0f
...
@@ -221,4 +221,25 @@ public class SystemConfigService {
...
@@ -221,4 +221,25 @@ public class SystemConfigService {
return
StringUtils
.
hasText
(
configOpt
.
get
().
getConfigValue
())
return
StringUtils
.
hasText
(
configOpt
.
get
().
getConfigValue
())
?
configOpt
.
get
().
getConfigValue
()
:
defaultValue
;
?
configOpt
.
get
().
getConfigValue
()
:
defaultValue
;
}
}
/**
* 更新配置值(根据配置键)
* @param configKey 配置键
* @param configValue 新配置值
* @param operator 操作人
* @return 是否更新成功
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
updateConfigValue
(
String
configKey
,
String
configValue
,
String
operator
)
{
SystemConfig
config
=
systemConfigDao
.
findByConfigKeyAndDeletedFlag
(
configKey
,
"N"
);
if
(
config
==
null
)
{
log
.
warn
(
"配置键[{}]不存在,无法更新"
,
configKey
);
return
false
;
}
config
.
setConfigValue
(
configValue
);
config
.
setUpdatedBy
(
operator
);
systemConfigDao
.
save
(
config
);
log
.
info
(
"更新配置成功,配置键: {}, 新值: {}"
,
configKey
,
configValue
);
return
true
;
}
}
}
\ No newline at end of file
\ No newline at end of file
aus-front/app/src/pages/tabbar/ProfilePage.vue
View file @
9512e0f
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
<!-- 升级到车商参拍权 -->
<!-- 升级到车商参拍权 -->
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFIED' && accountInfo?.platformContractSigned && accountInfo?.platformContractSignTime"
>
<
template
v-if=
"accountInfo?.certifiedState === 'CERTIFIED' && accountInfo?.platformContractSigned && accountInfo?.platformContractSignTime"
>
<account-auth-section
title=
"恭喜你,获得参拍资格"
desc=
"点击查看按钮可继续升级参拍权"
button=
"去查看"
<account-auth-section
title=
"恭喜你,获得参拍资格"
desc=
"点击查看按钮可继续升级参拍权"
button=
"去查看"
url=
"/module/account/C
ompanyCertificationPage
"
></account-auth-section>
url=
"/module/account/C
ertificationResult
"
></account-auth-section>
</
template
>
</
template
>
</template>
</template>
<
template
v-if=
"accountInfo.accountType === 'COMPANY'"
>
<
template
v-if=
"accountInfo.accountType === 'COMPANY'"
>
...
...
aus-task/src/main/java/com/glsx/usedcar/task/TransferMaterialsSyncSchedule.java
View file @
9512e0f
...
@@ -2,6 +2,8 @@ package com.glsx.usedcar.task;
...
@@ -2,6 +2,8 @@ package com.glsx.usedcar.task;
import
com.glsx.usedcar.gsc.GscInvoker
;
import
com.glsx.usedcar.gsc.GscInvoker
;
import
com.glsx.usedcar.gsc.dto.VehicleSyncDataDTO
;
import
com.glsx.usedcar.gsc.dto.VehicleSyncDataDTO
;
import
com.glsx.usedcar.module.system.enums.SystemConfigKeyEnum
;
import
com.glsx.usedcar.module.system.service.SystemConfigService
;
import
com.glsx.usedcar.module.vehicle.dao.VehicleDao
;
import
com.glsx.usedcar.module.vehicle.dao.VehicleDao
;
import
com.glsx.usedcar.module.vehicle.entity.Vehicle
;
import
com.glsx.usedcar.module.vehicle.entity.Vehicle
;
import
com.glsx.usedcar.module.vehicle.entity.Vehicle_
;
import
com.glsx.usedcar.module.vehicle.entity.Vehicle_
;
...
@@ -23,6 +25,14 @@ import java.util.Map;
...
@@ -23,6 +25,14 @@ import java.util.Map;
* <p>
* <p>
* 从收车端同步存量车辆的过户资料和评估人员信息
* 从收车端同步存量车辆的过户资料和评估人员信息
* </p>
* </p>
* <p>
* 同步状态说明(通过 system_config.transfer_materials_synced 控制):
* <ul>
* <li>0: 未执行,开始执行</li>
* <li>1: 执行中,跳过</li>
* <li>2: 已完成,跳过</li>
* </ul>
* </p>
*/
*/
@Slf4j
@Slf4j
@Component
@Component
...
@@ -37,23 +47,51 @@ public class TransferMaterialsSyncSchedule {
...
@@ -37,23 +47,51 @@ public class TransferMaterialsSyncSchedule {
@Resource
@Resource
private
GscInvoker
gscInvoker
;
private
GscInvoker
gscInvoker
;
@Resource
private
SystemConfigService
systemConfigService
;
/**
/**
* 每批次处理数量
* 每批次处理数量
*/
*/
private
static
final
int
BATCH_SIZE
=
100
;
private
static
final
int
BATCH_SIZE
=
100
;
/**
/**
* 同步状态常量
*/
private
static
final
String
STATUS_NOT_SYNCED
=
"0"
;
private
static
final
String
STATUS_SYNCING
=
"1"
;
private
static
final
String
STATUS_SYNCED
=
"2"
;
/**
* 定时同步车辆数据
* 定时同步车辆数据
* <p>
* <p>
* 每
小时执行一次,同步收车端来源的车辆过户资料和评估人员信息
* 每
30分钟执行一次,检查同步状态,仅当状态为0时执行
* </p>
* </p>
*/
*/
@Scheduled
(
fixedDelay
=
1000
*
60
*
60
,
initialDelay
=
1000
*
60
*
5
)
@Scheduled
(
fixedDelay
=
1000
*
60
*
30
)
public
void
syncTransferMaterials
()
{
public
void
syncTransferMaterials
()
{
log
.
info
(
"开始执行车辆同步数据定时任务"
);
String
configKey
=
SystemConfigKeyEnum
.
TRANSFER_MATERIALS_SYNCED
.
getKey
();
String
status
=
systemConfigService
.
getConfigValueAsString
(
configKey
,
STATUS_NOT_SYNCED
);
// 状态为2(已完成)或1(执行中),跳过
if
(
STATUS_SYNCED
.
equals
(
status
))
{
log
.
debug
(
"过户资料同步任务已完成,跳过"
);
return
;
}
if
(
STATUS_SYNCING
.
equals
(
status
))
{
log
.
info
(
"过户资料同步任务执行中,跳过"
);
return
;
}
// 状态为0(未执行),开始同步
log
.
info
(
"开始执行过户资料同步任务"
);
int
totalSynced
=
0
;
int
totalSynced
=
0
;
int
totalFailed
=
0
;
int
totalFailed
=
0
;
try
{
// 更新状态为执行中
systemConfigService
.
updateConfigValue
(
configKey
,
STATUS_SYNCING
,
"system"
);
// 分页查询收车端来源的车辆
// 分页查询收车端来源的车辆
int
page
=
0
;
int
page
=
0
;
Page
<
Vehicle
>
vehiclePage
;
Page
<
Vehicle
>
vehiclePage
;
...
@@ -127,6 +165,11 @@ public class TransferMaterialsSyncSchedule {
...
@@ -127,6 +165,11 @@ public class TransferMaterialsSyncSchedule {
page
++;
page
++;
}
while
(
vehiclePage
.
hasNext
());
}
while
(
vehiclePage
.
hasNext
());
log
.
info
(
"车辆同步数据定时任务完成,成功: {}, 失败: {}"
,
totalSynced
,
totalFailed
);
log
.
info
(
"车辆同步数据任务完成,成功: {}, 失败: {}"
,
totalSynced
,
totalFailed
);
}
finally
{
// 更新状态为已完成
systemConfigService
.
updateConfigValue
(
configKey
,
STATUS_SYNCED
,
"system"
);
}
}
}
}
}
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