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
7c998a2a
Commit
7c998a2a
authored
Mar 06, 2023
by
董天德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缺陷修改
parent
1cb178e0
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
55 additions
and
53 deletions
+55
-53
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+11
-12
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+2
-8
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+2
-1
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+29
-28
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+2
-1
ReportUpdateVO.java
...rc/main/java/com/hungraim/ltc/pojo/vo/ReportUpdateVO.java
+1
-0
TaskReportVO.java
...ava/com/hungraim/ltc/pojo/vo/assessment/TaskReportVO.java
+2
-0
DisableInfoTaskVO.java
...om/hungraim/ltc/pojo/vo/governance/DisableInfoTaskVO.java
+2
-0
SrvSendMapper.java
...n/java/com/hungraim/ltc/governance/dao/SrvSendMapper.java
+4
-3
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
7c998a2a
...
@@ -166,18 +166,17 @@ public class DisableServiceImpl implements DisableService {
...
@@ -166,18 +166,17 @@ public class DisableServiceImpl implements DisableService {
//医保统筹区
//医保统筹区
ChDisableApply
chDisableApply
=
disableApplyMapper
.
selectById
(
chDisableInfo
.
getApplyId
());
ChDisableApply
chDisableApply
=
disableApplyMapper
.
selectById
(
chDisableInfo
.
getApplyId
());
disableUpdateDetailVo
.
setMedicalArea
(
chDisableApply
.
getMedicalArea
());
disableUpdateDetailVo
.
setMedicalArea
(
chDisableApply
.
getMedicalArea
());
// try {
try
{
// // TODO 需要确认信息表的附件类型
Result
<
List
<
ChFndAttach
>>
listResult
=
attachFeignService
.
selectAttachs
(
Long
.
valueOf
(
chDisableInfo
.
getApplyId
()),
AttachType
.
DISABLE
.
getUploadType
());
// Result<List<ChFndAttach>> listResult = attachFeignService.selectAttachs(Long.valueOf(disabInfoId), AttachType.DISABLE.getUploadType());
if
(
listResult
.
getCode
().
equals
(
ResultCode
.
SUCCESS
.
getCode
()))
{
// if (listResult.getCode().equals(ResultCode.SUCCESS.getCode())) {
disableUpdateDetailVo
.
setFileDataList
(
listResult
.
getData
());
// disableUpdateDetailVo.setFileDataList(listResult.getData());
}
else
{
// } else {
log
.
info
(
"请求获取附件列表错误:错误码{},错误信息:{}"
,
listResult
.
getCode
(),
listResult
.
getMsg
());
// log.info("请求获取附件列表错误:错误码{},错误信息:{}", listResult.getCode(), listResult.getMsg());
}
// }
}
catch
(
Exception
e
)
{
// } catch (Exception e) {
log
.
error
(
e
.
getMessage
());
// log.error(e.getMessage());
e
.
printStackTrace
();
// e.printStackTrace();
}
// }
return
disableUpdateDetailVo
;
return
disableUpdateDetailVo
;
}
}
return
null
;
return
null
;
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
7c998a2a
...
@@ -235,14 +235,8 @@ public class TaskController {
...
@@ -235,14 +235,8 @@ public class TaskController {
if
(
vo
.
getRemark
()
==
null
)
{
if
(
vo
.
getRemark
()
==
null
)
{
vo
.
setRemark
(
""
);
vo
.
setRemark
(
""
);
}
}
Date
evaluateDate
;
try
{
taskService
.
updateReport
(
vo
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
evaluateDate
=
sdf
.
parse
(
vo
.
getEvaluateTime
());
}
catch
(
ParseException
e
)
{
return
Result
.
failed
(
"评估时间格式不正确!"
);
}
taskService
.
updateReport
(
vo
.
getReportId
(),
vo
.
getPerson1
(),
vo
.
getPerson2
(),
vo
.
getPerson3
(),
evaluateDate
,
vo
.
getDisableLevelId
(),
vo
.
getPolNo
(),
vo
.
getRemark
(),
vo
.
getFileDataList
(),
vo
.
getChAprReportFractions
());
return
Result
.
success
();
return
Result
.
success
();
}
}
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
7c998a2a
...
@@ -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.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach
;
import
com.hungraim.ltc.pojo.entity.assessment.*
;
import
com.hungraim.ltc.pojo.entity.assessment.*
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.vo.ReportUpdateVO
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsListResp
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsListResp
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
...
@@ -33,7 +34,7 @@ public interface TaskService {
...
@@ -33,7 +34,7 @@ public interface TaskService {
Result
<
Object
>
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
,
List
<
ChFndAttach
>
fileDataList
,
List
<
ChAprReportFraction
>
chAprReportFractions
);
Result
<
Object
>
addReport
(
Integer
taskId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateTime
,
Integer
disableLevelId
,
String
polNo
,
String
remark
,
List
<
ChFndAttach
>
fileDataList
,
List
<
ChAprReportFraction
>
chAprReportFractions
);
void
updateReport
(
Integer
reportId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateDate
,
Integer
disableLevelId
,
String
polNo
,
String
remark
,
List
<
ChFndAttach
>
fileDataList
,
List
<
ChAprReportFraction
>
chAprReportFractions
);
void
updateReport
(
ReportUpdateVO
vo
);
TaskReportVO
getReportById
(
String
reportId
);
TaskReportVO
getReportById
(
String
reportId
);
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
7c998a2a
...
@@ -16,6 +16,7 @@ import com.hungraim.ltc.pojo.entity.assessment.*;
...
@@ -16,6 +16,7 @@ import com.hungraim.ltc.pojo.entity.assessment.*;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.vo.ReportUpdateVO
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsExportResp
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsExportResp
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsListResp
;
import
com.hungraim.ltc.pojo.vo.account.AssessAccountsListResp
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
...
@@ -33,6 +34,8 @@ import org.springframework.stereotype.Service;
...
@@ -33,6 +34,8 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -316,72 +319,70 @@ public class TaskServiceImpl implements TaskService {
...
@@ -316,72 +319,70 @@ public class TaskServiceImpl implements TaskService {
}
}
/**
/**
* 评定报告修改
* 评定报告修改
*
* @param reportId 评定报告id
* @param person1 鉴定人员1id
* @param person2 鉴定人员2id
* @param person3 鉴定人员3id
* @param evaluateDate 评估时间
* @param disableLevelId 失能等级id
* @param polNo 保单号
* @param remark 备注
* @param fileDataList 附件
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
@Override
public
void
updateReport
(
Integer
reportId
,
Integer
person1
,
Integer
person2
,
Integer
person3
,
Date
evaluateDate
,
Integer
disableLevelId
,
String
polNo
,
String
remark
,
List
<
ChFndAttach
>
fileDataList
,
List
<
ChAprReportFraction
>
chAprReportFractions
)
{
public
void
updateReport
(
ReportUpdateVO
vo
)
{
Date
evaluateDate
=
null
;
try
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
evaluateDate
=
sdf
.
parse
(
vo
.
getEvaluateTime
());
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
//update鉴定报告
//update鉴定报告
ChAprReport
chAprReport
=
aprReportMapper
.
selectById
(
reportId
);
ChAprReport
chAprReport
=
aprReportMapper
.
selectById
(
vo
.
getReportId
()
);
chAprReport
.
setDisableLevelId
(
disableLevelId
);
chAprReport
.
setDisableLevelId
(
vo
.
getDisableLevelId
()
);
chAprReport
.
setPolNo
(
polNo
);
chAprReport
.
setPolNo
(
vo
.
getPolNo
()
);
chAprReport
.
setRemark
(
remark
);
chAprReport
.
setRemark
(
vo
.
getRemark
()
);
chAprReport
.
setEvaluateTime
(
evaluateDate
);
chAprReport
.
setEvaluateTime
(
evaluateDate
);
chAprReport
.
setEvaluateType
(
vo
.
getEvaluateType
());
aprReportMapper
.
updateById
(
chAprReport
);
aprReportMapper
.
updateById
(
chAprReport
);
//附件上传
//附件上传
this
.
updateAttachs
(
fileDataList
,
chAprReport
.
getReportId
().
longValue
());
this
.
updateAttachs
(
vo
.
getFileDataList
()
,
chAprReport
.
getReportId
().
longValue
());
//修改鉴定报告人员(有就update,没有就insert)
//修改鉴定报告人员(有就update,没有就insert)
List
<
ChAprPersonInfo
>
personInfos
=
personInfoMapper
.
selectList
(
new
QueryWrapper
<
ChAprPersonInfo
>().
eq
(
"report_id"
,
reportId
).
orderByDesc
(
"info_id"
));
List
<
ChAprPersonInfo
>
personInfos
=
personInfoMapper
.
selectList
(
new
QueryWrapper
<
ChAprPersonInfo
>().
eq
(
"report_id"
,
vo
.
getReportId
()
).
orderByDesc
(
"info_id"
));
if
(
person1
!=
null
)
{
if
(
vo
.
getPerson1
()
!=
null
)
{
if
(
personInfos
.
size
()
>=
1
)
{
if
(
personInfos
.
size
()
>=
1
)
{
ChAprPersonInfo
personInfo
=
personInfos
.
get
(
0
);
ChAprPersonInfo
personInfo
=
personInfos
.
get
(
0
);
personInfo
.
setEmpId
(
person1
);
personInfo
.
setEmpId
(
vo
.
getPerson1
()
);
personInfoMapper
.
updateById
(
personInfo
);
personInfoMapper
.
updateById
(
personInfo
);
}
else
{
}
else
{
ChAprPersonInfo
personInfo
=
new
ChAprPersonInfo
();
ChAprPersonInfo
personInfo
=
new
ChAprPersonInfo
();
personInfo
.
setReportId
(
chAprReport
.
getReportId
());
personInfo
.
setReportId
(
chAprReport
.
getReportId
());
personInfo
.
setEmpId
(
person1
);
personInfo
.
setEmpId
(
vo
.
getPerson1
()
);
personInfo
.
setFcd
(
new
Date
());
personInfo
.
setFcd
(
new
Date
());
personInfoMapper
.
insert
(
personInfo
);
personInfoMapper
.
insert
(
personInfo
);
}
}
}
}
if
(
person2
!=
null
)
{
if
(
vo
.
getPerson2
()
!=
null
)
{
if
(
personInfos
.
size
()
>=
2
)
{
if
(
personInfos
.
size
()
>=
2
)
{
ChAprPersonInfo
personInfo
=
personInfos
.
get
(
1
);
ChAprPersonInfo
personInfo
=
personInfos
.
get
(
1
);
personInfo
.
setEmpId
(
person2
);
personInfo
.
setEmpId
(
vo
.
getPerson2
()
);
personInfoMapper
.
updateById
(
personInfo
);
personInfoMapper
.
updateById
(
personInfo
);
}
else
{
}
else
{
ChAprPersonInfo
personInfo
=
new
ChAprPersonInfo
();
ChAprPersonInfo
personInfo
=
new
ChAprPersonInfo
();
personInfo
.
setReportId
(
chAprReport
.
getReportId
());
personInfo
.
setReportId
(
chAprReport
.
getReportId
());
personInfo
.
setEmpId
(
person2
);
personInfo
.
setEmpId
(
vo
.
getPerson2
()
);
personInfo
.
setFcd
(
new
Date
());
personInfo
.
setFcd
(
new
Date
());
personInfoMapper
.
insert
(
personInfo
);
personInfoMapper
.
insert
(
personInfo
);
}
}
}
}
if
(
person3
!=
null
)
{
if
(
vo
.
getPerson3
()
!=
null
)
{
if
(
personInfos
.
size
()
>=
3
)
{
if
(
personInfos
.
size
()
>=
3
)
{
ChAprPersonInfo
personInfo
=
personInfos
.
get
(
2
);
ChAprPersonInfo
personInfo
=
personInfos
.
get
(
2
);
personInfo
.
setEmpId
(
person3
);
personInfo
.
setEmpId
(
vo
.
getPerson3
()
);
personInfoMapper
.
updateById
(
personInfo
);
personInfoMapper
.
updateById
(
personInfo
);
}
else
{
}
else
{
ChAprPersonInfo
personInfo
=
new
ChAprPersonInfo
();
ChAprPersonInfo
personInfo
=
new
ChAprPersonInfo
();
personInfo
.
setReportId
(
chAprReport
.
getReportId
());
personInfo
.
setReportId
(
chAprReport
.
getReportId
());
personInfo
.
setEmpId
(
person3
);
personInfo
.
setEmpId
(
vo
.
getPerson3
()
);
personInfo
.
setFcd
(
new
Date
());
personInfo
.
setFcd
(
new
Date
());
personInfoMapper
.
insert
(
personInfo
);
personInfoMapper
.
insert
(
personInfo
);
}
}
}
}
if
(!
chAprReportFractions
.
isEmpty
()
&&
chAprReportFractions
.
size
()>
0
){
if
(!
vo
.
getChAprReportFractions
().
isEmpty
()
&&
vo
.
getChAprReportFractions
()
.
size
()>
0
){
for
(
ChAprReportFraction
chAprReportFraction:
chAprReportFractions
)
{
for
(
ChAprReportFraction
chAprReportFraction:
vo
.
getChAprReportFractions
()
)
{
chAprReportFraction
.
setReportId
(
chAprReport
.
getReportId
());
chAprReportFraction
.
setReportId
(
chAprReport
.
getReportId
());
if
(
chAprReportFraction
.
getChAprReportFractionId
()==
null
){
if
(
chAprReportFraction
.
getChAprReportFractionId
()==
null
){
chAprReportFractionMapper
.
insert
(
chAprReportFraction
);
chAprReportFractionMapper
.
insert
(
chAprReportFraction
);
...
...
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
7c998a2a
...
@@ -190,7 +190,8 @@
...
@@ -190,7 +190,8 @@
report.PUBLICITY_START_TIME publicityStartTime,
report.PUBLICITY_START_TIME publicityStartTime,
report.PUBLICITY_END_TIME publicityEndTime,
report.PUBLICITY_END_TIME publicityEndTime,
report.PUBLICITY_TIME publicityTime,
report.PUBLICITY_TIME publicityTime,
report.EFF_TIME effTime
report.EFF_TIME effTime,
report.evaluate_type
FROM ch_apr_report report
FROM ch_apr_report report
LEFT JOIN CH_APR_TASK task ON report.TASK_ID = task.TASK_ID
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_DISABLE_INFO info ON task.disable_info_id = info.disab_info_id
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/ReportUpdateVO.java
View file @
7c998a2a
...
@@ -22,6 +22,7 @@ public class ReportUpdateVO {
...
@@ -22,6 +22,7 @@ public class ReportUpdateVO {
Integer
disableLevelId
;
Integer
disableLevelId
;
String
polNo
;
String
polNo
;
String
remark
;
String
remark
;
Integer
evaluateType
;
List
<
ChFndAttach
>
fileDataList
;
List
<
ChFndAttach
>
fileDataList
;
List
<
ChAprReportFraction
>
chAprReportFractions
;
List
<
ChAprReportFraction
>
chAprReportFractions
;
}
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/assessment/TaskReportVO.java
View file @
7c998a2a
...
@@ -72,6 +72,8 @@ public class TaskReportVO {
...
@@ -72,6 +72,8 @@ public class TaskReportVO {
private
String
riskLevel
;
private
String
riskLevel
;
//评估类型
//评估类型
private
Integer
evaluateType
;
private
Integer
evaluateType
;
//评估类型名称
private
String
evaluateTypeName
;
//公示开始时间
//公示开始时间
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/DisableInfoTaskVO.java
View file @
7c998a2a
...
@@ -28,5 +28,7 @@ public class DisableInfoTaskVO implements Serializable {
...
@@ -28,5 +28,7 @@ public class DisableInfoTaskVO implements Serializable {
private
String
permitId
;
private
String
permitId
;
private
String
tel
;
private
String
tel
;
private
Integer
taskStatus
;
private
Integer
taskStatus
;
private
Integer
disableLevelName
;
private
Integer
srvOrganId
;
}
}
governance/src/main/java/com/hungraim/ltc/governance/dao/SrvSendMapper.java
View file @
7c998a2a
...
@@ -39,17 +39,18 @@ public interface SrvSendMapper extends BaseMapper<ChSrvSend> {
...
@@ -39,17 +39,18 @@ public interface SrvSendMapper extends BaseMapper<ChSrvSend> {
" s.medical_card,"
+
" s.medical_card,"
+
" s.srv_mode_id,"
+
" s.srv_mode_id,"
+
" o.evaluate_rating,"
+
" o.evaluate_rating,"
+
"
s.srv_organ_intent
,"
+
"
a.srv_organ_id
,"
+
" s.gender,"
+
" s.gender,"
+
" s.certi_code,"
+
" s.certi_code,"
+
" s.DISE_TYPE_S,"
+
" s.DISE_TYPE_S,"
+
" i.finish_time,"
+
" i.finish_time,"
+
" i.re_apr_time"
+
" i.re_apr_time
,l.disable_level_name
"
+
" from ch_disable_info s"
+
" from ch_disable_info s"
+
" left join ch_apr_task i"
+
" left join ch_apr_task i"
+
" on s.last_task_id = i.task_id"
+
" on s.last_task_id = i.task_id"
+
" left join ch_apr_report o"
+
" left join ch_apr_report o"
+
" on i.task_id = o.task_id "
+
" on i.task_id = o.task_id left join CH_CFG_SRV_DISABLE_LEVEL l on l.disable_level_id = o.disable_level_id "
+
" left join ch_disable_apply a on a.apply_id = s.apply_id "
+
" where s.disab_info_id=#{disableInfoId}"
)
" where s.disab_info_id=#{disableInfoId}"
)
DisableInfoTaskVO
selectBydisableInfoId
(
Integer
disableInfoId
);
DisableInfoTaskVO
selectBydisableInfoId
(
Integer
disableInfoId
);
...
...
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