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
b77d1343
Commit
b77d1343
authored
Aug 31, 2021
by
zhangch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试 可以进行复评申请的列表 接口
parent
2dddb458
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
73 deletions
+38
-73
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+2
-0
OrganServiceImpl.java
.../java/com/hungraim/ltc/service/impl/OrganServiceImpl.java
+3
-12
ReTaskController.java
...in/java/com/hungraim/ltc/controller/ReTaskController.java
+8
-11
TaskMapper.java
...ervice/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
+2
-1
ReTaskService.java
...src/main/java/com/hungraim/ltc/service/ReTaskService.java
+1
-1
ReTaskServiceImpl.java
...java/com/hungraim/ltc/service/impl/ReTaskServiceImpl.java
+2
-4
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+17
-41
ReTaskDistributionVO.java
...hungraim/ltc/pojo/vo/assessment/ReTaskDistributionVO.java
+3
-3
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
b77d1343
...
@@ -168,9 +168,11 @@ public class DisableServiceImpl implements DisableService {
...
@@ -168,9 +168,11 @@ public class DisableServiceImpl implements DisableService {
}
}
BeanUtil
.
copyProperties
(
chDisableApply
,
chAprTask
);
BeanUtil
.
copyProperties
(
chDisableApply
,
chAprTask
);
chAprTask
.
setDisableInfoId
(
chDisableInfo
.
getDisabInfoId
());
//失能人员id
chAprTask
.
setDisableInfoId
(
chDisableInfo
.
getDisabInfoId
());
//失能人员id
chAprTask
.
setReAprStatus
(
0
);
chAprTask
.
setEffTime
(
new
Date
());
chAprTask
.
setEffTime
(
new
Date
());
chAprTask
.
setFcd
(
null
);
chAprTask
.
setFcd
(
null
);
chAprTask
.
setAprType
(
0
);
//申请:0;复评:1
chAprTask
.
setAprType
(
0
);
//申请:0;复评:1
chAprTask
.
setTaskStatus
(
0
);
// 任务状态 0 未分配
aprTaskMapper
.
insert
(
chAprTask
);
aprTaskMapper
.
insert
(
chAprTask
);
}
}
}
}
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/OrganServiceImpl.java
View file @
b77d1343
...
@@ -41,19 +41,10 @@ public class OrganServiceImpl implements OrganService {
...
@@ -41,19 +41,10 @@ public class OrganServiceImpl implements OrganService {
@Override
@Override
public
List
<
Long
>
getOrganIds
(
Long
organId
,
Boolean
isInvolveChild
)
{
public
List
<
Long
>
getOrganIds
(
Long
organId
,
Boolean
isInvolveChild
)
{
List
<
Long
>
organIds
=
new
ArrayList
<>();
List
<
Long
>
organIds
=
new
ArrayList
<>();
if
(
isInvolveChild
)
{
if
(
organId
!=
null
)
{
if
(
organId
!=
null
)
{
organIds
.
add
(
organId
);
organIds
.
add
(
organId
);
if
(
isInvolveChild
)
{
getOrganList
(
organId
,
organIds
);
getOrganList
(
organId
,
organIds
);
// QueryWrapper<ChFndOrgan> queryWrapper = new QueryWrapper<>();
// queryWrapper.eq("PARENT_ID", organId);
// queryWrapper.eq("STATUS", "1");
// List<ChFndOrgan> chFndOrgans = fndOrganMapper.selectList(queryWrapper);
// if (chFndOrgans != null) {
// for (ChFndOrgan chFndOrgan : chFndOrgans) {
// organIds.add(Long.valueOf(chFndOrgan.getOrganId()));
// }
// }
}
}
}
}
return
organIds
;
return
organIds
;
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/ReTaskController.java
View file @
b77d1343
...
@@ -26,27 +26,24 @@ public class ReTaskController {
...
@@ -26,27 +26,24 @@ public class ReTaskController {
private
ReTaskService
reTaskService
;
private
ReTaskService
reTaskService
;
/**
/**
*
复评申请
列表
*
可以进行复评申请的
列表
*
*
* @param organId 适用机构id
* @param organId 适用机构id
* @param is
Included
是否包含下级机构,值为true,则包含organId的下层机构
* @param is
ChildGroup
是否包含下级机构,值为true,则包含organId的下层机构
* @param
acp
tProvincial 所在省
* @param
distric
tProvincial 所在省
* @param
acp
tCity 所在市
* @param
distric
tCity 所在市
* @param
acptC
rea 所在区域
* @param
districtA
rea 所在区域
* @param realName 失能人员姓名
* @param realName 失能人员姓名
* @param certiCode 失能人员身份证号码
* @param certiCode 失能人员身份证号码
* @param dataFrom 申请来源
* @param srvOrganId 护理机构
* @param applyMethod 申请类别
* @param pageNum 当前页
* @param pageNum 当前页
* @param pageSize 每页几条数据
* @param pageSize 每页几条数据
*/
*/
@RequestMapping
(
"/reTaskDistributionList"
)
@RequestMapping
(
"/reTaskDistributionList"
)
public
Result
<
Page
<
ReTaskDistributionVO
>>
reTaskDistributionList
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
pageNum
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
pageSize
,
public
Result
<
Page
<
ReTaskDistributionVO
>>
reTaskDistributionList
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
pageNum
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
pageSize
,
Long
organId
,
Boolean
is
Included
,
String
acptProvincial
,
String
acptCity
,
String
acptC
rea
,
Long
organId
,
Boolean
is
ChildGroup
,
String
districtProvincial
,
String
districtCity
,
String
districtA
rea
,
String
realName
,
String
certiCode
,
String
dataFrom
,
String
srvOrganId
,
String
applyMethod
)
{
String
realName
,
String
certiCode
)
{
Page
<
ReTaskDistributionVO
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
Page
<
ReTaskDistributionVO
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
reTaskService
.
reTaskDistributionList
(
page
,
organId
,
is
Included
,
acptProvincial
,
acptCity
,
acptCrea
,
realName
,
certiCode
,
dataFrom
,
srvOrganId
,
applyMethod
);
page
=
reTaskService
.
reTaskDistributionList
(
page
,
organId
,
is
ChildGroup
,
districtProvincial
,
districtCity
,
districtArea
,
realName
,
certiCode
);
return
Result
.
success
(
page
);
return
Result
.
success
(
page
);
}
}
/**
/**
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
View file @
b77d1343
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprTask
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprTask
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
import
java.util.List
;
...
@@ -55,5 +56,5 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
...
@@ -55,5 +56,5 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
List
<
AllotTaskHisVO
>
allotTaskHisList
();
List
<
AllotTaskHisVO
>
allotTaskHisList
();
Page
<
ReTaskDistributionVO
>
reTaskDistributionList
(
Page
<
ReTaskDistributionVO
>
page
,
List
<
Long
>
organIds
,
String
acptProvincial
,
String
acptCity
,
String
acptCrea
,
String
realName
,
String
certiCode
,
String
dataFrom
,
String
srvOrganId
,
String
applyMethod
);
Page
<
ReTaskDistributionVO
>
reTaskDistributionList
(
Page
<
ReTaskDistributionVO
>
page
,
@Param
(
"organIds"
)
List
<
Long
>
organIds
,
String
districtProvincial
,
String
districtCity
,
String
districtArea
,
String
realName
,
String
certiCode
);
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/ReTaskService.java
View file @
b77d1343
...
@@ -14,7 +14,7 @@ import org.springframework.stereotype.Service;
...
@@ -14,7 +14,7 @@ import org.springframework.stereotype.Service;
*/
*/
@Service
@Service
public
interface
ReTaskService
extends
IService
<
ChAprTask
>
{
public
interface
ReTaskService
extends
IService
<
ChAprTask
>
{
Page
<
ReTaskDistributionVO
>
reTaskDistributionList
(
Page
<
ReTaskDistributionVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
acptProvincial
,
String
acptCity
,
String
acptCrea
,
String
realName
,
String
certiCode
,
String
dataFrom
,
String
srvOrganId
,
String
applyMethod
);
Page
<
ReTaskDistributionVO
>
reTaskDistributionList
(
Page
<
ReTaskDistributionVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
acptProvincial
,
String
acptCity
,
String
acptCrea
,
String
realName
,
String
certiCode
);
/**
/**
* 复评申请详情
* 复评申请详情
*/
*/
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/ReTaskServiceImpl.java
View file @
b77d1343
package
com
.
hungraim
.
ltc
.
service
.
impl
;
package
com
.
hungraim
.
ltc
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.hungraim.ltc.api.OrganFeignService
;
import
com.hungraim.ltc.api.OrganFeignService
;
import
com.hungraim.ltc.dao.ChDisableApplyMapper
;
import
com.hungraim.ltc.dao.ChDisableApplyMapper
;
import
com.hungraim.ltc.dao.TaskMapper
;
import
com.hungraim.ltc.dao.TaskMapper
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprTask
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprTask
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
com.hungraim.ltc.pojo.vo.assessment.ReTaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.ReTaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.disable.ChDisableApplyVo
;
import
com.hungraim.ltc.pojo.vo.disable.ChDisableApplyVo
;
import
com.hungraim.ltc.service.ReTaskService
;
import
com.hungraim.ltc.service.ReTaskService
;
...
@@ -31,7 +29,7 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
...
@@ -31,7 +29,7 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
private
final
ChDisableApplyMapper
chDisableApplyMapper
;
private
final
ChDisableApplyMapper
chDisableApplyMapper
;
@Override
@Override
public
Page
<
ReTaskDistributionVO
>
reTaskDistributionList
(
Page
<
ReTaskDistributionVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
acptProvincial
,
String
acptCity
,
String
acptCrea
,
String
realName
,
String
certiCode
,
String
dataFrom
,
String
srvOrganId
,
String
applyMethod
)
{
public
Page
<
ReTaskDistributionVO
>
reTaskDistributionList
(
Page
<
ReTaskDistributionVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
acptProvincial
,
String
acptCity
,
String
acptCrea
,
String
realName
,
String
certiCode
)
{
Result
<
List
<
Long
>>
organChild
=
null
;
Result
<
List
<
Long
>>
organChild
=
null
;
List
<
Long
>
organIds
=
null
;
List
<
Long
>
organIds
=
null
;
if
(
organId
!=
null
)
{
if
(
organId
!=
null
)
{
...
@@ -41,7 +39,7 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
...
@@ -41,7 +39,7 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
organChild
=
organFeignService
.
getOrganChild
(
organId
,
isIncluded
);
organChild
=
organFeignService
.
getOrganChild
(
organId
,
isIncluded
);
organIds
=
organChild
.
getData
();
organIds
=
organChild
.
getData
();
}
}
return
taskMapper
.
reTaskDistributionList
(
page
,
organIds
,
acptProvincial
,
acptCity
,
acptCrea
,
realName
,
certiCode
,
dataFrom
,
srvOrganId
,
applyMethod
);
return
taskMapper
.
reTaskDistributionList
(
page
,
organIds
,
acptProvincial
,
acptCity
,
acptCrea
,
realName
,
certiCode
);
}
}
@Override
@Override
...
...
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
b77d1343
...
@@ -341,65 +341,41 @@
...
@@ -341,65 +341,41 @@
task.apply_id applyId,
task.apply_id applyId,
fndOrgan.ORGAN_NAME organName,
fndOrgan.ORGAN_NAME organName,
fndOrgan.ORGAN_ID organId,
fndOrgan.ORGAN_ID organId,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) acptProvincial,
apply.DISTRICT_PROVINCIAL districtProvincial,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_CITY = dis.DISTRICT_CODE) acptCity,
apply.DISTRICT_CITY districtCity,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_AREA = dis.DISTRICT_CODE) acptCrea,
apply.DISTRICT_AREA districtArea,
disable.real_name realName,
apply.real_name realName,
disable.gender gender,
apply.gender gender,
disable.BIRTHDAY birthday,
apply.BIRTHDAY birthday,
disable.certi_code certiCode,
apply.certi_code certiCode,
disable.tel tel,
apply.tel tel
pool.srv_mode_id srvModeId,
srvMode.SRV_MODE_NAME srvModeName,
(select DISE_TYPE_CODE from CH_FND_DISEASE_TYPE where disable.DISE_TYPE_F = DISE_TYPE_ID) diseTypeF,
(select DISE_TYPE_CODE from CH_FND_DISEASE_TYPE where disable.DISE_TYPE_S = DISE_TYPE_ID) diseTypeS,
apply.DATA_FROM dataFrom,
apply.APPLY_METHOD applyMethod,
task.fcd fcd
from CH_APR_TASK task
from CH_APR_TASK task
--适用机构
--适用机构
left join CH_FND_ORGAN fndOrgan on task.ORGAN_ID = fndOrgan.ORGAN_ID
left join CH_FND_ORGAN fndOrgan on task.ORGAN_ID = fndOrgan.ORGAN_ID
--失能申请表
--失能申请表
left join CH_DISABLE_APPLY apply on task.APPLY_ID = apply.APPLY_ID
left join CH_DISABLE_APPLY apply on task.APPLY_ID = apply.APPLY_ID
--失能人员信息表
left join ch_disable_info disable on task.disable_info_id = disable.disab_info_id
--服务分配表
left join ch_srv_send send on disable.DISAB_INFO_ID = send.DISAB_INFO_ID
--护理机构表
left join ch_srv_organ srvOrgan on send.SRV_ORGAN_ID = srvOrgan.SRV_ORGAN_ID
left join ch_apr_task_pool pool on task.TASK_ID = pool.TASK_ID
left join ch_fnd_srv_mode srvMode on pool.srv_mode_id = srvMode.srv_mode_id
<where>
<where>
and task.task_status = 3
and task.task_status = 3
<if
test=
"organIds != null"
>
<if
test=
"organIds != null"
>
and task.
apr_
organ_id in
and task.organ_id in
<foreach
collection=
"organIds"
item=
"organId"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"organIds"
item=
"organId"
open=
"("
close=
")"
separator=
","
>
#{organId}
#{organId}
</foreach>
</foreach>
</if>
</if>
<if
test=
"
acptProvincial != null and acp
tProvincial != ''"
>
<if
test=
"
districtProvincial != null and distric
tProvincial != ''"
>
and
disable.ACPT_PROVINCIAL = #{acp
tProvincial}
and
apply.DISTRICT_PROVINCIAL = #{distric
tProvincial}
</if>
</if>
<if
test=
"
acptCity != null and acp
tCity != ''"
>
<if
test=
"
districtCity != null and distric
tCity != ''"
>
and
disable.ACPT_CITY = #{acp
tCity}
and
apply.DISTRICT_CITY = #{distric
tCity}
</if>
</if>
<if
test=
"
acptCrea != null and acptC
rea != ''"
>
<if
test=
"
districtArea != null and districtA
rea != ''"
>
and
disable.ACPT_AREA = #{acptC
rea}
and
apply.DISTRICT_AREA = #{districtA
rea}
</if>
</if>
<if
test=
"realName != null and realName != ''"
>
<if
test=
"realName != null and realName != ''"
>
and
disable
.real_name like CONCAT(CONCAT('%',#{realName}) ,'%')
and
apply
.real_name like CONCAT(CONCAT('%',#{realName}) ,'%')
</if>
</if>
<if
test=
"certiCode != null and certiCode != ''"
>
<if
test=
"certiCode != null and certiCode != ''"
>
and disable.certi_code = #{certiCode}
and apply.certi_code = #{certiCode}
</if>
<if
test=
"dataFrom != null and dataFrom != ''"
>
and apply.DATA_FROM = #{dataFrom}
</if>
<if
test=
"srvOrganId != null and srvOrganId != ''"
>
and srvOrgan.SRV_ORGAN_ID = #{srvOrganId}
</if>
<if
test=
"applyMethod != null and applyMethod != ''"
>
and apply.APPLY_METHOD = #{applyMethod}
</if>
</if>
</where>
</where>
</select>
</select>
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/assessment/ReTaskDistributionVO.java
View file @
b77d1343
...
@@ -16,9 +16,9 @@ public class ReTaskDistributionVO {
...
@@ -16,9 +16,9 @@ public class ReTaskDistributionVO {
//机构代码
//机构代码
private
String
organId
;
private
String
organId
;
//机构所在省市区
//机构所在省市区
private
String
acp
tProvincial
;
private
String
distric
tProvincial
;
private
String
acp
tCity
;
private
String
distric
tCity
;
private
String
acptC
rea
;
private
String
districtA
rea
;
//失能人员姓名
//失能人员姓名
private
String
realName
;
private
String
realName
;
//失能人员性别
//失能人员性别
...
...
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