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
db176c08
Commit
db176c08
authored
Mar 20, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评定报告
parent
50a7453c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
4 deletions
+53
-4
DisableInfoMapper.java
...src/main/java/com/hungraim/ltc/dao/DisableInfoMapper.java
+1
-0
TaskMapper.java
...ervice/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
+3
-0
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+40
-3
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+4
-0
ReportUpdateVO.java
...rc/main/java/com/hungraim/ltc/pojo/vo/ReportUpdateVO.java
+2
-0
ReportDetailVO.java
...a/com/hungraim/ltc/pojo/vo/assessment/ReportDetailVO.java
+1
-0
SrvTaskMapper.xml
...rces/com/hungraim/ltc/governance/mapper/SrvTaskMapper.xml
+2
-1
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/DisableInfoMapper.java
View file @
db176c08
...
@@ -13,4 +13,5 @@ import org.springframework.stereotype.Repository;
...
@@ -13,4 +13,5 @@ import org.springframework.stereotype.Repository;
@Mapper
@Mapper
@Repository
@Repository
public
interface
DisableInfoMapper
extends
BaseMapper
<
ChDisableInfo
>
{
public
interface
DisableInfoMapper
extends
BaseMapper
<
ChDisableInfo
>
{
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
View file @
db176c08
...
@@ -3,6 +3,7 @@ package com.hungraim.ltc.dao;
...
@@ -3,6 +3,7 @@ package com.hungraim.ltc.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
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.entity.disable.ChDisableInfo
;
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.apache.ibatis.annotations.Param
;
...
@@ -78,4 +79,6 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
...
@@ -78,4 +79,6 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
List
<
AprEmpExportVO
>
aprEmpExportList
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
);
List
<
AprEmpExportVO
>
aprEmpExportList
(
String
provincial
,
String
city
,
String
area
,
String
organName
,
String
name
,
String
tel
,
String
certiCode
,
String
isLock
,
String
empType
,
String
groupLeader
);
int
insertSrvSend
(
Integer
disableInfoId
);
int
insertSrvSend
(
Integer
disableInfoId
);
Integer
selectDisableBycertiCode
(
@Param
(
"certiCode"
)
String
certiCode
);
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
db176c08
...
@@ -236,8 +236,8 @@ public class TaskServiceImpl implements TaskService {
...
@@ -236,8 +236,8 @@ public class TaskServiceImpl implements TaskService {
Integer
person2
=
reportDetailVo
.
getPerson2
();
Integer
person2
=
reportDetailVo
.
getPerson2
();
String
evaluateTime
=
reportDetailVo
.
getEvaluateTime
();
String
evaluateTime
=
reportDetailVo
.
getEvaluateTime
();
Date
evaluateDate
=
DateUtils
.
strToDate
(
evaluateTime
);
Date
evaluateDate
=
DateUtils
.
strToDate
(
evaluateTime
);
List
<
ChDisableInfo
>
chDisableInfos
=
disableInfoMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChDisableInfo
>().
eq
(
ChDisableInfo:
:
getApplyId
,
reportDetailVo
.
getApplyId
())
);
String
certiCode
=
reportDetailVo
.
getCertiCode
(
);
Integer
srvModeId
=
chDisableInfos
.
get
(
0
).
getSrvModeId
(
);
Integer
srvModeId
=
taskMapper
.
selectDisableBycertiCode
(
certiCode
);
// 根据评定机构id和评估结算时间查找表里有没有数据,有数据直接累加费用
// 根据评定机构id和评估结算时间查找表里有没有数据,有数据直接累加费用
// 评定人员结算表插入
// 评定人员结算表插入
if
(
person1
!=
null
)
{
if
(
person1
!=
null
)
{
...
@@ -356,6 +356,19 @@ public class TaskServiceImpl implements TaskService {
...
@@ -356,6 +356,19 @@ public class TaskServiceImpl implements TaskService {
chAprReport
.
setEvaluateTime
(
evaluateDate
);
chAprReport
.
setEvaluateTime
(
evaluateDate
);
chAprReport
.
setEvaluateType
(
vo
.
getEvaluateType
());
chAprReport
.
setEvaluateType
(
vo
.
getEvaluateType
());
aprReportMapper
.
updateById
(
chAprReport
);
aprReportMapper
.
updateById
(
chAprReport
);
// 2023-3-20 新增
// 更新评定任务状态为已完成,并记录完成时间
ChAprTask
task
=
new
ChAprTask
();
task
.
setTaskId
(
chAprReport
.
getTaskId
());
task
.
setFinishTime
(
new
Date
());
task
.
setTaskStatus
(
3
);
// 已完成
taskMapper
.
updateById
(
task
);
if
(
2
==
vo
.
getEvaluateType
()){
ChAprTask
chAprTask
=
taskMapper
.
selectById
(
chAprReport
.
getTaskId
());
Integer
disableInfoId
=
chAprTask
.
getDisableInfoId
();
taskMapper
.
insertSrvSend
(
disableInfoId
);
}
//附件上传
//附件上传
this
.
updateAttachs
(
vo
.
getFileDataList
(),
chAprReport
.
getReportId
().
longValue
());
this
.
updateAttachs
(
vo
.
getFileDataList
(),
chAprReport
.
getReportId
().
longValue
());
//修改鉴定报告人员(有就update,没有就insert)
//修改鉴定报告人员(有就update,没有就insert)
...
@@ -410,7 +423,14 @@ public class TaskServiceImpl implements TaskService {
...
@@ -410,7 +423,14 @@ public class TaskServiceImpl implements TaskService {
}
}
}
}
// 评估结算
ReportDetailVO
reportDetailVO
=
new
ReportDetailVO
();
reportDetailVO
.
setCertiCode
(
vo
.
getCertiCode
());
reportDetailVO
.
setPerson1
(
vo
.
getPerson1
());
reportDetailVO
.
setPerson2
(
vo
.
getPerson2
());
reportDetailVO
.
setDisableLevelId
(
vo
.
getDisableLevelId
());
reportDetailVO
.
setEvaluateTime
(
vo
.
getEvaluateTime
());
assessAccount
(
reportDetailVO
);
}
}
/**
/**
...
@@ -460,6 +480,23 @@ public class TaskServiceImpl implements TaskService {
...
@@ -460,6 +480,23 @@ public class TaskServiceImpl implements TaskService {
disableInfoMapper
.
updateById
(
chDisableInfo
);
disableInfoMapper
.
updateById
(
chDisableInfo
);
}
}
//插入评定任报告 2023-03-20
ChAprReport
report
=
new
ChAprReport
();
report
.
setTaskId
(
task
.
getTaskId
());
report
.
setEffTime
(
new
Date
());
report
.
setFcd
(
new
Date
());
report
.
setStatus
(
0
);
aprReportMapper
.
insert
(
report
);
ChAprPersonInfo
person1Info
=
new
ChAprPersonInfo
();
person1Info
.
setReportId
(
report
.
getReportId
());
if
(
StringUtils
.
isNotEmpty
(
empId
))
{
person1Info
.
setEmpId
(
Integer
.
parseInt
(
empId
));
}
person1Info
.
setFcd
(
new
Date
());
personInfoMapper
.
insert
(
person1Info
);
//生成组
//生成组
ChAprTaskPush
taskPush
=
new
ChAprTaskPush
();
ChAprTaskPush
taskPush
=
new
ChAprTaskPush
();
taskPush
.
setAssignTime
(
new
Date
());
taskPush
.
setAssignTime
(
new
Date
());
...
...
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
db176c08
...
@@ -542,4 +542,7 @@
...
@@ -542,4 +542,7 @@
</insert>
</insert>
<select
id=
"selectDisableBycertiCode"
parameterType=
"java.lang.String"
resultType=
"java.lang.Integer"
>
select info.SRV_MODE_ID srvModeId from CH_DISABLE_INFO info where info.CERTI_CODE = #{certiCode} and rownum = 1 order by info.FCD desc
</select>
</mapper>
</mapper>
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/ReportUpdateVO.java
View file @
db176c08
...
@@ -22,6 +22,8 @@ public class ReportUpdateVO {
...
@@ -22,6 +22,8 @@ public class ReportUpdateVO {
Integer
disableLevelId
;
Integer
disableLevelId
;
String
polNo
;
String
polNo
;
String
remark
;
String
remark
;
String
certiCode
;
String
applyId
;
Integer
evaluateType
;
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/ReportDetailVO.java
View file @
db176c08
...
@@ -20,6 +20,7 @@ public class ReportDetailVO {
...
@@ -20,6 +20,7 @@ public class ReportDetailVO {
*/
*/
String
operAddress
;
String
operAddress
;
String
applyId
;
String
applyId
;
String
certiCode
;
String
polNo
;
String
polNo
;
String
remark
;
String
remark
;
Integer
evaluateType
;
Integer
evaluateType
;
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/SrvTaskMapper.xml
View file @
db176c08
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
where
<![CDATA[ t.SRV_DATE < sysdate and
where
<![CDATA[ t.SRV_DATE < sysdate and
(info.EXIT_TIME >
sysdate or info.EXIT_TIME is null)
(info.EXIT_TIME >
sysdate or info.EXIT_TIME is null)
and sysdate
< program.PROGRAM_EDN_DATE
and sysdate
< program.PROGRAM_EDN_DATE
and
sysdate
>
report.PUBLICITY_END_TIME and program.PROG_STATUS
<
>'2' ]]>
and
sysdate
>
report.PUBLICITY_END_TIME and program.PROG_STATUS
<
>'2'
and t.STATUS
<
>'2'
]]>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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