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
50a7453c
Commit
50a7453c
authored
Mar 20, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
方案
parent
b630b9af
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
SrvProgramController.java
...graim/ltc/governance/controller/SrvProgramController.java
+2
-2
ChSrvProgramMapper.xml
...com/hungraim/ltc/governance/mapper/ChSrvProgramMapper.xml
+5
-3
No files found.
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvProgramController.java
View file @
50a7453c
...
@@ -75,7 +75,7 @@ public class SrvProgramController {
...
@@ -75,7 +75,7 @@ public class SrvProgramController {
* @return 返回个人照护方案列表
* @return 返回个人照护方案列表
*/
*/
@RequestMapping
(
"/programSetList"
)
@RequestMapping
(
"/programSetList"
)
public
Result
getProgramSetList
(
Integer
pageNum
,
Integer
pageSize
,
Long
disabInfoId
,
Long
srvOrganId
)
{
public
Result
getProgramSetList
(
Integer
pageNum
,
Integer
pageSize
,
Long
disabInfoId
,
Long
srvOrganId
,
String
status
)
{
if
(
pageNum
==
null
||
pageNum
<
1
||
disabInfoId
==
null
||
disabInfoId
==
0
||
srvOrganId
==
null
||
srvOrganId
==
0
)
{
if
(
pageNum
==
null
||
pageNum
<
1
||
disabInfoId
==
null
||
disabInfoId
==
0
||
srvOrganId
==
null
||
srvOrganId
==
0
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
}
...
@@ -83,7 +83,7 @@ public class SrvProgramController {
...
@@ -83,7 +83,7 @@ public class SrvProgramController {
pageSize
=
10
;
pageSize
=
10
;
}
}
Page
<
ProgramListVo
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
Page
<
ProgramListVo
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
srvProgramService
.
getProgramSetList
(
page
,
disabInfoId
,
srvOrganId
,
null
);
page
=
srvProgramService
.
getProgramSetList
(
page
,
disabInfoId
,
srvOrganId
,
status
);
List
<
ProgramListVo
>
records
=
page
.
getRecords
();
List
<
ProgramListVo
>
records
=
page
.
getRecords
();
records
=
records
.
stream
().
collect
(
records
=
records
.
stream
().
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toCollection
(()
->
new
TreeSet
<>(
Comparator
.
comparingLong
(
ProgramListVo:
:
getProgramId
))),
ArrayList:
:
new
));
Collectors
.
collectingAndThen
(
Collectors
.
toCollection
(()
->
new
TreeSet
<>(
Comparator
.
comparingLong
(
ProgramListVo:
:
getProgramId
))),
ArrayList:
:
new
));
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/ChSrvProgramMapper.xml
View file @
50a7453c
...
@@ -128,7 +128,9 @@
...
@@ -128,7 +128,9 @@
T4.FINISH_TIME assessDate,
T4.FINISH_TIME assessDate,
T7.MODE_NAME svrModelName,
T7.MODE_NAME svrModelName,
T5.SRV_ORGAN_NAME svrOrganName,
T5.SRV_ORGAN_NAME svrOrganName,
T1.PROG_STATUS progStatus,
<if
test=
"programStatus != null and programStatus != ''"
>
#{programStatus} progStatus,
</if>
T1.EFF_TIME effTime
T1.EFF_TIME effTime
FROM CH_SRV_PROGRAM T1
FROM CH_SRV_PROGRAM T1
INNER JOIN CH_DISABLE_INFO T2 ON T1.DISAB_INFO_ID = T2.DISAB_INFO_ID
INNER JOIN CH_DISABLE_INFO T2 ON T1.DISAB_INFO_ID = T2.DISAB_INFO_ID
...
@@ -139,10 +141,10 @@
...
@@ -139,10 +141,10 @@
LEFT JOIN CH_SRV_ORGAN T5 ON T1.SRV_ORGAN_ID = T5.SRV_ORGAN_ID
LEFT JOIN CH_SRV_ORGAN T5 ON T1.SRV_ORGAN_ID = T5.SRV_ORGAN_ID
WHERE T1.DISAB_INFO_ID = #{disabInfoId}
WHERE T1.DISAB_INFO_ID = #{disabInfoId}
AND T1.SRV_ORGAN_ID = #{srvOrganId}
AND T1.SRV_ORGAN_ID = #{srvOrganId}
<!--
<if test="programStatus != null and programStatus != ''">
<if test="programStatus != null and programStatus != ''">
AND T1.PROG_STATUS = #{programStatus}
AND T1.PROG_STATUS = #{programStatus}
</if>
</if>
-->
</select>
</select>
<select
id=
"getProgramEndProgram"
resultType=
"com.hungraim.ltc.pojo.entity.serviceManage.ChSrvProgram"
>
<select
id=
"getProgramEndProgram"
resultType=
"com.hungraim.ltc.pojo.entity.serviceManage.ChSrvProgram"
>
...
...
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