Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
Overview
Overview
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
wangweidong
patzn-cloud-service-hmhj
Commits
95b4394e
Commit
95b4394e
authored
Jun 01, 2022
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化霍煤响应速度;
parent
c465c0f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
EntrustSampleItemServiceImpl.java
.../lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
+14
-13
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
View file @
95b4394e
...
...
@@ -1224,7 +1224,8 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
EntrustSample
sample
=
sampleVO
.
convert
(
EntrustSample
.
class
);
logger
.
error
(
"====样品编号:{},样品名称:{}"
,
sample
.
getCode
(),
sample
.
getName
());
// 若为此标准,需要判断是否需要过滤掉稀有元素的判断
boolean
isSpecStandard
=
sampleVO
.
getProductCode
().
contains
(
"GB/T 1196 2017"
);
String
productCode
=
null
==
sampleVO
.
getProductCode
()
?
""
:
sampleVO
.
getProductCode
();
boolean
isSpecStandard
=
productCode
.
contains
(
"GB/T 1196 2017"
);
logger
.
error
(
"====是否GB/T 1196 2017标准:"
+
isSpecStandard
);
// 检测值【内部检测值实际为指标表中数据,外委检测值为检测项目数据】
// 从总集合中过滤出
...
...
@@ -1442,18 +1443,18 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
Map
<
Long
,
String
>
finalSampleBrandMap
=
sampleBrandMap
;
//
executor1.execute(() -> {
//
// 处理正常的报告文件
//
handleSampleBrand(ids, finalSampleBrandMap, false);
//
// 处理一级编码的报告文件
//
handleSampleBrand(ids, finalSampleBrandMap, true);
//
});
//
executor1.execute(() -> {
//
// 针对铝成品和原铝进行发送ERP数据处理
//
logger.error("{}开始执行发送ERP请求:---->ERP---", DateUtils.toYearMonthDayTime(new Date()));
//
sendTestDataToErp(Arrays.asList(ids), finalSampleBrandMap);
//
});
executor1
.
execute
(()
->
{
// 处理正常的报告文件
handleSampleBrand
(
ids
,
finalSampleBrandMap
,
false
);
// 处理一级编码的报告文件
handleSampleBrand
(
ids
,
finalSampleBrandMap
,
true
);
});
executor1
.
execute
(()
->
{
// 针对铝成品和原铝进行发送ERP数据处理
logger
.
error
(
"{}开始执行发送ERP请求:---->ERP---"
,
DateUtils
.
toYearMonthDayTime
(
new
Date
()));
sendTestDataToErp
(
Arrays
.
asList
(
ids
),
finalSampleBrandMap
);
});
logger
.
error
(
"======================质量判定结束========================"
);
return
true
;
}
...
...
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