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
bb6fe136
Commit
bb6fe136
authored
May 10, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务方案查询
parent
64ece249
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
SrvProgramController.java
...graim/ltc/governance/controller/SrvProgramController.java
+2
-2
ChSrvProgramMapper.java
...a/com/hungraim/ltc/governance/dao/ChSrvProgramMapper.java
+1
-1
SrvProgramService.java
...om/hungraim/ltc/governance/service/SrvProgramService.java
+1
-1
SrvProgramServiceImpl.java
...im/ltc/governance/service/impl/SrvProgramServiceImpl.java
+2
-2
ChSrvProgramMapper.xml
...com/hungraim/ltc/governance/mapper/ChSrvProgramMapper.xml
+3
-0
No files found.
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvProgramController.java
View file @
bb6fe136
...
...
@@ -84,7 +84,7 @@ public class SrvProgramController {
* @return 返回个人照护方案列表
*/
@RequestMapping
(
"/programSetList"
)
public
Result
getProgramSetList
(
Integer
pageNum
,
Integer
pageSize
,
Long
disabInfoId
,
Long
srvOrganId
,
String
status
)
{
public
Result
getProgramSetList
(
Integer
pageNum
,
Integer
pageSize
,
Long
disabInfoId
,
Long
srvOrganId
,
Long
srvSendId
,
String
status
)
{
if
(
pageNum
==
null
||
pageNum
<
1
||
disabInfoId
==
null
||
disabInfoId
==
0
||
srvOrganId
==
null
||
srvOrganId
==
0
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
...
...
@@ -92,7 +92,7 @@ public class SrvProgramController {
pageSize
=
10
;
}
Page
<
ProgramListVo
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
srvProgramService
.
getProgramSetList
(
page
,
disabInfoId
,
srvOrganId
,
status
);
page
=
srvProgramService
.
getProgramSetList
(
page
,
disabInfoId
,
srvOrganId
,
srvSendId
,
status
);
List
<
ProgramListVo
>
records
=
page
.
getRecords
();
records
=
records
.
stream
().
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toCollection
(()
->
new
TreeSet
<>(
Comparator
.
comparingLong
(
ProgramListVo:
:
getProgramId
))),
ArrayList:
:
new
));
...
...
governance/src/main/java/com/hungraim/ltc/governance/dao/ChSrvProgramMapper.java
View file @
bb6fe136
...
...
@@ -25,7 +25,7 @@ public interface ChSrvProgramMapper extends BaseMapper<ChSrvProgram> {
* @param programStatus 服务方案状态 0:未生效、1:已生效、2:已终止
* @return 返回个人照护方案列表
*/
Page
<
ProgramListVo
>
getProgramList
(
Page
<
ProgramListVo
>
page
,
@Param
(
"disabInfoId"
)
Long
disabInfoId
,
@Param
(
"srvOrganId"
)
Long
srvOrganId
,
@Param
(
"programStatus"
)
String
programStatus
);
Page
<
ProgramListVo
>
getProgramList
(
Page
<
ProgramListVo
>
page
,
@Param
(
"disabInfoId"
)
Long
disabInfoId
,
@Param
(
"srvOrganId"
)
Long
srvOrganId
,
@Param
(
"
srvSendId"
)
Long
srvSendId
,
@Param
(
"
programStatus"
)
String
programStatus
);
/**
* 查看服务方案详情
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/SrvProgramService.java
View file @
bb6fe136
...
...
@@ -32,7 +32,7 @@ public interface SrvProgramService {
* @param programStatus 服务方案状态 0:未生效、1:已生效、2:已终止
* @return 返回个人照护方案列表
*/
Page
<
ProgramListVo
>
getProgramSetList
(
Page
<
ProgramListVo
>
page
,
Long
disabInfoId
,
Long
srvOrganId
,
String
programStatus
);
Page
<
ProgramListVo
>
getProgramSetList
(
Page
<
ProgramListVo
>
page
,
Long
disabInfoId
,
Long
srvOrganId
,
Long
srvSendId
,
String
programStatus
);
/**
* 个人照护方案记录条数,查询对应方案状态的记录条数
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvProgramServiceImpl.java
View file @
bb6fe136
...
...
@@ -55,8 +55,8 @@ public class SrvProgramServiceImpl implements SrvProgramService {
}
@Override
public
Page
<
ProgramListVo
>
getProgramSetList
(
Page
<
ProgramListVo
>
page
,
Long
disabInfoId
,
Long
srvOrganId
,
String
programStatus
)
{
return
chSrvProgramMapper
.
getProgramList
(
page
,
disabInfoId
,
srvOrganId
,
programStatus
);
public
Page
<
ProgramListVo
>
getProgramSetList
(
Page
<
ProgramListVo
>
page
,
Long
disabInfoId
,
Long
srvOrganId
,
Long
srvSendId
,
String
programStatus
)
{
return
chSrvProgramMapper
.
getProgramList
(
page
,
disabInfoId
,
srvOrganId
,
srvSendId
,
programStatus
);
}
@Override
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/ChSrvProgramMapper.xml
View file @
bb6fe136
...
...
@@ -140,6 +140,9 @@
LEFT JOIN CH_SRV_ORGAN T5 ON T1.SRV_ORGAN_ID = T5.SRV_ORGAN_ID
WHERE T1.DISAB_INFO_ID = #{disabInfoId}
AND T1.SRV_ORGAN_ID = #{srvOrganId}
<if
test=
"srvSendId != null and srvSendId != ''"
>
AND T1.SRV_SEND_ID = #{srvSendId}
</if>
<!--
<if test="programStatus != null and programStatus != ''">
AND T1.PROG_STATUS = #{programStatus}
...
...
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