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
8eafda1d
Commit
8eafda1d
authored
Jun 24, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改文件上传接口返回值类型
parent
0cd39b75
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
100 additions
and
110 deletions
+100
-110
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+1
-2
SrvOrganServiceImpl.java
...va/com/hungraim/ltc/service/impl/SrvOrganServiceImpl.java
+3
-12
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+2
-3
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+1
-2
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+2
-3
DisableExamineInfoVO.java
...om/hungraim/ltc/pojo/vo/disable/DisableExamineInfoVO.java
+2
-2
AprOrganInfoVO.java
...a/com/hungraim/ltc/pojo/vo/governance/AprOrganInfoVO.java
+15
-0
SrvTaskInfoVO.java
...va/com/hungraim/ltc/pojo/vo/governance/SrvTaskInfoVO.java
+2
-3
AprOrganController.java
...ungraim/ltc/governance/controller/AprOrganController.java
+21
-20
SrvProgramController.java
...graim/ltc/governance/controller/SrvProgramController.java
+3
-3
AprOrganService.java
.../com/hungraim/ltc/governance/service/AprOrganService.java
+4
-4
SrvProgramService.java
...om/hungraim/ltc/governance/service/SrvProgramService.java
+2
-2
AprOrganServiceImpl.java
...raim/ltc/governance/service/impl/AprOrganServiceImpl.java
+27
-19
SrvProgramServiceImpl.java
...im/ltc/governance/service/impl/SrvProgramServiceImpl.java
+5
-14
SrvTaskServiceImpl.java
...graim/ltc/governance/service/impl/SrvTaskServiceImpl.java
+1
-2
FileUploadController.java
.../hungraim/ltc/system/controller/FileUploadController.java
+3
-3
AttachService.java
...n/java/com/hungraim/ltc/system/service/AttachService.java
+2
-2
AttachServiceImpl.java
...m/hungraim/ltc/system/service/impl/AttachServiceImpl.java
+2
-12
AttachFeignService.java
...rc/main/java/com/hungraim/ltc/api/AttachFeignService.java
+2
-2
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
8eafda1d
...
@@ -12,7 +12,6 @@ import com.hungraim.ltc.pojo.entity.disable.*;
...
@@ -12,7 +12,6 @@ import com.hungraim.ltc.pojo.entity.disable.*;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgPara
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgPara
;
import
com.hungraim.ltc.pojo.vo.disable.*
;
import
com.hungraim.ltc.pojo.vo.disable.*
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.service.DisableService
;
import
com.hungraim.ltc.service.DisableService
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
...
@@ -100,7 +99,7 @@ public class DisableServiceImpl implements DisableService {
...
@@ -100,7 +99,7 @@ public class DisableServiceImpl implements DisableService {
disableExamineInfoVO
.
setExamineRecords
(
examineRecords
);
disableExamineInfoVO
.
setExamineRecords
(
examineRecords
);
try
{
try
{
// zhangch 20210525 新增返回对应的附件列表
// zhangch 20210525 新增返回对应的附件列表
Result
<
List
<
AttachVo
>>
listResult
=
attachFeignService
.
selectAttachs
(
Long
.
valueOf
(
applyId
),
AttachType
.
DISABLE
.
getUploadType
());
Result
<
List
<
ChFndAttach
>>
listResult
=
attachFeignService
.
selectAttachs
(
Long
.
valueOf
(
applyId
),
AttachType
.
DISABLE
.
getUploadType
());
if
(
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
if
(
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
disableExamineInfoVO
.
setFileDataList
(
listResult
.
getData
());
disableExamineInfoVO
.
setFileDataList
(
listResult
.
getData
());
}
else
{
}
else
{
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganServiceImpl.java
View file @
8eafda1d
package
com
.
hungraim
.
ltc
.
service
.
impl
;
package
com
.
hungraim
.
ltc
.
service
.
impl
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.dao.ChCfgSrvOrganTypeMapper
;
import
com.hungraim.ltc.dao.ChCfgSrvOrganTypeMapper
;
...
@@ -11,12 +10,10 @@ import com.hungraim.ltc.dao.SrvOrganMapper;
...
@@ -11,12 +10,10 @@ import com.hungraim.ltc.dao.SrvOrganMapper;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChCfgSrvOrganType
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChCfgSrvOrganType
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndSrvOrganLevel
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndSrvOrganLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvEmpType
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
import
com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan
;
import
com.hungraim.ltc.pojo.vo.disable.SrvModeVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvModeVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganListVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.pojo.vo.system.SrvOrganVo
;
import
com.hungraim.ltc.pojo.vo.system.SrvOrganVo
;
import
com.hungraim.ltc.service.OrganService
;
import
com.hungraim.ltc.service.OrganService
;
import
com.hungraim.ltc.service.SrvOrganService
;
import
com.hungraim.ltc.service.SrvOrganService
;
...
@@ -124,17 +121,11 @@ public class SrvOrganServiceImpl implements SrvOrganService {
...
@@ -124,17 +121,11 @@ public class SrvOrganServiceImpl implements SrvOrganService {
SrvOrganVo
srvOrganVo
=
new
SrvOrganVo
();
SrvOrganVo
srvOrganVo
=
new
SrvOrganVo
();
BeanUtils
.
copyProperties
(
chSrvOrgan
,
srvOrganVo
);
BeanUtils
.
copyProperties
(
chSrvOrgan
,
srvOrganVo
);
try
{
try
{
Result
<
List
<
AttachVo
>>
listResult
=
attachFeignService
.
selectAttachs
(
srvOrganId
,
AttachType
.
SRV_ORGAN
.
getUploadType
());
Result
<
List
<
ChFndAttach
>>
listResult
=
attachFeignService
.
selectAttachs
(
srvOrganId
,
AttachType
.
SRV_ORGAN
.
getUploadType
());
if
(
StrUtil
.
equals
(
listResult
.
getCode
(),
ResultCode
.
SUCCESS
.
getCode
()))
{
if
(
StrUtil
.
equals
(
listResult
.
getCode
(),
ResultCode
.
SUCCESS
.
getCode
()))
{
List
<
AttachVo
>
data
=
listResult
.
getData
();
List
<
ChFndAttach
>
data
=
listResult
.
getData
();
if
(
data
!=
null
)
{
if
(
data
!=
null
)
{
List
<
ChFndAttach
>
attaches
=
new
ArrayList
<>();
srvOrganVo
.
setFileDataList
(
data
);
for
(
AttachVo
attachVo
:
data
)
{
ChFndAttach
chFndAttach
=
new
ChFndAttach
();
BeanUtils
.
copyProperties
(
attachVo
,
chFndAttach
);
attaches
.
add
(
chFndAttach
);
}
srvOrganVo
.
setFileDataList
(
attaches
);
}
}
}
else
{
}
else
{
log
.
error
(
"查询id为{}的护理机构文件列表失败,失败原因:{}"
,
srvOrganId
,
listResult
.
getMsg
());
log
.
error
(
"查询id为{}的护理机构文件列表失败,失败原因:{}"
,
srvOrganId
,
listResult
.
getMsg
());
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
8eafda1d
...
@@ -5,7 +5,6 @@ import com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach;
...
@@ -5,7 +5,6 @@ import com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach;
import
com.hungraim.ltc.pojo.entity.assessment.ChRefuseReason
;
import
com.hungraim.ltc.pojo.entity.assessment.ChRefuseReason
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.service.TaskService
;
import
com.hungraim.ltc.service.TaskService
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.ResultCode
;
...
@@ -81,8 +80,8 @@ public class TaskController {
...
@@ -81,8 +80,8 @@ public class TaskController {
* @param reportId 评定报告id
* @param reportId 评定报告id
*/
*/
@RequestMapping
(
"/reportFileList"
)
@RequestMapping
(
"/reportFileList"
)
public
Result
<
List
<
AttachVo
>>
reportFileList
(
Long
reportId
)
{
public
Result
<
List
<
ChFndAttach
>>
reportFileList
(
Long
reportId
)
{
Result
<
List
<
AttachVo
>>
listResult
=
taskService
.
reportFileList
(
reportId
);
Result
<
List
<
ChFndAttach
>>
listResult
=
taskService
.
reportFileList
(
reportId
);
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
return
Result
.
failed
(
"请求获取附件列表错误:错误码{"
+
listResult
.
getCode
()
+
"},错误信息:{"
+
listResult
.
getMsg
()
+
"}"
);
return
Result
.
failed
(
"请求获取附件列表错误:错误码{"
+
listResult
.
getCode
()
+
"},错误信息:{"
+
listResult
.
getMsg
()
+
"}"
);
}
}
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
8eafda1d
...
@@ -5,7 +5,6 @@ import com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach;
...
@@ -5,7 +5,6 @@ import com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach;
import
com.hungraim.ltc.pojo.entity.assessment.ChRefuseReason
;
import
com.hungraim.ltc.pojo.entity.assessment.ChRefuseReason
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -54,5 +53,5 @@ public interface TaskService {
...
@@ -54,5 +53,5 @@ public interface TaskService {
List
<
ChRefuseReason
>
refuseReasonList
();
List
<
ChRefuseReason
>
refuseReasonList
();
Result
<
List
<
AttachVo
>>
reportFileList
(
Long
reportId
);
Result
<
List
<
ChFndAttach
>>
reportFileList
(
Long
reportId
);
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
8eafda1d
...
@@ -11,7 +11,6 @@ import com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel;
...
@@ -11,7 +11,6 @@ import com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.service.TaskService
;
import
com.hungraim.ltc.service.TaskService
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
...
@@ -440,8 +439,8 @@ public class TaskServiceImpl implements TaskService {
...
@@ -440,8 +439,8 @@ public class TaskServiceImpl implements TaskService {
}
}
@Override
@Override
public
Result
<
List
<
AttachVo
>>
reportFileList
(
Long
reportId
)
{
public
Result
<
List
<
ChFndAttach
>>
reportFileList
(
Long
reportId
)
{
Result
<
List
<
AttachVo
>>
listResult
=
null
;
Result
<
List
<
ChFndAttach
>>
listResult
=
null
;
try
{
try
{
// 返回对应的附件列表
// 返回对应的附件列表
listResult
=
attachFeignService
.
selectAttachs
(
reportId
,
AttachType
.
TASK
.
getUploadType
());
listResult
=
attachFeignService
.
selectAttachs
(
reportId
,
AttachType
.
TASK
.
getUploadType
());
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/disable/DisableExamineInfoVO.java
View file @
8eafda1d
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
disable
;
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
disable
;
import
com.hungraim.ltc.pojo.
vo.system.AttachVo
;
import
com.hungraim.ltc.pojo.
entity.SysConfig.ChFndAttach
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -107,5 +107,5 @@ public class DisableExamineInfoVO {
...
@@ -107,5 +107,5 @@ public class DisableExamineInfoVO {
//备注
//备注
private
String
checkRemark
;
private
String
checkRemark
;
private
List
<
AttachVo
>
fileDataList
;
private
List
<
ChFndAttach
>
fileDataList
;
}
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/AprOrganInfoVO.java
0 → 100644
View file @
8eafda1d
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
governance
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChAprOrgan
;
import
lombok.Data
;
import
java.util.List
;
/**
* 评定人员信息详情VO
*/
@Data
public
class
AprOrganInfoVO
extends
ChAprOrgan
{
private
List
<
ChFndAttach
>
fileDataList
;
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/SrvTaskInfoVO.java
View file @
8eafda1d
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
governance
;
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
governance
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -52,9 +51,9 @@ public class SrvTaskInfoVO implements Serializable {
...
@@ -52,9 +51,9 @@ public class SrvTaskInfoVO implements Serializable {
*/
*/
private
String
taskStatus
;
private
String
taskStatus
;
/**
/**
* 服务计划附件
VO
* 服务计划附件
*/
*/
private
Result
<
List
<
AttachVo
>>
listResult
;
private
Result
<
List
<
ChFndAttach
>>
listResult
;
/**
/**
* 服务计划附件
* 服务计划附件
*/
*/
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/AprOrganController.java
View file @
8eafda1d
...
@@ -10,8 +10,8 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprOrganType;
...
@@ -10,8 +10,8 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprOrganType;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprempType
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprempType
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChFndEducation
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChFndEducation
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.ResultCode
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -59,12 +59,12 @@ public class AprOrganController {
...
@@ -59,12 +59,12 @@ public class AprOrganController {
* @return 返回相关信息
* @return 返回相关信息
*/
*/
@GetMapping
(
"/getAprOrganInfo"
)
@GetMapping
(
"/getAprOrganInfo"
)
public
Result
<
ChAprOrgan
>
getAprOrganInfo
(
Long
aprOrganId
)
{
public
Result
<
AprOrganInfoVO
>
getAprOrganInfo
(
Long
aprOrganId
)
{
if
(
null
==
aprOrganId
)
{
if
(
null
==
aprOrganId
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
}
ChAprOrgan
chAprOrgan
=
aprOrganService
.
getAprOrganInfo
(
aprOrganId
);
AprOrganInfoVO
aprOrganInfoVO
=
aprOrganService
.
getAprOrganInfo
(
aprOrganId
);
return
Result
.
success
(
chAprOrgan
);
return
Result
.
success
(
aprOrganInfoVO
);
}
}
/**
/**
...
@@ -83,20 +83,6 @@ public class AprOrganController {
...
@@ -83,20 +83,6 @@ public class AprOrganController {
}
}
/**
/**
* 查询评定机构附件列表
*
* @param aprOrganId 评定机构id
*/
@RequestMapping
(
"/aprOrganFileList"
)
public
Result
<
List
<
AttachVo
>>
aprOrganFileList
(
Long
aprOrganId
)
{
Result
<
List
<
AttachVo
>>
listResult
=
aprOrganService
.
aprOrganFileList
(
aprOrganId
);
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
return
Result
.
failed
(
"请求获取附件列表错误:错误码{"
+
listResult
.
getCode
()
+
"},错误信息:{"
+
listResult
.
getMsg
()
+
"}"
);
}
return
listResult
;
}
/**
* 新增评定机构或更新评定机构信息(有apr_organ_id就更新,没有就新增)
* 新增评定机构或更新评定机构信息(有apr_organ_id就更新,没有就新增)
*
*
* @param accountInfo 账号信息附件
* @param accountInfo 账号信息附件
...
@@ -245,8 +231,8 @@ public class AprOrganController {
...
@@ -245,8 +231,8 @@ public class AprOrganController {
* @param empId 评定人员id
* @param empId 评定人员id
*/
*/
@RequestMapping
(
"/empFileList"
)
@RequestMapping
(
"/empFileList"
)
public
Result
<
List
<
AttachVo
>>
empFileList
(
Long
empId
)
{
public
Result
<
List
<
ChFndAttach
>>
empFileList
(
Long
empId
)
{
Result
<
List
<
AttachVo
>>
listResult
=
aprOrganService
.
empFileList
(
empId
);
Result
<
List
<
ChFndAttach
>>
listResult
=
aprOrganService
.
empFileList
(
empId
);
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
return
Result
.
failed
(
"请求获取附件列表错误:错误码{"
+
listResult
.
getCode
()
+
"},错误信息:{"
+
listResult
.
getMsg
()
+
"}"
);
return
Result
.
failed
(
"请求获取附件列表错误:错误码{"
+
listResult
.
getCode
()
+
"},错误信息:{"
+
listResult
.
getMsg
()
+
"}"
);
}
}
...
@@ -315,6 +301,21 @@ public class AprOrganController {
...
@@ -315,6 +301,21 @@ public class AprOrganController {
}
}
/**
/**
* 更改评定机构人员状态
*
* @param empId 评定机构人员id
* @param isLock 状态 有效:0;失效:1
*/
@DeleteMapping
(
"/updateAprEmpStatus"
)
public
Result
updateAprEmpStatus
(
String
empId
,
Integer
isLock
)
{
if
(
StringUtils
.
isBlank
(
empId
)
||
isLock
==
null
||
(
isLock
!=
1
&&
isLock
!=
0
))
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
aprOrganService
.
updateAprEmpStatus
(
empId
,
isLock
);
return
Result
.
success
();
}
/**
* 获取评定机构人员资质
* 获取评定机构人员资质
*
*
* @param parAprempTypeId 父级鉴定人员类型ID(如果没有就查询所有父类型资质)
* @param parAprempTypeId 父级鉴定人员类型ID(如果没有就查询所有父类型资质)
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvProgramController.java
View file @
8eafda1d
...
@@ -3,12 +3,12 @@ package com.hungraim.ltc.governance.controller;
...
@@ -3,12 +3,12 @@ package com.hungraim.ltc.governance.controller;
import
cn.hutool.json.JSONUtil
;
import
cn.hutool.json.JSONUtil
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.governance.service.SrvProgramService
;
import
com.hungraim.ltc.governance.service.SrvProgramService
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvProgram
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvProgram
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramDetailVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramDetailVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramListVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramListVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramSetAndProjectVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramSetAndProjectVo
;
import
com.hungraim.ltc.pojo.vo.governance.SvrSendListVo
;
import
com.hungraim.ltc.pojo.vo.governance.SvrSendListVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.ResultCode
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -87,8 +87,8 @@ public class SrvProgramController {
...
@@ -87,8 +87,8 @@ public class SrvProgramController {
* @param programId 服务计划id
* @param programId 服务计划id
*/
*/
@RequestMapping
(
"/programFileList"
)
@RequestMapping
(
"/programFileList"
)
public
Result
<
List
<
AttachVo
>>
reportFileList
(
Long
programId
)
{
public
Result
<
List
<
ChFndAttach
>>
reportFileList
(
Long
programId
)
{
Result
<
List
<
AttachVo
>>
listResult
=
srvProgramService
.
programFileList
(
programId
);
Result
<
List
<
ChFndAttach
>>
listResult
=
srvProgramService
.
programFileList
(
programId
);
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
return
Result
.
failed
(
"请求获取附件列表错误:错误码{"
+
listResult
.
getCode
()
+
"},错误信息:{"
+
listResult
.
getMsg
()
+
"}"
);
return
Result
.
failed
(
"请求获取附件列表错误:错误码{"
+
listResult
.
getCode
()
+
"},错误信息:{"
+
listResult
.
getMsg
()
+
"}"
);
}
}
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/AprOrganService.java
View file @
8eafda1d
...
@@ -9,8 +9,8 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprOrganType;
...
@@ -9,8 +9,8 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprOrganType;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprempType
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprempType
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChFndEducation
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChFndEducation
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -29,7 +29,7 @@ public interface AprOrganService {
...
@@ -29,7 +29,7 @@ public interface AprOrganService {
void
addOrUpdateAprOrgan
(
ChAprOrgan
chAprOrgan
,
ChFndAttach
accountInfo
,
ChFndAttach
organBusinessLicense
,
ChFndAttach
healthcareProviderAgreement
,
ChFndAttach
otherFile
);
void
addOrUpdateAprOrgan
(
ChAprOrgan
chAprOrgan
,
ChFndAttach
accountInfo
,
ChFndAttach
organBusinessLicense
,
ChFndAttach
healthcareProviderAgreement
,
ChFndAttach
otherFile
);
ChAprOrgan
getAprOrganInfo
(
Long
aprOrganId
);
AprOrganInfoVO
getAprOrganInfo
(
Long
aprOrganId
);
List
<
ChCfgAprOrganType
>
getCfgAprOrganTypes
();
List
<
ChCfgAprOrganType
>
getCfgAprOrganTypes
();
...
@@ -43,7 +43,7 @@ public interface AprOrganService {
...
@@ -43,7 +43,7 @@ public interface AprOrganService {
List
<
ChFndEducation
>
fndEducation
();
List
<
ChFndEducation
>
fndEducation
();
Result
<
List
<
AttachVo
>>
empFileList
(
Long
empId
);
Result
<
List
<
ChFndAttach
>>
empFileList
(
Long
empId
);
Result
<
List
<
AttachVo
>>
aprOrganFileList
(
Long
aprOrganId
);
void
updateAprEmpStatus
(
String
empId
,
Integer
isLock
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/SrvProgramService.java
View file @
8eafda1d
package
com
.
hungraim
.
ltc
.
governance
.
service
;
package
com
.
hungraim
.
ltc
.
governance
.
service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvProgram
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvProgram
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramDetailVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramDetailVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramListVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramListVo
;
import
com.hungraim.ltc.pojo.vo.governance.SvrSendListVo
;
import
com.hungraim.ltc.pojo.vo.governance.SvrSendListVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
java.util.List
;
import
java.util.List
;
...
@@ -81,6 +81,6 @@ public interface SrvProgramService {
...
@@ -81,6 +81,6 @@ public interface SrvProgramService {
*
*
* @param programId 服务计划id
* @param programId 服务计划id
*/
*/
Result
<
List
<
AttachVo
>>
programFileList
(
Long
programId
);
Result
<
List
<
ChFndAttach
>>
programFileList
(
Long
programId
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/AprOrganServiceImpl.java
View file @
8eafda1d
...
@@ -14,15 +14,16 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprOrganType;
...
@@ -14,15 +14,16 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprOrganType;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprempType
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgAprempType
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChFndEducation
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChFndEducation
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
com.hungraim.ltc.pojo.vo.governance.AprOrganVO
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.ResultCode
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -43,7 +44,7 @@ public class AprOrganServiceImpl implements AprOrganService {
...
@@ -43,7 +44,7 @@ public class AprOrganServiceImpl implements AprOrganService {
private
final
ChCfgAprGroupDetailMapper
cfgAprGroupDetailMapper
;
private
final
ChCfgAprGroupDetailMapper
cfgAprGroupDetailMapper
;
private
final
CfgAprempMapper
cfgAprempMapper
;
private
final
CfgAprempMapper
cfgAprempMapper
;
private
final
FndEducationMapper
fndEducationMapper
;
private
final
FndEducationMapper
fndEducationMapper
;
private
AttachFeignService
attachFeignService
;
private
final
AttachFeignService
attachFeignService
;
@Override
@Override
public
Page
<
AprOrganVO
>
aprOrganList
(
Page
<
AprOrganVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
organName
,
String
code
)
{
public
Page
<
AprOrganVO
>
aprOrganList
(
Page
<
AprOrganVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
organName
,
String
code
)
{
...
@@ -110,8 +111,24 @@ public class AprOrganServiceImpl implements AprOrganService {
...
@@ -110,8 +111,24 @@ public class AprOrganServiceImpl implements AprOrganService {
}
}
@Override
@Override
public
ChAprOrgan
getAprOrganInfo
(
Long
aprOrganId
)
{
public
AprOrganInfoVO
getAprOrganInfo
(
Long
aprOrganId
)
{
return
aprOrganMapper
.
selectById
(
aprOrganId
);
ChAprOrgan
chAprOrgan
=
aprOrganMapper
.
selectById
(
aprOrganId
);
//查询附件列表
Result
<
List
<
ChFndAttach
>>
listResult
=
null
;
try
{
// 返回对应的附件列表
listResult
=
attachFeignService
.
selectAttachs
(
aprOrganId
,
AttachType
.
APR_ORGAN
.
getUploadType
());
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
log
.
info
(
"请求获取附件列表错误:错误码{},错误信息:{}"
,
listResult
.
getCode
(),
listResult
.
getMsg
());
}
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
());
e
.
printStackTrace
();
}
AprOrganInfoVO
aprOrganInfoVO
=
new
AprOrganInfoVO
();
BeanUtils
.
copyProperties
(
chAprOrgan
,
aprOrganInfoVO
);
aprOrganInfoVO
.
setFileDataList
(
listResult
.
getData
());
return
aprOrganInfoVO
;
}
}
@Override
@Override
...
@@ -177,8 +194,8 @@ public class AprOrganServiceImpl implements AprOrganService {
...
@@ -177,8 +194,8 @@ public class AprOrganServiceImpl implements AprOrganService {
}
}
@Override
@Override
public
Result
<
List
<
AttachVo
>>
empFileList
(
Long
empId
)
{
public
Result
<
List
<
ChFndAttach
>>
empFileList
(
Long
empId
)
{
Result
<
List
<
AttachVo
>>
listResult
=
null
;
Result
<
List
<
ChFndAttach
>>
listResult
=
null
;
try
{
try
{
// 返回对应的附件列表
// 返回对应的附件列表
listResult
=
attachFeignService
.
selectAttachs
(
empId
,
AttachType
.
APR_EMP
.
getUploadType
());
listResult
=
attachFeignService
.
selectAttachs
(
empId
,
AttachType
.
APR_EMP
.
getUploadType
());
...
@@ -193,19 +210,10 @@ public class AprOrganServiceImpl implements AprOrganService {
...
@@ -193,19 +210,10 @@ public class AprOrganServiceImpl implements AprOrganService {
}
}
@Override
@Override
public
Result
<
List
<
AttachVo
>>
aprOrganFileList
(
Long
aprOrganId
)
{
public
void
updateAprEmpStatus
(
String
empId
,
Integer
isLock
)
{
Result
<
List
<
AttachVo
>>
listResult
=
null
;
ChAprEmp
chAprEmp
=
aprEmpMapper
.
selectById
(
empId
);
try
{
chAprEmp
.
setIsLock
(
isLock
);
// 返回对应的附件列表
aprEmpMapper
.
updateById
(
chAprEmp
);
listResult
=
attachFeignService
.
selectAttachs
(
aprOrganId
,
AttachType
.
APR_ORGAN
.
getUploadType
());
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
log
.
info
(
"请求获取附件列表错误:错误码{},错误信息:{}"
,
listResult
.
getCode
(),
listResult
.
getMsg
());
}
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
());
e
.
printStackTrace
();
}
return
listResult
;
}
}
/**
/**
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvProgramServiceImpl.java
View file @
8eafda1d
...
@@ -15,17 +15,14 @@ import com.hungraim.ltc.pojo.vo.governance.ProgramListVo;
...
@@ -15,17 +15,14 @@ import com.hungraim.ltc.pojo.vo.governance.ProgramListVo;
import
com.hungraim.ltc.pojo.vo.governance.ProgramSetAndProjectVo
;
import
com.hungraim.ltc.pojo.vo.governance.ProgramSetAndProjectVo
;
import
com.hungraim.ltc.pojo.vo.governance.SvrSendListVo
;
import
com.hungraim.ltc.pojo.vo.governance.SvrSendListVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.ResultCode
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -68,18 +65,12 @@ public class SrvProgramServiceImpl implements SrvProgramService {
...
@@ -68,18 +65,12 @@ public class SrvProgramServiceImpl implements SrvProgramService {
public
ProgramDetailVo
getProgramDetail
(
Long
programId
)
{
public
ProgramDetailVo
getProgramDetail
(
Long
programId
)
{
ProgramDetailVo
programDetail
=
chSrvProgramMapper
.
getProgramDetail
(
programId
);
ProgramDetailVo
programDetail
=
chSrvProgramMapper
.
getProgramDetail
(
programId
);
// 返回对应的附件列表
// 返回对应的附件列表
Result
<
List
<
AttachVo
>>
listResult
=
attachFeignService
.
selectAttachs
(
programId
,
AttachType
.
PROGRAM
.
getUploadType
());
Result
<
List
<
ChFndAttach
>>
listResult
=
attachFeignService
.
selectAttachs
(
programId
,
AttachType
.
PROGRAM
.
getUploadType
());
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
log
.
info
(
"请求获取附件列表错误:错误码{},错误信息:{}"
,
listResult
.
getCode
(),
listResult
.
getMsg
());
log
.
info
(
"请求获取附件列表错误:错误码{},错误信息:{}"
,
listResult
.
getCode
(),
listResult
.
getMsg
());
}
else
{
}
else
{
List
<
AttachVo
>
data
=
listResult
.
getData
();
List
<
ChFndAttach
>
data
=
listResult
.
getData
();
List
<
ChFndAttach
>
attachList
=
new
ArrayList
<>();
programDetail
.
setFileDataList
(
data
);
for
(
AttachVo
attachVo
:
data
)
{
ChFndAttach
attach
=
new
ChFndAttach
();
BeanUtils
.
copyProperties
(
attachVo
,
attach
);
attachList
.
add
(
attach
);
}
programDetail
.
setFileDataList
(
attachList
);
}
}
return
programDetail
;
return
programDetail
;
}
}
...
@@ -162,8 +153,8 @@ public class SrvProgramServiceImpl implements SrvProgramService {
...
@@ -162,8 +153,8 @@ public class SrvProgramServiceImpl implements SrvProgramService {
}
}
@Override
@Override
public
Result
<
List
<
AttachVo
>>
programFileList
(
Long
programId
)
{
public
Result
<
List
<
ChFndAttach
>>
programFileList
(
Long
programId
)
{
Result
<
List
<
AttachVo
>>
listResult
=
null
;
Result
<
List
<
ChFndAttach
>>
listResult
=
null
;
try
{
try
{
// 返回对应的附件列表
// 返回对应的附件列表
listResult
=
attachFeignService
.
selectAttachs
(
programId
,
AttachType
.
PROGRAM
.
getUploadType
());
listResult
=
attachFeignService
.
selectAttachs
(
programId
,
AttachType
.
PROGRAM
.
getUploadType
());
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvTaskServiceImpl.java
View file @
8eafda1d
...
@@ -12,7 +12,6 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTask;
...
@@ -12,7 +12,6 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTask;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.vo.governance.*
;
import
com.hungraim.ltc.pojo.vo.governance.*
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.AttachType
;
import
com.hungraim.ltc.util.DateUtils
;
import
com.hungraim.ltc.util.DateUtils
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
...
@@ -80,7 +79,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -80,7 +79,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
try
{
try
{
for
(
SrvTaskInfoVO
vo
:
srvTaskInfoList
)
{
for
(
SrvTaskInfoVO
vo
:
srvTaskInfoList
)
{
// 返回对应的附件列表
// 返回对应的附件列表
Result
<
List
<
AttachVo
>>
listResult
=
attachFeignService
.
selectAttachs
(
Long
.
parseLong
(
programId
),
AttachType
.
SRV_TASK
.
getUploadType
());
Result
<
List
<
ChFndAttach
>>
listResult
=
attachFeignService
.
selectAttachs
(
Long
.
parseLong
(
programId
),
AttachType
.
SRV_TASK
.
getUploadType
());
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
if
(!
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
log
.
info
(
"请求获取附件列表错误:错误码{},错误信息:{}"
,
listResult
.
getCode
(),
listResult
.
getMsg
());
log
.
info
(
"请求获取附件列表错误:错误码{},错误信息:{}"
,
listResult
.
getCode
(),
listResult
.
getMsg
());
}
else
{
}
else
{
...
...
system/system-admin-service/src/main/java/com/hungraim/ltc/system/controller/FileUploadController.java
View file @
8eafda1d
package
com
.
hungraim
.
ltc
.
system
.
controller
;
package
com
.
hungraim
.
ltc
.
system
.
controller
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.system.config.FileUploadConfig
;
import
com.hungraim.ltc.system.config.FileUploadConfig
;
import
com.hungraim.ltc.system.service.AttachService
;
import
com.hungraim.ltc.system.service.AttachService
;
import
com.hungraim.ltc.util.FileUtils
;
import
com.hungraim.ltc.util.FileUtils
;
...
@@ -72,11 +72,11 @@ public class FileUploadController {
...
@@ -72,11 +72,11 @@ public class FileUploadController {
* @return 返回对应的数据列表
* @return 返回对应的数据列表
*/
*/
@GetMapping
(
"/attachs"
)
@GetMapping
(
"/attachs"
)
Result
<
List
<
AttachVo
>>
selectAttachs
(
Long
ctrlId
,
Short
attachType
)
{
Result
<
List
<
ChFndAttach
>>
selectAttachs
(
Long
ctrlId
,
Short
attachType
)
{
if
(
null
==
ctrlId
||
0
==
ctrlId
||
null
==
attachType
)
{
if
(
null
==
ctrlId
||
0
==
ctrlId
||
null
==
attachType
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
}
List
<
AttachVo
>
attachVos
=
attachService
.
selectAttachs
(
ctrlId
,
attachType
);
List
<
ChFndAttach
>
attachVos
=
attachService
.
selectAttachs
(
ctrlId
,
attachType
);
return
Result
.
success
(
attachVos
);
return
Result
.
success
(
attachVos
);
}
}
}
}
system/system-admin-service/src/main/java/com/hungraim/ltc/system/service/AttachService.java
View file @
8eafda1d
package
com
.
hungraim
.
ltc
.
system
.
service
;
package
com
.
hungraim
.
ltc
.
system
.
service
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
java.util.List
;
import
java.util.List
;
...
@@ -34,5 +34,5 @@ public interface AttachService {
...
@@ -34,5 +34,5 @@ public interface AttachService {
* @param attachType 附件类型
* @param attachType 附件类型
* @return 返回对应的数据列表
* @return 返回对应的数据列表
*/
*/
List
<
AttachVo
>
selectAttachs
(
Long
ctrlId
,
Short
attachType
);
List
<
ChFndAttach
>
selectAttachs
(
Long
ctrlId
,
Short
attachType
);
}
}
system/system-admin-service/src/main/java/com/hungraim/ltc/system/service/impl/AttachServiceImpl.java
View file @
8eafda1d
...
@@ -3,15 +3,12 @@ package com.hungraim.ltc.system.service.impl;
...
@@ -3,15 +3,12 @@ package com.hungraim.ltc.system.service.impl;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.system.dao.ChFndAttachMapper
;
import
com.hungraim.ltc.system.dao.ChFndAttachMapper
;
import
com.hungraim.ltc.system.service.AttachService
;
import
com.hungraim.ltc.system.service.AttachService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -103,14 +100,7 @@ public class AttachServiceImpl implements AttachService {
...
@@ -103,14 +100,7 @@ public class AttachServiceImpl implements AttachService {
}
}
@Override
@Override
public
List
<
AttachVo
>
selectAttachs
(
Long
ctrlId
,
Short
attachType
)
{
public
List
<
ChFndAttach
>
selectAttachs
(
Long
ctrlId
,
Short
attachType
)
{
List
<
AttachVo
>
attachVos
=
new
ArrayList
<>();
return
this
.
getChFndAttaches
(
ctrlId
,
attachType
);
List
<
ChFndAttach
>
chFndAttaches
=
this
.
getChFndAttaches
(
ctrlId
,
attachType
);
for
(
ChFndAttach
chFndAttach
:
chFndAttaches
)
{
AttachVo
attachVo
=
new
AttachVo
();
BeanUtils
.
copyProperties
(
chFndAttach
,
attachVo
);
attachVos
.
add
(
attachVo
);
}
return
attachVos
;
}
}
}
}
system/system-api/src/main/java/com/hungraim/ltc/api/AttachFeignService.java
View file @
8eafda1d
package
com
.
hungraim
.
ltc
.
api
;
package
com
.
hungraim
.
ltc
.
api
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.pojo.vo.system.AttachVo
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -37,5 +37,5 @@ public interface AttachFeignService {
...
@@ -37,5 +37,5 @@ public interface AttachFeignService {
* @return 返回对应的数据列表
* @return 返回对应的数据列表
*/
*/
@GetMapping
(
"/api.system/resource/attachs"
)
@GetMapping
(
"/api.system/resource/attachs"
)
Result
<
List
<
AttachVo
>>
selectAttachs
(
@RequestParam
(
"ctrlId"
)
Long
ctrlId
,
@RequestParam
(
"attachType"
)
Short
attachType
);
Result
<
List
<
ChFndAttach
>>
selectAttachs
(
@RequestParam
(
"ctrlId"
)
Long
ctrlId
,
@RequestParam
(
"attachType"
)
Short
attachType
);
}
}
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