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
252b35af
Commit
252b35af
authored
Aug 28, 2023
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.压测优化
parent
94192156
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+8
-16
No files found.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
252b35af
...
@@ -193,6 +193,8 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -193,6 +193,8 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
private
static
String
ORG_BRANCH_CODE
=
"supervise_org_code"
;
private
static
String
ORG_BRANCH_CODE
=
"supervise_org_code"
;
private
ExecutorService
threadPool
=
Executors
.
newCachedThreadPool
();
/**
/**
* 分页查询
* 分页查询
*/
*/
...
@@ -1389,23 +1391,13 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -1389,23 +1391,13 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
if
(
log
.
isInfoEnabled
())
{
if
(
log
.
isInfoEnabled
())
{
log
.
info
(
"通用提交耗时:{} 秒"
,
stopWatch3
.
getTotalTimeSeconds
());
log
.
info
(
"通用提交耗时:{} 秒"
,
stopWatch3
.
getTotalTimeSeconds
());
}
}
StopWatch
stopWatch5
=
new
StopWatch
();
threadPool
.
submit
(()
->
{
stopWatch5
.
start
();
log
.
info
(
"已生成对应监管码"
+
supervisionMap
.
get
(
"SUPERVISORY_CODE"
));
ExecutorService
threadPool
=
Executors
.
newCachedThreadPool
();
log
.
info
(
"已生成对应96333电梯识别码"
+
supervisionMap
.
get
(
"CODE96333"
));
threadPool
.
submit
(
new
Runnable
()
{
supervisoryCodeInfoMapper
.
update
(
supervisoryCodeInfo
,
new
QueryWrapper
<
SupervisoryCodeInfo
>().
eq
(
"supervisory_code"
,
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
@Override
log
.
info
(
"unitCode-------->>>>>>>>>>{}"
,
unitCode
);
public
void
run
()
{
// updateEquipmentCategoryData(unitCode);
log
.
info
(
"已生成对应监管码"
+
supervisionMap
.
get
(
"SUPERVISORY_CODE"
));
log
.
info
(
"已生成对应96333电梯识别码"
+
supervisionMap
.
get
(
"CODE96333"
));
supervisoryCodeInfoMapper
.
update
(
supervisoryCodeInfo
,
new
QueryWrapper
<
SupervisoryCodeInfo
>().
eq
(
"supervisory_code"
,
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
log
.
info
(
"unitCode-------->>>>>>>>>>{}"
,
unitCode
);
updateEquipmentCategoryData
(
unitCode
);
}
});
});
stopWatch5
.
stop
();
if
(
log
.
isInfoEnabled
())
{
log
.
info
(
"异步操作耗时:{} 秒"
,
stopWatch5
.
getTotalTimeSeconds
());
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
equipmentCategoryMapper
.
updateIsNotEs
(
String
.
valueOf
(
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
equipmentCategoryMapper
.
updateIsNotEs
(
String
.
valueOf
(
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
...
...
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