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
6664730a
Commit
6664730a
authored
Nov 03, 2020
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
委托列表增加委托报告下载功能
parent
e9233d0b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
EntityEnclosure.java
...va/cn/wise/sc/cement/business/entity/EntityEnclosure.java
+1
-0
EntrustVo.java
...n/java/cn/wise/sc/cement/business/model/vo/EntrustVo.java
+13
-0
EntrustServiceImpl.java
...e/sc/cement/business/service/impl/EntrustServiceImpl.java
+15
-2
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/entity/EntityEnclosure.java
View file @
6664730a
...
...
@@ -64,6 +64,7 @@ public class EntityEnclosure implements Serializable {
int
HEAD
=
0
;
int
EQUIPMENT_TEST
=
3
;
int
STANDARD_SAMPLE
=
4
;
int
ENTRUST_REPORT
=
5
;
}
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/model/vo/EntrustVo.java
View file @
6664730a
...
...
@@ -126,4 +126,17 @@ public class EntrustVo {
@ApiModelProperty
(
"评审意见"
)
private
String
opinion
;
@ApiModelProperty
(
"文件名"
)
private
String
alias
;
@ApiModelProperty
(
"扩展名"
)
private
String
extName
;
@ApiModelProperty
(
"路径"
)
private
String
enclosureUrl
;
}
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/EntrustServiceImpl.java
View file @
6664730a
...
...
@@ -119,8 +119,8 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
private
INormProductionService
iNormProductionService
;
@Autowired
private
IPrecipriceService
iPrecipriceService
;
@Resource
private
EntityEnclosureMapper
entityEnclosureMapper
;
/**
* 委托分页
*
...
...
@@ -186,6 +186,19 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
entrustVo
.
setCheckTeam
(
checkTeam
);
entrustVo
.
setCheckMethodNumber
(
sampleTmp
.
getMethodNumbers
());
}
//查询报告,如果有上传的委托报告,用户可已进行下载
QueryWrapper
<
EntityEnclosure
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
"entity_type"
,
EntityEnclosure
.
EntityType
.
ENTRUST_REPORT
);
wrapper
.
eq
(
"entity_id"
,
entrustVo
.
getId
());
wrapper
.
eq
(
"is_deleted"
,
1
);
List
<
EntityEnclosure
>
entityEnclosureList
=
entityEnclosureMapper
.
selectList
(
wrapper
);
if
(
entityEnclosureList
!=
null
&&
entityEnclosureList
.
size
()>
0
){
EntityEnclosure
entityEnclosure
=
entityEnclosureList
.
get
(
0
);
entrustVo
.
setAlias
(
entityEnclosure
.
getAlias
());
entrustVo
.
setEnclosureUrl
(
entityEnclosure
.
getEnclosureUrl
());
entrustVo
.
setExtName
(
entityEnclosure
.
getExtName
());
}
}
}
pages
.
setRecords
(
list
);
...
...
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