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
a726c71f
Commit
a726c71f
authored
Sep 02, 2021
by
wzs162
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
复评审核
parent
c348d4e1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
144 additions
and
4 deletions
+144
-4
ReTaskController.java
...in/java/com/hungraim/ltc/controller/ReTaskController.java
+8
-1
AprTaskMapper.java
...ice/src/main/java/com/hungraim/ltc/dao/AprTaskMapper.java
+16
-0
CfgParaMapper.java
...ice/src/main/java/com/hungraim/ltc/dao/CfgParaMapper.java
+17
-0
DisableApplyHisMapper.java
...main/java/com/hungraim/ltc/dao/DisableApplyHisMapper.java
+11
-0
DisableInfoHisMapper.java
.../main/java/com/hungraim/ltc/dao/DisableInfoHisMapper.java
+17
-0
ReTaskService.java
...src/main/java/com/hungraim/ltc/service/ReTaskService.java
+4
-0
ReTaskServiceImpl.java
...java/com/hungraim/ltc/service/impl/ReTaskServiceImpl.java
+71
-3
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/ReTaskController.java
View file @
a726c71f
...
@@ -68,6 +68,13 @@ public class ReTaskController {
...
@@ -68,6 +68,13 @@ public class ReTaskController {
List
<
ChAprTaskVo
>
chAprTaskVos
=
reTaskService
.
geReTaskHisInfoList
(
disableInfoId
);
List
<
ChAprTaskVo
>
chAprTaskVos
=
reTaskService
.
geReTaskHisInfoList
(
disableInfoId
);
return
Result
.
success
(
chAprTaskVos
);
return
Result
.
success
(
chAprTaskVos
);
}
}
/**
* 复评审核
*/
@RequestMapping
(
"/disableExamine"
)
public
Result
disableExamine
(
String
applyId
,
String
checkName
,
Short
applyStatus
,
String
checkRemark
)
{
reTaskService
.
disableExamine
(
applyId
,
checkName
,
applyStatus
,
checkRemark
);
return
Result
.
success
();
}
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/AprTaskMapper.java
0 → 100644
View file @
a726c71f
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprTask
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
/**
* 失能评定Mapper
*
* @author czz
*/
@Mapper
@Repository
public
interface
AprTaskMapper
extends
BaseMapper
<
ChAprTask
>
{
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/CfgParaMapper.java
0 → 100644
View file @
a726c71f
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgPara
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
/**
* 基础参数配置Mapper
*
* @author czz
*/
@Mapper
@Repository
public
interface
CfgParaMapper
extends
BaseMapper
<
ChCfgPara
>
{
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/DisableApplyHisMapper.java
0 → 100644
View file @
a726c71f
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApplyHis
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
@Repository
@Mapper
public
interface
DisableApplyHisMapper
extends
BaseMapper
<
ChDisableApplyHis
>
{
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/DisableInfoHisMapper.java
0 → 100644
View file @
a726c71f
package
com
.
hungraim
.
ltc
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.assessment.ChDisableInfoHis
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
/**
* 失能人员信息Mapper
*
* @author czz
*/
@Mapper
@Repository
public
interface
DisableInfoHisMapper
extends
BaseMapper
<
ChDisableInfoHis
>
{
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/ReTaskService.java
View file @
a726c71f
...
@@ -26,4 +26,8 @@ public interface ReTaskService extends IService<ChAprTask> {
...
@@ -26,4 +26,8 @@ public interface ReTaskService extends IService<ChAprTask> {
*/
*/
List
<
ChAprTaskVo
>
geReTaskHisInfoList
(
String
disableInfoId
);
List
<
ChAprTaskVo
>
geReTaskHisInfoList
(
String
disableInfoId
);
/**
* 复评审核
*/
void
disableExamine
(
String
applyId
,
String
checkName
,
Short
applyStatus
,
String
checkRemark
);
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/ReTaskServiceImpl.java
View file @
a726c71f
package
com
.
hungraim
.
ltc
.
service
.
impl
;
package
com
.
hungraim
.
ltc
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
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.*
;
import
com.hungraim.ltc.dao.ReTaskMapper
;
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.assessment.ChDisableInfoHis
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApply
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableApplyHis
;
import
com.hungraim.ltc.pojo.entity.disable.ChDisableInfo
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChCfgPara
;
import
com.hungraim.ltc.pojo.vo.assessment.ChAprTaskVo
;
import
com.hungraim.ltc.pojo.vo.assessment.ChAprTaskVo
;
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
;
...
@@ -16,8 +21,11 @@ import com.hungraim.ltc.util.DateUtils;
...
@@ -16,8 +21,11 @@ import com.hungraim.ltc.util.DateUtils;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -33,6 +41,11 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
...
@@ -33,6 +41,11 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
private
final
ChDisableApplyMapper
disableApplyMapper
;
private
final
ChDisableApplyMapper
disableApplyMapper
;
private
final
ChDisableApplyMapper
chDisableApplyMapper
;
private
final
ChDisableApplyMapper
chDisableApplyMapper
;
private
final
ReTaskMapper
reTaskMapper
;
private
final
ReTaskMapper
reTaskMapper
;
private
final
DisableApplyHisMapper
disableApplyHisMapper
;
private
final
CfgParaMapper
cfgParaMapper
;
private
final
AprTaskMapper
aprTaskMapper
;
private
final
DisableInfoMapper
disableInfoMapper
;
private
final
DisableInfoHisMapper
disableInfoHisMapper
;
@Override
@Override
public
Page
<
ReTaskDistributionVO
>
reTaskDistributionList
(
Page
<
ReTaskDistributionVO
>
page
,
Long
organId
,
Boolean
isIncluded
,
String
acptProvincial
,
String
acptCity
,
String
acptCrea
,
String
realName
,
String
certiCode
)
{
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
;
...
@@ -60,4 +73,58 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
...
@@ -60,4 +73,58 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
List
<
ChAprTaskVo
>
reTaskHisInfoList
=
reTaskMapper
.
getReTaskHisInfoList
(
disableInfoId
);
List
<
ChAprTaskVo
>
reTaskHisInfoList
=
reTaskMapper
.
getReTaskHisInfoList
(
disableInfoId
);
return
reTaskHisInfoList
;
return
reTaskHisInfoList
;
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
void
disableExamine
(
String
applyId
,
String
checkName
,
Short
applyStatus
,
String
checkRemark
)
{
Date
date
=
new
Date
();
//更新审核状态
ChDisableApply
chDisableApply
=
disableApplyMapper
.
selectById
(
applyId
);
chDisableApply
.
setCheckName
(
checkName
);
//审核人
chDisableApply
.
setApplyStatus
(
applyStatus
);
//申请状态
chDisableApply
.
setCheckRemark
(
checkRemark
);
//审核备注
chDisableApply
.
setCheckTime
(
date
);
//审核时间
disableApplyMapper
.
updateById
(
chDisableApply
);
//添加失能审核历史
ChDisableApplyHis
chDisableApplyHis
=
new
ChDisableApplyHis
();
BeanUtils
.
copyProperties
(
chDisableApply
,
chDisableApplyHis
);
disableApplyHisMapper
.
insert
(
chDisableApplyHis
);
//审核通过
if
(
applyStatus
.
equals
(
Short
.
valueOf
(
"2"
)))
{
//修改失能人员信息,首次申请只需新建
ChDisableInfo
chDisableInfo
=
disableInfoMapper
.
selectOne
(
new
LambdaQueryWrapper
<
ChDisableInfo
>()
.
eq
(
ChDisableInfo:
:
getRealName
,
checkName
)
.
eq
(
ChDisableInfo:
:
getCertiCode
,
chDisableApply
.
getCertiCode
()));
BeanUtil
.
copyProperties
(
chDisableApply
,
chDisableInfo
);
chDisableInfo
.
setDataFrom
(
0
);
//数据来源设置为0-申请
disableInfoMapper
.
updateById
(
chDisableInfo
);
/* //添加失能人员信息
ChDisableInfo chDisableInfo = new ChDisableInfo();
BeanUtil.copyProperties(chDisableApply, chDisableInfo);
disableInfoMapper.insert(chDisableInfo);*/
//新建disable_info_his表的一条数据
ChDisableInfoHis
chDisableInfoHis
=
new
ChDisableInfoHis
();
BeanUtil
.
copyProperties
(
chDisableInfo
,
chDisableInfoHis
);
disableInfoHisMapper
.
insert
(
chDisableInfoHis
);
//添加失能评定信息
ChAprTask
chAprTask
=
new
ChAprTask
();
ChCfgPara
chCfgPara
=
cfgParaMapper
.
selectOne
(
new
QueryWrapper
<
ChCfgPara
>().
eq
(
"ORGAN_ID"
,
chDisableApply
.
getOrganId
()));
if
(
chCfgPara
!=
null
&&
chCfgPara
.
getCfgArgTime
()
!=
null
)
{
Calendar
cd
=
Calendar
.
getInstance
();
cd
.
setTime
(
date
);
cd
.
add
(
Calendar
.
DATE
,
chCfgPara
.
getCfgArgTime
().
intValue
());
chAprTask
.
setLastAprDate
(
cd
.
getTime
());
//鉴定截至日期
}
BeanUtil
.
copyProperties
(
chDisableApply
,
chAprTask
);
chAprTask
.
setDisableInfoId
(
chDisableInfo
.
getDisabInfoId
());
//失能人员id
chAprTask
.
setReAprStatus
(
0
);
chAprTask
.
setEffTime
(
new
Date
());
chAprTask
.
setFcd
(
null
);
chAprTask
.
setAprType
(
1
);
//申请:0;复评:1
chAprTask
.
setTaskStatus
(
0
);
// 任务状态 0 未分配
aprTaskMapper
.
insert
(
chAprTask
);
}
}
}
}
\ 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