Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
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
ff4939e8
Commit
ff4939e8
authored
Oct 19, 2020
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
非平行样 可以多个人检测
parent
77a00448
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
SampleQuery.java
...a/cn/wise/sc/cement/business/model/query/SampleQuery.java
+1
-1
EntrustVo.java
...n/java/cn/wise/sc/cement/business/model/vo/EntrustVo.java
+3
-0
EntrustServiceImpl.java
...e/sc/cement/business/service/impl/EntrustServiceImpl.java
+14
-2
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/model/query/SampleQuery.java
View file @
ff4939e8
...
...
@@ -39,7 +39,7 @@ public class SampleQuery {
@ApiModelProperty
(
"(检测依据编号) 例子:01、23、15"
)
private
String
methodNumbers
;
@ApiModelProperty
(
" 是否平行样(
1是,0否
)"
)
@ApiModelProperty
(
" 是否平行样(
0否,是(2-4,代表要分成几个样品检测),
)"
)
private
Integer
isParallel
;
@ApiModelProperty
(
"本所编号"
)
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/model/vo/EntrustVo.java
View file @
ff4939e8
...
...
@@ -123,4 +123,7 @@ public class EntrustVo {
@ApiModelProperty
(
"任务接受时间"
)
private
LocalDateTime
acceptTime
;
@ApiModelProperty
(
"评审意见"
)
private
String
opinion
;
}
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/EntrustServiceImpl.java
View file @
ff4939e8
...
...
@@ -345,8 +345,8 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
sampleVo
.
setSampleDistributionTeamVoList
(
sampleNoDistributionTeamVoList
);
}
sampleVoList
.
add
(
sampleVo
);
//样品处理列表只展示
if
(
sample
.
getIsParallel
()
==
1
)
{
//样品处理列表只展示
主样信息
if
(
sample
.
getIsParallel
()
!=
0
)
{
if
(
sample
.
getCementCode
().
equals
(
sample
.
getParallelCode
()))
{
sampleHandleVoList
.
add
(
sampleVo
);
}
...
...
@@ -357,6 +357,13 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
}
entrustVo
.
setSampleList
(
sampleVoList
);
//样品列表(展示平行样样品)
entrustVo
.
setSampleHandleList
(
sampleHandleVoList
);
//处理样品列表(不展示平行样样品)
//委托评审意见
QueryWrapper
<
EntrustApproval
>
approvalWrapper
=
new
QueryWrapper
<>();
approvalWrapper
.
eq
(
"entrust_id"
,
entrustVo
.
getId
());
approvalWrapper
.
orderByDesc
(
"id"
);
List
<
EntrustApproval
>
approvalList
=
approvalMapper
.
selectList
(
approvalWrapper
);
EntrustApproval
approval
=
approvalList
.
get
(
0
);
entrustVo
.
setOpinion
(
approval
.
getOpinion
());
}
else
{
QueryWrapper
<
SampleTmp
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"entrust_id"
,
entrustVo
.
getId
());
...
...
@@ -384,6 +391,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
}
entrustVo
.
setSampleTmpList
(
sampleTmpVoList
);
}
LoginUser
loginUser
=
userService
.
getLoginUser
();
if
(
loginUser
==
null
)
{
return
BaseResponse
.
errorMsg
(
"请登录账号"
);
...
...
@@ -1657,6 +1665,10 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
distributionMapper
.
getDistributionTeamList
(
sample
.
getId
(),
null
);
}
}
sampleVo
.
setSampleDistributionTeamVoList
(
sampleDistributionTeamVoList
);
}
else
{
sampleVo
.
setSampleDistributionTeamVoList
(
null
);
...
...
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