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
2e95f607
Commit
2e95f607
authored
Apr 04, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
终止计划更新状态
parent
3a902c27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
SrvTaskServiceImpl.java
...graim/ltc/governance/service/impl/SrvTaskServiceImpl.java
+9
-3
No files found.
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvTaskServiceImpl.java
View file @
2e95f607
...
@@ -145,6 +145,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -145,6 +145,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
chSrvTask
.
setSrvEmpId
(
Long
.
parseLong
(
srvTaskInfoVO
.
getSrvEmpId
()));
//服务人员id
chSrvTask
.
setSrvEmpId
(
Long
.
parseLong
(
srvTaskInfoVO
.
getSrvEmpId
()));
//服务人员id
chSrvTask
.
setStatus
((
short
)
1
);
//状态 未分配:0;已分配:1;已终止2
chSrvTask
.
setStatus
((
short
)
1
);
//状态 未分配:0;已分配:1;已终止2
chSrvTask
.
setSrvDate
(
DateUtils
.
strToDate
(
taskDetails
.
get
(
0
)));
chSrvTask
.
setSrvDate
(
DateUtils
.
strToDate
(
taskDetails
.
get
(
0
)));
chSrvTask
.
setFcd
(
new
Date
());
srvTaskMapper
.
insert
(
chSrvTask
);
srvTaskMapper
.
insert
(
chSrvTask
);
// 服务计划制定方案修改为已生效
// 服务计划制定方案修改为已生效
ChSrvProgram
chSrvProgram
=
new
ChSrvProgram
();
ChSrvProgram
chSrvProgram
=
new
ChSrvProgram
();
...
@@ -159,8 +160,12 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -159,8 +160,12 @@ public class SrvTaskServiceImpl implements SrvTaskService {
// this.updateAttachs(srvTaskInfoVO.getListAttach(), chSrvTask.getSrvTaskId());
// this.updateAttachs(srvTaskInfoVO.getListAttach(), chSrvTask.getSrvTaskId());
}
else
{
}
else
{
// 修改服务计划
// 修改服务计划
chSrvTaskDetailMapper
.
delete
(
new
QueryWrapper
<
ChSrvTaskDetail
>().
eq
(
"srv_task_id"
,
Long
.
parseLong
(
srvTaskId
)));
//删除原来的计划详情
// chSrvTaskDetailMapper.delete(new QueryWrapper<ChSrvTaskDetail>().eq("srv_task_id", Long.parseLong(srvTaskId)));//删除原来的计划详情
this
.
insertTaskDetail
(
Long
.
parseLong
(
srvTaskId
),
taskDetails
);
UpdateWrapper
updateWrapper1
=
new
UpdateWrapper
();
updateWrapper1
.
eq
(
"SRV_TASK_ID"
,
srvTaskId
);
updateWrapper1
.
set
(
"STATUS"
,
3
);
chSrvTaskDetailMapper
.
update
(
null
,
updateWrapper1
);
// this.insertTaskDetail(Long.parseLong(srvTaskId), taskDetails);
//修改服务计划
//修改服务计划
ChSrvTask
chSrvTask
=
new
ChSrvTask
();
ChSrvTask
chSrvTask
=
new
ChSrvTask
();
UpdateWrapper
updateWrapper
=
new
UpdateWrapper
();
UpdateWrapper
updateWrapper
=
new
UpdateWrapper
();
...
@@ -203,6 +208,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -203,6 +208,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
chSrvTaskDetail
.
setSrvTaskId
(
srvTaskId
);
//taskId
chSrvTaskDetail
.
setSrvTaskId
(
srvTaskId
);
//taskId
chSrvTaskDetail
.
setSrvDate
(
DateUtils
.
strToDate
(
taskDetail
));
//服务开始时间
chSrvTaskDetail
.
setSrvDate
(
DateUtils
.
strToDate
(
taskDetail
));
//服务开始时间
chSrvTaskDetail
.
setStatus
((
short
)
0
);
//状态 未执行:0;执行中:1;已执行:2;已失效:3已完成4
chSrvTaskDetail
.
setStatus
((
short
)
0
);
//状态 未执行:0;执行中:1;已执行:2;已失效:3已完成4
chSrvTaskDetail
.
setFcd
(
new
Date
());
chSrvTaskDetailMapper
.
insert
(
chSrvTaskDetail
);
chSrvTaskDetailMapper
.
insert
(
chSrvTaskDetail
);
}
}
}
}
...
@@ -241,7 +247,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -241,7 +247,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
int
chSrvTaskDetailCount
=
chSrvTaskDetailMapper
int
chSrvTaskDetailCount
=
chSrvTaskDetailMapper
.
getSrvTaskDetail
(
String
.
valueOf
(
srvTaskId
),
dateStr
);
.
getSrvTaskDetail
(
String
.
valueOf
(
srvTaskId
),
dateStr
);
if
(
chSrvTaskDetailCount
>
0
)
{
if
(
chSrvTaskDetailCount
>
0
)
{
log
.
info
(
"{},已经有计划任务了"
,
dateStr
);
log
.
info
(
"{},已经有计划任务了"
,
srvTaskId
);
continue
;
continue
;
}
}
ChSrvTaskDetail
chSrvTaskDetail
=
new
ChSrvTaskDetail
();
ChSrvTaskDetail
chSrvTaskDetail
=
new
ChSrvTaskDetail
();
...
...
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