Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-strategy
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 16803847
authored
Jun 25, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:代码优化
1 parent
a2f21110
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/job/CustomerTagProfileSyncJob.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/CustomerTagProfileService.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/CustomerTagProfileSyncService.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/job/CustomerTagProfileSyncJob.java
View file @
1680384
package
cn
.
com
.
glsx
.
dj
.
strategy
.
job
;
package
cn
.
com
.
glsx
.
dj
.
strategy
.
job
;
import
cn.com.glsx.dj.strategy.service.CustomerTagProfileS
yncS
ervice
;
import
cn.com.glsx.dj.strategy.service.CustomerTagProfileService
;
import
com.dangdang.ddframe.job.api.ShardingContext
;
import
com.dangdang.ddframe.job.api.ShardingContext
;
import
com.dangdang.ddframe.job.api.simple.SimpleJob
;
import
com.dangdang.ddframe.job.api.simple.SimpleJob
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf
;
import
org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
/**
/**
...
@@ -17,18 +17,18 @@ import org.springframework.stereotype.Component;
...
@@ -17,18 +17,18 @@ import org.springframework.stereotype.Component;
*/
*/
@Slf4j
@Slf4j
@Component
@Component
@RequiredArgsConstructor
@ElasticJobConf
(
name
=
"CustomerTagProfileSyncJob"
,
cron
=
"0 0 2 * * ?"
,
@ElasticJobConf
(
name
=
"CustomerTagProfileSyncJob"
,
cron
=
"0 0 2 * * ?"
,
description
=
"客户标签画像全量同步定时任务"
,
overwrite
=
false
)
description
=
"客户标签画像全量同步定时任务"
,
overwrite
=
false
)
public
class
CustomerTagProfileSyncJob
implements
SimpleJob
{
public
class
CustomerTagProfileSyncJob
implements
SimpleJob
{
private
final
CustomerTagProfileSyncService
customerTagProfileSyncService
;
@Autowired
private
CustomerTagProfileService
customerTagProfileService
;
@Override
@Override
public
void
execute
(
ShardingContext
shardingContext
)
{
public
void
execute
(
ShardingContext
shardingContext
)
{
log
.
info
(
"客户标签画像全量同步定时任务开始执行"
);
log
.
info
(
"客户标签画像全量同步定时任务开始执行"
);
try
{
try
{
CustomerTagProfileS
yncService
.
SyncResult
result
=
customerTagProfileSync
Service
.
syncCustomerTagProfile
();
CustomerTagProfileS
ervice
.
SyncResult
result
=
customerTagProfile
Service
.
syncCustomerTagProfile
();
log
.
info
(
"客户标签画像全量同步定时任务执行完成:成功={}, 跳过={}, 失败={}"
,
log
.
info
(
"客户标签画像全量同步定时任务执行完成:成功={}, 跳过={}, 失败={}"
,
result
.
getSuccessCount
(),
result
.
getSkipCount
(),
result
.
getErrorCount
());
result
.
getSuccessCount
(),
result
.
getSkipCount
(),
result
.
getErrorCount
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/CustomerTagProfileService.java
View file @
1680384
This diff is collapsed.
Click to expand it.
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/CustomerTagProfileSyncService.java
deleted
100644 → 0
View file @
a2f2111
This diff is collapsed.
Click to expand it.
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