Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
f182ee34
Commit
f182ee34
authored
Jul 19, 2023
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加日志打印及自动任务调整为没1分钟执行一次
parent
beb45ea3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
RegUnitInfoServiceImpl.java
...dule/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+10
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
f182ee34
...
...
@@ -235,18 +235,27 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
return
model
;
}
@Scheduled
(
cron
=
"
* 0/1 * * * ?
"
)
@Scheduled
(
cron
=
"
${async.set.qr-code.cron:0 0/1 * * * ?}
"
)
public
void
asyncSetQrCode
(){
//给所有新注册的企业创建二维码,每次处理100个,不排序
if
(
log
.
isDebugEnabled
()){
log
.
debug
(
"新注册企业二维码生成开始"
);
}
LambdaQueryWrapper
<
TzBaseEnterpriseInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
notLike
(
TzBaseEnterpriseInfo:
:
getQrCode
,
"upload"
);
wrapper
.
last
(
"limit 100"
);
List
<
TzBaseEnterpriseInfo
>
noQrCodeList
=
tzBaseEnterpriseInfoMapper
.
selectList
(
wrapper
);
if
(
noQrCodeList
.
isEmpty
()){
if
(
log
.
isDebugEnabled
()){
log
.
debug
(
"暂无待生成二维码的企业"
);
}
return
;
}
noQrCodeList
.
forEach
(
e
->
e
.
setQrCode
(
createQRCode
(
e
.
getUseCode
())));
tzBaseEnterpriseInfoService
.
saveOrUpdateBatch
(
noQrCodeList
);
if
(
log
.
isDebugEnabled
()){
log
.
debug
(
"新注册企业二维码生成结束"
);
}
}
private
FutureTask
<
ResponseModel
<
Boolean
>>
getResponseModelFutureTask
(
RegUnitInfoDto
model
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment