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
dc18762d
Commit
dc18762d
authored
Mar 06, 2023
by
maqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务参数配置中的服务项目定义列表需要加机构权限控制
parent
86472d9c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
13 deletions
+17
-13
NursingServiceItemsController.java
.../governance/controller/NursingServiceItemsController.java
+2
-1
ChSrvOrganProjectMapper.java
.../hungraim/ltc/governance/dao/ChSrvOrganProjectMapper.java
+2
-1
NursingServiceItemsService.java
...im/ltc/governance/service/NursingServiceItemsService.java
+1
-1
NursingServiceItemsServiceImpl.java
...vernance/service/impl/NursingServiceItemsServiceImpl.java
+7
-5
ChSrvOrganProjectMapper.xml
...ungraim/ltc/governance/mapper/ChSrvOrganProjectMapper.xml
+5
-5
No files found.
governance/src/main/java/com/hungraim/ltc/governance/controller/NursingServiceItemsController.java
View file @
dc18762d
...
@@ -50,8 +50,9 @@ public class NursingServiceItemsController {
...
@@ -50,8 +50,9 @@ public class NursingServiceItemsController {
@RequestParam
(
defaultValue
=
"10"
)
Integer
pageSize
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
pageSize
,
String
organIds
,
String
name
,
String
status
)
{
String
organIds
,
String
name
,
String
status
)
{
long
organId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"organId"
);
long
organId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"organId"
);
long
srvOrganId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"srvOrganId"
);
Page
<
OrganProjectVO
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
Page
<
OrganProjectVO
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
nursingServiceItemsService
.
organProjectList
(
page
,
organIds
,
name
,
status
);
page
=
nursingServiceItemsService
.
organProjectList
(
page
,
String
.
valueOf
(
srvOrganId
),
String
.
valueOf
(
organId
)
,
name
,
status
);
return
Result
.
success
(
page
);
return
Result
.
success
(
page
);
}
}
...
...
governance/src/main/java/com/hungraim/ltc/governance/dao/ChSrvOrganProjectMapper.java
View file @
dc18762d
...
@@ -23,5 +23,5 @@ public interface ChSrvOrganProjectMapper extends BaseMapper<ChSrvOrganProject> {
...
@@ -23,5 +23,5 @@ public interface ChSrvOrganProjectMapper extends BaseMapper<ChSrvOrganProject> {
*/
*/
List
<
ProgramSetAndProjectVo
>
selectOrganProjectsBySrvOrganId
(
@Param
(
"srvOrganId"
)
Long
srvOrganId
);
List
<
ProgramSetAndProjectVo
>
selectOrganProjectsBySrvOrganId
(
@Param
(
"srvOrganId"
)
Long
srvOrganId
);
Page
<
OrganProjectVO
>
organProjectList
(
Page
<
OrganProjectVO
>
page
,
List
<
String
>
organIds
,
String
name
,
String
status
);
Page
<
OrganProjectVO
>
organProjectList
(
Page
<
OrganProjectVO
>
page
,
String
srvOrganId
,
String
organId
,
String
name
,
String
status
);
}
}
\ No newline at end of file
governance/src/main/java/com/hungraim/ltc/governance/service/NursingServiceItemsService.java
View file @
dc18762d
...
@@ -15,7 +15,7 @@ import java.util.List;
...
@@ -15,7 +15,7 @@ import java.util.List;
@Service
@Service
public
interface
NursingServiceItemsService
{
public
interface
NursingServiceItemsService
{
Page
<
OrganProjectVO
>
organProjectList
(
Page
<
OrganProjectVO
>
page
,
String
organIds
,
String
name
,
String
status
);
Page
<
OrganProjectVO
>
organProjectList
(
Page
<
OrganProjectVO
>
page
,
String
organIds
,
String
organId
,
String
name
,
String
status
);
void
organProjectConfig
(
ChSrvOrganProject
project
);
void
organProjectConfig
(
ChSrvOrganProject
project
);
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/NursingServiceItemsServiceImpl.java
View file @
dc18762d
...
@@ -40,12 +40,14 @@ public class NursingServiceItemsServiceImpl implements NursingServiceItemsServic
...
@@ -40,12 +40,14 @@ public class NursingServiceItemsServiceImpl implements NursingServiceItemsServic
private
final
FndDiseaseTypeMapper
fndDiseaseTypeMapper
;
private
final
FndDiseaseTypeMapper
fndDiseaseTypeMapper
;
@Override
@Override
public
Page
<
OrganProjectVO
>
organProjectList
(
Page
<
OrganProjectVO
>
page
,
String
organIds
,
String
name
,
String
status
)
{
public
Page
<
OrganProjectVO
>
organProjectList
(
Page
<
OrganProjectVO
>
page
,
String
srvOrganId
,
String
organId
,
String
name
,
String
status
)
{
List
<
String
>
organIdList
=
null
;
Page
<
OrganProjectVO
>
organProjectVOPage
;
if
(
StrUtil
.
isNotBlank
(
organIds
))
{
if
(
organId
.
equals
(
"0"
)
||
organId
==
null
){
organIdList
=
Arrays
.
asList
(
organIds
.
split
(
","
));
organProjectVOPage
=
chSrvOrganProjectMapper
.
organProjectList
(
page
,
null
,
null
,
name
,
status
);
}
else
{
organProjectVOPage
=
chSrvOrganProjectMapper
.
organProjectList
(
page
,
srvOrganId
,
organId
,
name
,
status
);
}
}
return
chSrvOrganProjectMapper
.
organProjectList
(
page
,
organIdList
,
name
,
status
)
;
return
organProjectVOPage
;
}
}
@Override
@Override
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/ChSrvOrganProjectMapper.xml
View file @
dc18762d
...
@@ -97,11 +97,8 @@
...
@@ -97,11 +97,8 @@
left join CH_FND_ORGAN org on organ.ORGAN_ID = org.ORGAN_ID
left join CH_FND_ORGAN org on organ.ORGAN_ID = org.ORGAN_ID
left join CH_SERVICE_TYPE_detailed d on d.service_type_detailed_id = project.item_name
left join CH_SERVICE_TYPE_detailed d on d.service_type_detailed_id = project.item_name
<where>
<where>
<if
test=
"organIds != null"
>
<if
test=
"srvOrganId != null and srvOrganId != '' "
>
and project.srv_organ_id in
and project.srv_organ_id = #{srvOrganId}
<foreach
collection=
"organIds"
item=
"organId"
open=
"("
close=
")"
separator=
","
>
#{organId}
</foreach>
</if>
</if>
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
and project.item_name like CONCAT(CONCAT('%',#{name}) ,'%')
and project.item_name like CONCAT(CONCAT('%',#{name}) ,'%')
...
@@ -109,6 +106,9 @@
...
@@ -109,6 +106,9 @@
<if
test=
"status != null and status != ''"
>
<if
test=
"status != null and status != ''"
>
and project.status = #{status}
and project.status = #{status}
</if>
</if>
<if
test=
"organId != null and organId != ''"
>
and org.ORGAN_ID = #{organId}
</if>
</where>
</where>
order by project.project_id desc
order by project.project_id desc
</select>
</select>
...
...
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