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
346f8278
Commit
346f8278
authored
Jan 10, 2023
by
maqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日常生活活动能力查询
parent
667d3fc7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+3
-3
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+1
-1
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+13
-2
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
346f8278
...
@@ -635,9 +635,9 @@ public class TaskController {
...
@@ -635,9 +635,9 @@ public class TaskController {
@RequestMapping
(
value
=
"/chIpad/taskReportFractionDtlQueryList"
)
@RequestMapping
(
value
=
"/chIpad/taskReportFractionDtlQueryList"
)
@ResponseBody
@ResponseBody
public
Result
taskReportFractionDtlQueryList
()
throws
Exception
{
public
Result
taskReportFractionDtlQueryList
()
throws
Exception
{
List
<
ChTaskReportFractionDtl
>
resultList
=
taskService
.
taskReportFractionDtlQueryList
();
Map
map
=
taskService
.
taskReportFractionDtlQueryList
();
if
(
resultList
.
size
()
>
0
)
{
if
(
map
.
size
()
>
0
)
{
return
Result
.
success
(
resultList
);
return
Result
.
success
(
map
);
}
}
return
Result
.
failed
(
"没有查到日常生活活动能力数据"
);
return
Result
.
failed
(
"没有查到日常生活活动能力数据"
);
}
}
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
346f8278
...
@@ -84,5 +84,5 @@ public interface TaskService {
...
@@ -84,5 +84,5 @@ public interface TaskService {
IPage
<
ChAprTask
>
apprTaskDetailInfo
(
String
appointStartTime
,
String
appointEndTime
,
String
status
,
String
taskGroupNo
,
Integer
pageNo
,
Integer
pageSize
)
throws
TppesApiException
;
IPage
<
ChAprTask
>
apprTaskDetailInfo
(
String
appointStartTime
,
String
appointEndTime
,
String
status
,
String
taskGroupNo
,
Integer
pageNo
,
Integer
pageSize
)
throws
TppesApiException
;
List
<
ChTaskReportFractionDtl
>
taskReportFractionDtlQueryList
();
Map
taskReportFractionDtlQueryList
();
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
346f8278
...
@@ -28,6 +28,7 @@ import org.springframework.stereotype.Service;
...
@@ -28,6 +28,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
/**
* @author czz
* @author czz
...
@@ -632,7 +633,17 @@ public class TaskServiceImpl implements TaskService {
...
@@ -632,7 +633,17 @@ public class TaskServiceImpl implements TaskService {
}
}
@Override
@Override
public
List
<
ChTaskReportFractionDtl
>
taskReportFractionDtlQueryList
()
{
public
Map
taskReportFractionDtlQueryList
()
{
return
chTaskReportFractionDtlMapper
.
selectList
(
null
);
List
<
ChTaskReportFractionDtl
>
chTaskReportFractionDtls
=
chTaskReportFractionDtlMapper
.
selectList
(
null
);
Map
<
String
,
List
<
ChTaskReportFractionDtl
>>
hashMap
=
new
HashMap
<>();
for
(
ChTaskReportFractionDtl
chTaskReportFractionDtl
:
chTaskReportFractionDtls
)
{
String
taskReportProxy
=
chTaskReportFractionDtl
.
getTaskReportProxy
();
if
(!
hashMap
.
containsKey
(
taskReportProxy
)){
List
<
ChTaskReportFractionDtl
>
collect
=
chTaskReportFractionDtls
.
stream
().
filter
(
c
->
c
.
getTaskReportProxy
().
equals
(
taskReportProxy
)).
collect
(
Collectors
.
toList
());
hashMap
.
put
(
taskReportProxy
,
collect
);
}
};
return
hashMap
;
}
}
}
}
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