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
0c190e52
Commit
0c190e52
authored
Sep 03, 2021
by
wzs162
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into master
parents
c2180962
2e204012
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
34 deletions
+29
-34
ReTaskServiceImpl.java
...java/com/hungraim/ltc/service/impl/ReTaskServiceImpl.java
+29
-34
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/ReTaskServiceImpl.java
View file @
0c190e52
...
...
@@ -35,7 +35,7 @@ import java.util.List;
@Service
@Slf4j
@AllArgsConstructor
public
class
ReTaskServiceImpl
extends
ServiceImpl
<
TaskMapper
,
ChAprTask
>
implements
ReTaskService
{
public
class
ReTaskServiceImpl
extends
ServiceImpl
<
TaskMapper
,
ChAprTask
>
implements
ReTaskService
{
private
final
TaskMapper
taskMapper
;
private
final
OrganFeignService
organFeignService
;
private
final
ChDisableApplyMapper
disableApplyMapper
;
...
...
@@ -46,6 +46,7 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
private
final
AprTaskMapper
aprTaskMapper
;
private
final
DisableInfoMapper
disableInfoMapper
;
private
final
DisableInfoHisMapper
disableInfoHisMapper
;
@Override
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
;
...
...
@@ -62,7 +63,7 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
@Override
public
ChDisableApplyVo
reassmentDetailById
(
String
applyId
)
{
ChDisableApplyVo
chDisableApplyVo
=
null
;
ChDisableApplyVo
chDisableApplyVo
=
null
;
chDisableApplyVo
=
chDisableApplyMapper
.
getReassmentDetailById
(
applyId
);
return
chDisableApplyVo
;
}
...
...
@@ -95,42 +96,37 @@ public class ReTaskServiceImpl extends ServiceImpl<TaskMapper, ChAprTask> implem
List
<
ChDisableInfo
>
disableInfoList
=
disableInfoMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChDisableInfo
>()
.
eq
(
ChDisableInfo:
:
getRealName
,
chDisableApply
.
getRealName
())
.
eq
(
ChDisableInfo:
:
getCertiCode
,
chDisableApply
.
getCertiCode
()));
ChDisableInfo
newDisableInfo
=
null
;
if
(
disableInfoList
.
size
()!=
0
)
{
if
(
disableInfoList
.
size
()
!=
0
)
{
ChDisableInfo
chDisableInfo
=
disableInfoList
.
get
(
0
);
newDisableInfo
=
new
ChDisableInfo
();
newDisableInfo
.
setDisabInfoId
(
chDisableInfo
.
getDisabInfoId
());
// 先保存历史失能人员信息
ChDisableInfoHis
chDisableInfoHis
=
new
ChDisableInfoHis
();
BeanUtil
.
copyProperties
(
chDisableInfo
,
chDisableInfoHis
);
disableInfoHisMapper
.
insert
(
chDisableInfoHis
);
ChDisableInfo
newDisableInfo
=
new
ChDisableInfo
();
BeanUtil
.
copyProperties
(
chDisableApply
,
newDisableInfo
);
newDisableInfo
.
setDisabInfoId
(
chDisableInfo
.
getDisabInfoId
());
newDisableInfo
.
setDataFrom
(
0
);
//数据来源设置为0-申请
disableInfoMapper
.
updateById
(
newDisableInfo
);
}
/* //添加失能人员信息
ChDisableInfo chDisableInfo = new ChDisableInfo();
BeanUtil.copyProperties(chDisableApply, chDisableInfo);
disableInfoMapper.insert(chDisableInfo);*/
//新建disable_info_his表的一条数据
ChDisableInfoHis
chDisableInfoHis
=
new
ChDisableInfoHis
();
BeanUtil
.
copyProperties
(
newDisableInfo
,
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
());
//鉴定截至日期
//添加失能评定信息
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
(
newDisableInfo
.
getDisabInfoId
());
//失能人员id
chAprTask
.
setReAprStatus
(
0
);
chAprTask
.
setEffTime
(
new
Date
());
chAprTask
.
setFcd
(
null
);
chAprTask
.
setAprType
(
1
);
//申请:0;复评:1
chAprTask
.
setTaskStatus
(
0
);
// 任务状态 0 未分配
aprTaskMapper
.
insert
(
chAprTask
);
}
BeanUtil
.
copyProperties
(
chDisableApply
,
chAprTask
);
chAprTask
.
setDisableInfoId
(
newDisableInfo
.
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