Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
tianjin-cement
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
竹天卫
tianjin-cement
Commits
53262371
Commit
53262371
authored
Apr 12, 2021
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
平行样 必须全部校核完才可以显示 检测结果
parent
ee9bc67a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
9 deletions
+36
-9
pom.xml
cement-business/pom.xml
+6
-6
CommonServiceImpl.java
...se/sc/cement/business/service/impl/CommonServiceImpl.java
+3
-0
EntrustServiceImpl.java
...e/sc/cement/business/service/impl/EntrustServiceImpl.java
+26
-2
CheckCountUtil.java
.../java/cn/wise/sc/cement/business/util/CheckCountUtil.java
+1
-1
No files found.
cement-business/pom.xml
View file @
53262371
...
...
@@ -204,9 +204,9 @@
<properties>
<env>
dev
</env>
<!-- 节点名字environment是自己随意取的 -->
</properties>
<!--
<activation>
<activeByDefault>true</activeByDefault>
<!– 默认激活该profile节点–>
</activation>
-->
<activation>
<activeByDefault>
true
</activeByDefault>
<!-- 默认激活该profile节点-->
</activation>
</profile>
<profile>
<!-- 生产环境 -->
...
...
@@ -224,9 +224,9 @@
<properties>
<env>
show
</env>
</properties>
<activation>
<activeByDefault>
true
</activeByDefault>
<!-- 默认激活该profile节点-->
</activation>
<
!--<
activation>
<activeByDefault>true</activeByDefault>
<!– 默认激活该profile节点–>
</activation>
-->
</profile>
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/CommonServiceImpl.java
View file @
53262371
...
...
@@ -364,6 +364,9 @@ public class CommonServiceImpl {
countMap
.
put
(
name
,
CheckCountUtil
.
countSxzs
(
resultMap
));
}
//拼接的值的保留位数数据库 retain字段必须为null
// 焦渣 塑性指数 辊磨 可磨 易磨性 工业分析 易烧性
/*else if(name.equals("St,ad")){
countMap.put(name, CheckCountUtil.checkCount(name, resultMap));
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/EntrustServiceImpl.java
View file @
53262371
...
...
@@ -1281,11 +1281,35 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
for
(
SampleDistributionTeamVo
sampleDistributionTeamVo
:
sampleDistributionTeamVoList
)
{
SampleDistribution
sampleDistribution
=
distributionMapper
.
selectById
(
sampleDistributionTeamVo
.
getDistributionId
());
//该检测项的误差结果值和最终结果值
if
(
sampleDistribution
.
getCheckId
()
!=
null
)
{
//获取其他平行样的结果值 如果是平行样 必须都校核通过才可以显示结果。
int
noCheckOver
=
0
;
List
<
Sample
>
otherSampleList
=
sampleMapper
.
getOtherSampleList
(
entrust
.
getId
(),
sample
.
getCementCode
(),
sample
.
getId
());
if
(
otherSampleList
!=
null
&&
otherSampleList
.
size
()
>
0
)
{
for
(
Sample
s
:
otherSampleList
)
{
QueryWrapper
<
SampleDistribution
>
ortherWrapper
=
new
QueryWrapper
<>();
ortherWrapper
.
eq
(
"entrust_id"
,
entrust
.
getId
());
ortherWrapper
.
eq
(
"sample_id"
,
s
.
getId
());
ortherWrapper
.
eq
(
"team_group_id"
,
sampleDistribution
.
getTeamGroupId
());
ortherWrapper
.
eq
(
"team_id"
,
sampleDistribution
.
getTeamId
());
List
<
SampleDistribution
>
ortherDdistributionList
=
distributionMapper
.
selectList
(
ortherWrapper
);
if
(
ortherDdistributionList
.
size
()
>
1
)
{
return
BaseResponse
.
errorMsg
(
"检测派发表检测项信息重复"
);
}
if
(
ortherDdistributionList
!=
null
&&
ortherDdistributionList
.
size
()
>
0
)
{
SampleDistribution
other
=
ortherDdistributionList
.
get
(
0
);
if
(
other
.
getCheckId
()
==
null
){
noCheckOver
=
noCheckOver
+
1
;
}
}
}
}
if
(
sampleDistribution
.
getCheckId
()
!=
null
&&
noCheckOver
==
0
)
{
SampleDistributionCheck
disCheck
=
sampleDistributionCheckMapper
.
selectById
(
sampleDistribution
.
getCheckId
());
sampleDistributionTeamVo
.
setLastResult
(
disCheck
.
getLastResult
());
}
else
{
sampleDistributionTeamVo
.
setLastResult
(
sampleDistribution
.
getDistributionResult
()
);
sampleDistributionTeamVo
.
setLastResult
(
null
);
}
TeamGroup
teamGroup
=
teamGroupMapper
.
selectById
(
sampleDistribution
.
getTeamGroupId
());
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/util/CheckCountUtil.java
View file @
53262371
...
...
@@ -431,7 +431,7 @@ public class CheckCountUtil {
ZYL
=
resultMap
.
get
(
"制样率"
).
trim
();
}
count
=
"HGI="
+
HGI
+
" \n 制样率="
+
ZYL
;
count
=
"HGI="
+
HGI
+
" \n 制样率="
+
ZYL
+
"%"
;
return
count
;
}
...
...
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