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
8c941a2a
Commit
8c941a2a
authored
Nov 26, 2020
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
c9c89d36
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
3 deletions
+40
-3
FileExt.java
...in/java/cn/wise/sc/cement/business/enumation/FileExt.java
+1
-0
TeamMapper.xml
...java/cn/wise/sc/cement/business/mapper/xml/TeamMapper.xml
+1
-1
EntrustServiceImpl.java
...e/sc/cement/business/service/impl/EntrustServiceImpl.java
+38
-2
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/enumation/FileExt.java
View file @
8c941a2a
...
...
@@ -20,6 +20,7 @@ public enum FileExt {
//office后缀名
DOC
(
".doc"
),
DOCX
(
".docx"
),
EXCL
(
".xls"
),
PDF
(
"pdf"
),
EXCLX
(
".xlsx"
);
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/mapper/xml/TeamMapper.xml
View file @
8c941a2a
...
...
@@ -93,7 +93,7 @@
SELECT t.name
FROM team t
WHERE t.group_id = #{groupId} and t.status = 1
and t.remark
!= 'no_check'
and t.remark
is null
</select>
<!--根据检测组id 获取所有检测项信息-->
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/EntrustServiceImpl.java
View file @
8c941a2a
...
...
@@ -624,6 +624,32 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
entrustVo
.
setEnclosureUrl
(
entityEnclosure
.
getPdfUrl
());
entrustVo
.
setExtName
(
entityEnclosure
.
getExtName
());
}
}
else
{
QueryWrapper
<
SampleTmp
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"entrust_id"
,
entrustVo
.
getId
());
List
<
SampleTmp
>
sampleTmpList
=
sampleTmpService
.
list
(
queryWrapper
);
List
<
SampleTmpVo
>
sampleTmpVoList
=
new
ArrayList
<>();
if
(
sampleTmpList
!=
null
&&
sampleTmpList
.
size
()
>
0
)
{
for
(
SampleTmp
sampleTmp
:
sampleTmpList
)
{
SampleTmpVo
sampleTmpVo
=
new
SampleTmpVo
();
BeanUtils
.
copyProperties
(
sampleTmp
,
sampleTmpVo
);
String
teamIds
=
sampleTmp
.
getTeamIds
();
String
teamName
=
""
;
if
(
teamIds
!=
null
)
{
String
[]
teamIdS
=
teamIds
.
split
(
"、"
);
for
(
String
teamId
:
teamIdS
)
{
Team
team
=
teamMapper
.
selectById
(
Integer
.
valueOf
(
teamId
));
if
(
team
!=
null
)
{
team
.
getName
();
teamName
=
teamName
.
equals
(
""
)
?
team
.
getName
()
:
(
teamName
+
"、"
+
team
.
getName
());
}
}
}
sampleTmpVo
.
setTeamName
(
teamName
);
sampleTmpVoList
.
add
(
sampleTmpVo
);
}
}
entrustVo
.
setSampleTmpList
(
sampleTmpVoList
);
}
return
BaseResponse
.
okData
(
entrustVo
);
}
...
...
@@ -652,9 +678,19 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
id
);
List
<
SampleHandleVo
>
sampleHandleList
=
sampleHandleMapper
.
getSampleHandleList
(
params
);
if
(
sampleHandleList
!=
null
&&
sampleHandleList
.
size
()
>
0
)
{
for
(
SampleHandleVo
shVo
:
sampleHandleList
)
{
String
contentName
=
""
;
Handle
handle
=
handleMapper
.
selectById
(
shVo
.
getHandleId
());
if
(
handle
==
null
)
{
return
BaseResponse
.
errorMsg
(
"选择的处理项信息有误"
);
}
String
contentName
=
handle
.
getName
();
/*String contentName = "";
if (shVo.getContent() != null) {
String[] handIdS = shVo.getContent().split("、");
List<SampleHandleEnclosure> sampleHandleEnclosureList = new ArrayList<>();
...
...
@@ -665,7 +701,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
}
contentName = contentName.equals("") ? handle.getName() : contentName + "、" + handle.getName();
}
}
}
*/
shVo
.
setContentName
(
contentName
);
}
}
...
...
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