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
dae49290
Commit
dae49290
authored
Mar 04, 2022
by
liuxun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
2a97cac6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
24 deletions
+21
-24
SrvTaskInfoVO.java
...va/com/hungraim/ltc/pojo/vo/governance/SrvTaskInfoVO.java
+5
-8
SrvTaskServiceImpl.java
...graim/ltc/governance/service/impl/SrvTaskServiceImpl.java
+16
-16
No files found.
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/SrvTaskInfoVO.java
View file @
dae49290
...
@@ -50,12 +50,9 @@ public class SrvTaskInfoVO implements Serializable {
...
@@ -50,12 +50,9 @@ public class SrvTaskInfoVO implements Serializable {
* 服务计划状态
* 服务计划状态
*/
*/
private
String
taskStatus
;
private
String
taskStatus
;
/**
* 服务计划附件
// /**
*/
// * 服务计划附件
private
Result
<
List
<
ChFndAttach
>>
listResult
;
// */
/**
// private List<ChFndAttach> listAttach;
* 服务计划附件
*/
private
List
<
ChFndAttach
>
listAttach
;
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvTaskServiceImpl.java
View file @
dae49290
...
@@ -76,20 +76,20 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -76,20 +76,20 @@ public class SrvTaskServiceImpl implements SrvTaskService {
public
List
<
SrvTaskInfoVO
>
getSrvTaskInfoList
(
String
programId
)
{
public
List
<
SrvTaskInfoVO
>
getSrvTaskInfoList
(
String
programId
)
{
List
<
SrvTaskInfoVO
>
srvTaskInfoList
=
srvTaskMapper
.
getSrvTaskInfoList
(
programId
);
List
<
SrvTaskInfoVO
>
srvTaskInfoList
=
srvTaskMapper
.
getSrvTaskInfoList
(
programId
);
//查询服务计划附件
//查询服务计划附件
try
{
//
try {
for
(
SrvTaskInfoVO
vo
:
srvTaskInfoList
)
{
//
for (SrvTaskInfoVO vo : srvTaskInfoList) {
// 返回对应的附件列表
//
// 返回对应的附件列表
Result
<
List
<
ChFndAttach
>>
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 {
vo
.
setListResult
(
listResult
);
//
vo.setListResult(listResult);
}
//
}
}
//
}
}
catch
(
Exception
e
)
{
//
} catch (Exception e) {
log
.
error
(
e
.
getMessage
());
//
log.error(e.getMessage());
e
.
printStackTrace
();
//
e.printStackTrace();
}
//
}
//具体服务日期
//具体服务日期
for
(
SrvTaskInfoVO
vo
:
srvTaskInfoList
)
{
for
(
SrvTaskInfoVO
vo
:
srvTaskInfoList
)
{
List
<
ChSrvTaskDetail
>
taskDetails
=
chSrvTaskDetailMapper
.
selectList
(
new
QueryWrapper
<
ChSrvTaskDetail
>().
eq
(
"srv_task_id"
,
vo
.
getSrvTaskId
()));
List
<
ChSrvTaskDetail
>
taskDetails
=
chSrvTaskDetailMapper
.
selectList
(
new
QueryWrapper
<
ChSrvTaskDetail
>().
eq
(
"srv_task_id"
,
vo
.
getSrvTaskId
()));
...
@@ -138,13 +138,13 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -138,13 +138,13 @@ public class SrvTaskServiceImpl implements SrvTaskService {
Long
newSrvTaskId
=
chSrvTask
.
getSrvTaskId
();
Long
newSrvTaskId
=
chSrvTask
.
getSrvTaskId
();
this
.
insertTaskDetail
(
newSrvTaskId
,
taskDetails
);
this
.
insertTaskDetail
(
newSrvTaskId
,
taskDetails
);
//添加附件
//添加附件
this
.
updateAttachs
(
srvTaskInfoVO
.
getListAttach
(),
chSrvTask
.
getSrvTaskId
());
//
this.updateAttachs(srvTaskInfoVO.getListAttach(), chSrvTask.getSrvTaskId());
}
else
{
}
else
{
// 修改服务计划
// 修改服务计划
chSrvTaskDetailMapper
.
delete
(
new
QueryWrapper
<
ChSrvTaskDetail
>().
eq
(
"srv_task_id"
,
Long
.
parseLong
(
srvTaskId
)));
//删除原来的计划详情
chSrvTaskDetailMapper
.
delete
(
new
QueryWrapper
<
ChSrvTaskDetail
>().
eq
(
"srv_task_id"
,
Long
.
parseLong
(
srvTaskId
)));
//删除原来的计划详情
this
.
insertTaskDetail
(
Long
.
parseLong
(
srvTaskId
),
taskDetails
);
this
.
insertTaskDetail
(
Long
.
parseLong
(
srvTaskId
),
taskDetails
);
//修改附件
//修改附件
this
.
updateAttachs
(
srvTaskInfoVO
.
getListAttach
(),
Long
.
parseLong
(
srvTaskId
));
//
this.updateAttachs(srvTaskInfoVO.getListAttach(), Long.parseLong(srvTaskId));
}
}
}
}
}
}
...
...
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