Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
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
hubin
long-tern-care-service
Commits
cad0f4b6
Commit
cad0f4b6
authored
Jun 24, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改文件上传接口返回值类型
parent
37566872
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
SrvOrganEmpServiceImpl.java
...com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
+2
-11
FileUploadController.java
.../hungraim/ltc/system/controller/FileUploadController.java
+2
-2
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
View file @
cad0f4b6
...
...
@@ -12,7 +12,6 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvOrganEmp;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.service.OrganService
;
import
com.hungraim.ltc.service.SrvOrganEmpService
;
import
com.hungraim.ltc.util.AttachType
;
...
...
@@ -24,7 +23,6 @@ import org.springframework.beans.BeanUtils;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.ArrayList
;
import
java.util.List
;
@Service
...
...
@@ -68,16 +66,9 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
srvOrganEmpVo
.
setEmpCateId
(
chCfgSrvEmpType
.
getEmpCateId
());
srvOrganEmpVo
.
setUnifiedSocialCreditCode
(
chSrvOrgan
.
getUnifiedSocialCreditCode
());
try
{
Result
<
List
<
AttachVo
>>
listResult
=
attachFeignService
.
selectAttachs
(
empId
,
AttachType
.
SRV_ORGAN_EMP
.
getUploadType
());
Result
<
List
<
ChFndAttach
>>
listResult
=
attachFeignService
.
selectAttachs
(
empId
,
AttachType
.
SRV_ORGAN_EMP
.
getUploadType
());
if
(
ResultCode
.
SUCCESS
.
getCode
().
equals
(
listResult
.
getCode
()))
{
List
<
ChFndAttach
>
attaches
=
new
ArrayList
<>();
List
<
AttachVo
>
data
=
listResult
.
getData
();
for
(
AttachVo
datum
:
data
)
{
ChFndAttach
attach
=
new
ChFndAttach
();
BeanUtils
.
copyProperties
(
datum
,
attach
);
attaches
.
add
(
attach
);
}
srvOrganEmpVo
.
setFileDataList
(
attaches
);
srvOrganEmpVo
.
setFileDataList
(
listResult
.
getData
());
}
else
{
log
.
error
(
"请求获取护理人员上传文件出错,出错信息:{}"
,
listResult
.
getMsg
());
}
...
...
system/system-admin-service/src/main/java/com/hungraim/ltc/system/controller/FileUploadController.java
View file @
cad0f4b6
...
...
@@ -76,7 +76,7 @@ public class FileUploadController {
if
(
null
==
ctrlId
||
0
==
ctrlId
||
null
==
attachType
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
List
<
ChFndAttach
>
attachVo
s
=
attachService
.
selectAttachs
(
ctrlId
,
attachType
);
return
Result
.
success
(
attachVo
s
);
List
<
ChFndAttach
>
chFndAttache
s
=
attachService
.
selectAttachs
(
ctrlId
,
attachType
);
return
Result
.
success
(
chFndAttache
s
);
}
}
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