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
2afebb9e
Commit
2afebb9e
authored
Apr 09, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
失能人员信息列表省市区、机构
parent
936a9157
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
5 deletions
+26
-5
DisableServiceImpl.java
...ava/com/hungraim/ism/service/impl/DisableServiceImpl.java
+21
-0
ChDisableApplyMapper.xml
...ervice/src/main/resources/mapper/ChDisableApplyMapper.xml
+5
-5
No files found.
apply/apply-service/src/main/java/com/hungraim/ism/service/impl/DisableServiceImpl.java
View file @
2afebb9e
...
@@ -36,6 +36,26 @@ public class DisableServiceImpl implements DisableService {
...
@@ -36,6 +36,26 @@ public class DisableServiceImpl implements DisableService {
public
Page
<
DisableVO
>
disableList
(
String
organId
,
String
isIncludeSubsidiaries
,
String
districtProvincial
,
String
districtCity
,
public
Page
<
DisableVO
>
disableList
(
String
organId
,
String
isIncludeSubsidiaries
,
String
districtProvincial
,
String
districtCity
,
String
districtArea
,
String
realName
,
String
certiCode
,
String
dataFrom
,
String
districtArea
,
String
realName
,
String
certiCode
,
String
dataFrom
,
String
srvOrganId
,
int
page
,
int
pageSize
)
{
String
srvOrganId
,
int
page
,
int
pageSize
)
{
//拼接子机构id
if
(
"0"
.
equals
(
isIncludeSubsidiaries
))
{
boolean
flag
=
true
;
while
(
flag
)
{
QueryWrapper
<
ChFndOrgan
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"STATUS"
,
"1"
);
queryWrapper
.
eq
(
"PARENT_ID"
,
organId
);
List
<
ChFndOrgan
>
organs
=
fndOrganMapper
.
selectList
(
queryWrapper
);
if
(
organs
!=
null
&&
organs
.
size
()
!=
0
)
{
for
(
ChFndOrgan
chFndOrgan
:
organs
)
{
organId
=
organId
+
","
+
chFndOrgan
.
getOrganId
();
if
(
"2"
.
equals
(
chFndOrgan
.
getIsLeaf
()))
{
flag
=
false
;
}
}
}
else
{
flag
=
false
;
}
}
}
return
disableApplyMapper
.
disableList
(
new
Page
<>(
page
,
pageSize
),
organId
,
isIncludeSubsidiaries
,
districtProvincial
,
return
disableApplyMapper
.
disableList
(
new
Page
<>(
page
,
pageSize
),
organId
,
isIncludeSubsidiaries
,
districtProvincial
,
districtCity
,
districtArea
,
realName
,
certiCode
,
dataFrom
,
srvOrganId
);
districtCity
,
districtArea
,
realName
,
certiCode
,
dataFrom
,
srvOrganId
);
}
}
...
@@ -91,6 +111,7 @@ public class DisableServiceImpl implements DisableService {
...
@@ -91,6 +111,7 @@ public class DisableServiceImpl implements DisableService {
public
List
<
ChFndOrgan
>
fndOrganRoot
()
{
public
List
<
ChFndOrgan
>
fndOrganRoot
()
{
QueryWrapper
<
ChFndOrgan
>
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
ChFndOrgan
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"IS_LEAF"
,
"1"
);
queryWrapper
.
eq
(
"IS_LEAF"
,
"1"
);
queryWrapper
.
and
(
wrapper
->
wrapper
.
eq
(
"PARENT_ID"
,
""
).
or
().
eq
(
"PARENT_ID"
,
null
));
return
fndOrganMapper
.
selectList
(
queryWrapper
);
return
fndOrganMapper
.
selectList
(
queryWrapper
);
}
}
...
...
apply/apply-service/src/main/resources/mapper/ChDisableApplyMapper.xml
View file @
2afebb9e
...
@@ -25,15 +25,15 @@
...
@@ -25,15 +25,15 @@
from CH_DISABLE_APPLY a
from CH_DISABLE_APPLY a
LEFT JOIN CH_FND_ORGAN o ON a.organ_id = o.ORGAN_ID
LEFT JOIN CH_FND_ORGAN o ON a.organ_id = o.ORGAN_ID
LEFT JOIN CH_FND_SRV_MODE m ON a.srv_mode_id = m.SRV_MODE_ID
LEFT JOIN CH_FND_SRV_MODE m ON a.srv_mode_id = m.SRV_MODE_ID
<where>
<if
test=
"organId != null and organId != ''"
>
<if
test=
"organId != null and organId != ''"
>
<if
test=
"isIncludeSubsidiaries == '0'"
>
<if
test=
"isIncludeSubsidiaries == '0'"
>
and a.organ_id in (select organ_id form CH_FND_ORGAN where PARENT_ID =
#{organId})
and a.organ_id in (
#{organId})
</if>
</if>
<if
test=
"isIncludeSubsidiaries != '0'"
>
<if
test=
"isIncludeSubsidiaries != '0'"
>
and a.organ_id = #{organId}
and a.organ_id = #{organId}
</if>
</if>
</if>
</if>
<if
test=
"provincial != null and provincial != ''"
>
<if
test=
"provincial != null and provincial != ''"
>
and a.DISTRICT_PROVINCIAL = #{provincial}
and a.DISTRICT_PROVINCIAL = #{provincial}
</if>
</if>
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
<if
test=
"srvOrganId != null and srvOrganId != ''"
>
<if
test=
"srvOrganId != null and srvOrganId != ''"
>
and h.srvOrganId = #{srvOrganId}
and h.srvOrganId = #{srvOrganId}
</if>
</if>
</where>
</select>
</select>
<select
id=
"selectDisableExamineInfoByApplyId"
resultType=
"com.hungraim.ism.pojo.vo.disable.DisableExamineInfoVO"
>
<select
id=
"selectDisableExamineInfoByApplyId"
resultType=
"com.hungraim.ism.pojo.vo.disable.DisableExamineInfoVO"
>
...
@@ -109,10 +110,9 @@
...
@@ -109,10 +110,9 @@
a.CHECK_NAME checkName,
a.CHECK_NAME checkName,
a.APPLY_STATUS applyStatus,
a.APPLY_STATUS applyStatus,
a.CHECK_REMARK checkRemark
a.CHECK_REMARK checkRemark
from CH_DISABLE_APPLY a
,
from CH_DISABLE_APPLY a
CH_SRV_ORGAN o
LEFT JOIN CH_SRV_ORGAN o ON a.SRV_ORGAN_ID = o.organ_code
where a.APPLY_ID = #{applyId}
where a.APPLY_ID = #{applyId}
and a.SRV_ORGAN_ID = o.organ_code
</select>
</select>
<select
id=
"listExamineRecordByApplyId"
resultType=
"com.hungraim.ism.pojo.vo.disable.ExamineRecord"
>
<select
id=
"listExamineRecordByApplyId"
resultType=
"com.hungraim.ism.pojo.vo.disable.ExamineRecord"
>
...
...
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