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
6c1fa63a
Commit
6c1fa63a
authored
Mar 11, 2021
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
0657b028
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
5 deletions
+40
-5
IEntrustService.java
...a/cn/wise/sc/cement/business/service/IEntrustService.java
+1
-1
CommonServiceImpl.java
...se/sc/cement/business/service/impl/CommonServiceImpl.java
+2
-0
EntrustServiceImpl.java
...e/sc/cement/business/service/impl/EntrustServiceImpl.java
+37
-4
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/service/IEntrustService.java
View file @
6c1fa63a
...
...
@@ -96,7 +96,7 @@ public interface IEntrustService extends IService<Entrust> {
BaseResponse
<
CheckUserResultVo
>
getCheckResult
(
Integer
entrustId
,
Integer
userId
);
BaseResponse
<
Map
<
String
,
String
>>
checkCountFast
(
CheckCountFastQuery
query
);
BaseResponse
<
Map
<
String
,
Object
>>
checkCountFast
(
CheckCountFastQuery
query
);
BaseResponse
<
String
>
checkCountNew
(
CheckCountNewQuery
query
);
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/CommonServiceImpl.java
View file @
6c1fa63a
...
...
@@ -198,10 +198,12 @@ public class CommonServiceImpl {
JSONObject
jsonObjectInput
=
jsonArray
.
getJSONObject
(
j
);
if
(
jsonObjectInput
.
get
(
"name"
).
equals
(
jsonObjectGroup
.
get
(
"name"
))){
jsonObjectInput
.
put
(
"retain"
,
jsonObjectGroup
.
getString
(
"retain"
));
jsonObjectInput
.
put
(
"isinput"
,
jsonObjectGroup
.
getString
(
"isinput"
));
break
;
}
}
}
if
(
jsonObjectGroup
.
containsKey
(
"TSiO<sub>2</sub>"
)){
if
(
map
.
containsKey
(
"TSiO<sub>2</sub>"
)){
jsonObjectGroup
.
put
(
"TSiO<sub>2</sub>"
,
map
.
get
(
"TSiO<sub>2</sub>"
));
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/EntrustServiceImpl.java
View file @
6c1fa63a
...
...
@@ -3551,7 +3551,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
*/
@Transactional
@Override
public
BaseResponse
<
Map
<
String
,
String
>>
checkCountFast
(
CheckCountFastQuery
query
)
{
public
BaseResponse
<
Map
<
String
,
Object
>>
checkCountFast
(
CheckCountFastQuery
query
)
{
if
(
query
==
null
)
{
return
BaseResponse
.
errorMsg
(
"参数错误"
);
}
...
...
@@ -3571,12 +3571,42 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
}
JSONArray
inputResult_jsonArray
=
commonService
.
mapToJSONArray2
(
query
.
getUserId
(),
query
.
getTeamGroupId
(),
query
.
getIntputResult
());
String
inputResult_String
=
JSON
.
toJSON
(
inputResult_jsonArray
).
toString
();
System
.
out
.
println
(
inputResult_String
);
//计算检测结果
Map
<
String
,
String
>
resultMap
=
commonService
.
checkCount
(
checkResutlList
,
query
.
getIntputResult
());
return
BaseResponse
.
okData
(
resultMap
);
//如果存在工业分析检测组的检测项,需要把 Mad1 Mad2 Aad1 Aad2 Vad1 Vad2 的值展示出来
if
(
inputResult_jsonArray
!=
null
){
for
(
int
i
=
0
;
i
<
inputResult_jsonArray
.
size
();
i
++){
JSONObject
jsonObjectInput
=
inputResult_jsonArray
.
getJSONObject
(
i
);
if
(
jsonObjectInput
.
get
(
"name"
).
equals
(
"Mad1"
)){
jsonObjectInput
.
put
(
"value"
,
resultMap
.
get
(
"Mad1"
));
}
if
(
jsonObjectInput
.
get
(
"name"
).
equals
(
"Mad2"
)){
jsonObjectInput
.
put
(
"value"
,
resultMap
.
get
(
"Mad2"
));
}
if
(
jsonObjectInput
.
get
(
"name"
).
equals
(
"Aad1"
)){
jsonObjectInput
.
put
(
"value"
,
resultMap
.
get
(
"Aad1"
));
}
if
(
jsonObjectInput
.
get
(
"name"
).
equals
(
"Aad2"
)){
jsonObjectInput
.
put
(
"value"
,
resultMap
.
get
(
"Aad2"
));
}
if
(
jsonObjectInput
.
get
(
"name"
).
equals
(
"Vad1"
)){
jsonObjectInput
.
put
(
"value"
,
resultMap
.
get
(
"Vad1"
));
}
if
(
jsonObjectInput
.
get
(
"name"
).
equals
(
"Vad2"
)){
jsonObjectInput
.
put
(
"value"
,
resultMap
.
get
(
"Vad2"
));
}
}
}
String
inputResult_String
=
JSON
.
toJSON
(
inputResult_jsonArray
).
toString
();
System
.
out
.
println
(
inputResult_String
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"inputResult"
,
inputResult_String
);
map
.
put
(
"resultMap"
,
resultMap
);
return
BaseResponse
.
okData
(
map
);
}
...
...
@@ -3633,8 +3663,11 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
sampleDistributionCheckinputMapper
.
selectList
(
checkinputQueryWrapper
);
SampleDistributionCheckinput
checkinput
=
null
;
JSONArray
inputResult_jsonArray
=
commonService
.
mapToJSONArray2
(
query
.
getUserId
(),
query
.
getTeamGroupId
(),
query
.
getIntputResult
());
String
inputResult_String
=
JSON
.
toJSON
(
inputResult_jsonArray
).
toString
();
System
.
out
.
println
(
inputResult_String
);
if
(
checkinputList
!=
null
&&
checkinputList
.
size
()
>
0
){
checkinput
=
checkinputList
.
get
(
0
);
checkinput
.
setCheckUserId
(
loginUser
.
getId
())
...
...
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