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
baa4b312
Commit
baa4b312
authored
Apr 15, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评定报告录入列表
parent
78da3a59
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
68 additions
and
126 deletions
+68
-126
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+6
-32
TaskMapper.java
...ervice/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
+6
-5
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+5
-12
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+3
-19
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+25
-58
TaskReportVO.java
...ava/com/hungraim/ltc/pojo/vo/assessment/TaskReportVO.java
+23
-0
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
baa4b312
package
com
.
hungraim
.
ltc
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateInfoVO
;
import
com.hungraim.ltc.pojo.entity.eval.ChAprTask
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskReportVO
;
import
com.hungraim.ltc.service.TaskService
;
import
com.hungraim.ltc.util.Result
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -57,37 +56,12 @@ public class TaskController {
}
/**
* 失能评定详情
*
* @param evaluateId 评定id
* @return 失能审核信息详情
*/
@RequestMapping
(
"/disableEvaluateInfo"
)
public
Result
<
DisableEvaluateInfoVO
>
disableEvaluateInfo
(
String
evaluateId
)
{
DisableEvaluateInfoVO
disableEvaluateInfoVO
=
taskService
.
disableEvaluateInfo
(
evaluateId
);
return
Result
.
success
(
disableEvaluateInfoVO
);
}
/**
* 失能评定
*
* @param applyId 申请id
* @param checkName 审核人
* @param applyStatus 审核结果
* @param checkRemark 审核备注
* @return 失能审核信息详情
*/
@RequestMapping
(
"/disableEvaluate"
)
public
Result
disableEvaluate
(
String
applyId
,
String
checkName
,
Short
applyStatus
,
String
checkRemark
)
{
return
Result
.
success
();
}
/**
* 新增失能评定
* 评定报告录入列表
*/
@RequestMapping
(
"/addAprTask"
)
public
Result
addAprTask
(
ChAprTask
chAprTask
)
{
return
Result
.
success
();
@RequestMapping
(
"/taskReportList"
)
public
Result
<
List
<
TaskReportVO
>>
taskReportList
()
{
List
<
TaskReportVO
>
taskReportList
=
taskService
.
taskReportList
();
return
Result
.
success
(
taskReportList
);
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
View file @
baa4b312
...
...
@@ -2,11 +2,9 @@ package com.hungraim.ltc.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateInfoVO
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateVO
;
import
com.hungraim.ism.pojo.vo.disable.DisableVO
;
import
com.hungraim.ltc.pojo.entity.eval.ChAprTask
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskReportVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
...
...
@@ -24,7 +22,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
/**
* 评定任务分配列表
*
* @param organIds
适用机构代码
* @param organIds 适用机构代码
* @param isIncludeSubsidiaries 是否包含子机构 0包含,1不包含
* @param provincial 所在省
* @param city 所在市
...
...
@@ -42,6 +40,9 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
String
street
,
String
realName
,
String
certiCode
,
String
taskName
,
String
taskTel
,
String
daysRemaining
,
String
status
,
String
isReturn
,
String
area
);
DisableEvaluateInfoVO
selectDisableEvaluateInfoByEvaluateId
(
String
evaluateId
);
/**
* 评定报告录入
*/
List
<
TaskReportVO
>
taskReportList
();
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
baa4b312
package
com
.
hungraim
.
ltc
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateInfoVO
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateVO
;
import
com.hungraim.ltc.pojo.entity.eval.ChAprTask
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskReportVO
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* 失能评定Service
*
...
...
@@ -40,14 +40,7 @@ public interface TaskService {
int
pageNum
,
int
pageSize
);
/**
* 失能评定详情
*
* @param evaluateId 评定id
* @return 失能评定详情
* 评定报告录入列表
*/
DisableEvaluateInfoVO
disableEvaluateInfo
(
String
evaluateId
);
void
addEvaluate
(
ChAprTask
disableEvaluate
);
void
disableEvaluate
(
String
applyId
,
String
checkName
,
Short
applyStatus
,
String
checkRemark
);
List
<
TaskReportVO
>
taskReportList
();
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
baa4b312
...
...
@@ -3,10 +3,9 @@ package com.hungraim.ltc.service.impl;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ism.pojo.vo.disable.DisableEvaluateInfoVO
;
import
com.hungraim.ltc.dao.TaskMapper
;
import
com.hungraim.ltc.pojo.entity.eval.ChAprTask
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskReportVO
;
import
com.hungraim.ltc.service.TaskService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -34,21 +33,7 @@ public class TaskServiceImpl implements TaskService {
}
@Override
public
DisableEvaluateInfoVO
disableEvaluateInfo
(
String
evaluateId
)
{
return
taskMapper
.
selectDisableEvaluateInfoByEvaluateId
(
evaluateId
);
public
List
<
TaskReportVO
>
taskReportList
(
)
{
return
taskMapper
.
taskReportList
(
);
}
@Override
public
void
addEvaluate
(
ChAprTask
disableEvaluate
)
{
taskMapper
.
insert
(
disableEvaluate
);
}
@Override
public
void
disableEvaluate
(
String
applyId
,
String
checkName
,
Short
applyStatus
,
String
checkRemark
)
{
/*ChDisableApply chDisableApply = disableEvaluateList.selectById(applyId);
chDisableApply.setCheckName(checkName);
chDisableApply.setApplyStatus(applyStatus);
chDisableApply.setCheckRemark(checkRemark);*/
}
}
\ No newline at end of file
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
baa4b312
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.hungraim.
ism.dao.DisableApply
Mapper"
>
<mapper
namespace=
"com.hungraim.
ltc.dao.Task
Mapper"
>
<select
id=
"taskDistributionList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO"
>
select
...
...
@@ -23,7 +23,7 @@
(select DISTRICT_NAME from CH_FND_STREET street where disable.ACPT_AREA = street.STREET_CODE) acptStreet,
disable.end_time endTime,
emp.real_name empRealName,
emp.tel em
o
Tel,
emp.tel em
p
Tel,
task.assign_time assignTime,
task.accept_time acceptTime,
task.finish_time finishTime,
...
...
@@ -82,62 +82,28 @@
</where>
</select>
<select
id=
"selectDisableEvaluateInfoByEvaluateId"
resultType=
"com.hungraim.ism.pojo.vo.disable.DisableEvaluateInfoVO"
>
select a.organ_id organId,
(select o1.organ_name from CH_FND_ORGAN o1 where a.organ_id = o1.organ_id) organName,
a.DISTRICT_PROVINCIAL provincial,
a.DISTRICT_CITY city,
a.DISTRICT_AREA area,
a.REAL_NAME name,
a.CERTI_CODE certiCode,
a.BIRTHDAY birthday,
a.GENDER gender,
a.TEL tel,
a.REGIST regist,
a.FIXED_TEL fixedTel,
a.TREATMENT_TYPE treatmentType,
a.ACPT_PROVINCIAL acptProvincial,
a.ACPT_CITY acptCity,
a.ACPT_AREA acptArea,
a.ACPT_STREET acptStreet,
a.ACPT_ADDRESS acptAddress,
a.ACPT_SRV_PROVINCIAL acptSrvProvincial,
a.ACPT_SRV_CITY acptSrvCity,
a.ACPT_SRV_AREA acptSrvArea,
a.ACPT_SRV_STREET acptSrvStreet,
a.ACPT_SRV_ROAD_DETAIL acptSrvRoadDetail,
a.ADRESS_DISTRICT_PROVINCIAL adressDistrictProvincial,
a.ADRESS_DISTRICT_CITY adressDistrictCity,
a.ADRESS_DISTRICT_CODE adressDistrictCode,
a.ADDRESS_ROAD_DETAIL addressRoadDetail,
a.ADDRESS_NUMBER_DETAIL addressNumberDetail,
a.DISEASE disease,
a.APPLY_METHOD applyMethod,
a.DISEASE_DESC diseaseDesc,
a.MEDICAL_CARD medicalCard,
a.MEDICAL_TYPE medicalType,
a.SRV_ORGAN_ID srvOrganId,
o.PERMIT_ID permitId,
a.OPER_NAME operName,
a.OPER_CERTI_CODE operCertiCode,
a.OPER_TEL operTel,
a.OPER_RELATION operRelation,
a.OPER_FIXED_TEL operFixedTel,
a.OPER_DISTRICT_PROVINCE operDistrictProvince,
a.OPER_DISTRICT_CITY operDistrictCity,
a.OPER_DISTRICT_CODE operDistrictCode,
a.OPER_STREET operStreet,
a.OPER_ADDRESS operAddress,
a.CHECK_NAME checkName,
a.APPLY_STATUS applyStatus,
a.CHECK_REMARK checkRemark
from ch_disable_evaluate a,
CH_SRV_ORGAN o
where a.EVALUATE_ID = #{evaluateId}
and a.SRV_ORGAN_ID = o.organ_code
<select
id=
"taskReportList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.TaskReportVO"
>
SELECT report.REPORT_ID reportId,
task.APR_ORGAN_ID organId,
organ.ORGAN_NAME organName,
(SELECT DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE task.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) districtProvincial,
(SELECT DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE task.DISTRICT_CITY = dis.DISTRICT_CODE) districPity,
(SELECT DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE task.DISTRICT_AREA = dis.DISTRICT_CODE) districtArea,
info.REAL_NAME realName,
info.CERTI_CODE certiCode,
(SELECT DISE_TYPE_CODE FROM CH_FND_DISEASE_TYPE WHERE info.DISE_TYPE_F = DISE_TYPE_ID) diseTypeF,
(SELECT DISE_TYPE_CODE FROM CH_FND_DISEASE_TYPE WHERE info.DISE_TYPE_S = DISE_TYPE_ID) diseTypeS,
info.tel tel,
(SELECT DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE info.ACPT_PROVINCIAL = dis.DISTRICT_CODE) acptProvincial,
(SELECT DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE info.ACPT_CITY = dis.DISTRICT_CODE) acptCity,
(SELECT DISTRICT_NAME FROM CH_FND_DISTRICT dis WHERE info.ACPT_AREA = dis.DISTRICT_CODE) acptArea,
lev.RISK_LEVEL riskLevel,
report.EFF_TIME effTime
FROM ch_apr_report report
LEFT JOIN CH_APR_TASK task ON report.TASK_ID = task.TASK_ID
LEFT JOIN CH_DISABLE_INFO info ON task.disable_info_id = info.disab_info_id
LEFT JOIN CH_APR_ORGAN organ ON task.APR_ORGAN_ID = organ.APR_ORGAN_ID
LEFT JOIN CH_DISABLE_RISK_LEVEL lev ON report.DISABLE_LEVEL_ID = lev.DISA_RISK_LEVEL_ID
</select>
</mapper>
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/assessment/TaskReportVO.java
0 → 100644
View file @
baa4b312
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
assessment
;
import
lombok.Data
;
@Data
public
class
TaskReportVO
{
private
String
reportId
;
private
String
organId
;
private
String
organName
;
private
String
districtProvincial
;
private
String
districPity
;
private
String
districtArea
;
private
String
realName
;
private
String
certiCode
;
private
String
diseTypeF
;
private
String
diseTypeS
;
private
String
tel
;
private
String
acptProvincial
;
private
String
acptCity
;
private
String
acptArea
;
private
String
riskLevel
;
private
String
effTime
;
}
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