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
08276518
Commit
08276518
authored
Apr 18, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_nursing_records_20230214' into dev_ch_master
parents
656f0d8d
e0d63fa0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
SrvTaskController.java
...hungraim/ltc/governance/controller/SrvTaskController.java
+4
-1
SrvTaskServiceImpl.java
...graim/ltc/governance/service/impl/SrvTaskServiceImpl.java
+5
-1
No files found.
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvTaskController.java
View file @
08276518
...
@@ -5,6 +5,7 @@ import com.hungraim.ltc.governance.service.SrvTaskService;
...
@@ -5,6 +5,7 @@ import com.hungraim.ltc.governance.service.SrvTaskService;
import
com.hungraim.ltc.pojo.vo.governance.*
;
import
com.hungraim.ltc.pojo.vo.governance.*
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.ResultCode
;
import
com.hungraim.ltc.util.TokenParsingUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -159,10 +160,12 @@ public class SrvTaskController {
...
@@ -159,10 +160,12 @@ public class SrvTaskController {
* 补卡
* 补卡
**/
**/
@PostMapping
(
"/saveApplyCard"
)
@PostMapping
(
"/saveApplyCard"
)
public
Result
saveApplyCard
(
SrvPlanInputVO
srvPlanInputVO
){
public
Result
saveApplyCard
(
@RequestHeader
(
"Authorization"
)
String
token
,
SrvPlanInputVO
srvPlanInputVO
){
if
(
srvPlanInputVO
.
getDisabInfoId
()
==
null
)
{
if
(
srvPlanInputVO
.
getDisabInfoId
()
==
null
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
}
Integer
userId
=
TokenParsingUtil
.
TokenParsing
(
token
,
"userId"
);
srvPlanInputVO
.
setAdmin
(
String
.
valueOf
(
userId
));
return
srvTaskService
.
saveApplyCard
(
srvPlanInputVO
);
return
srvTaskService
.
saveApplyCard
(
srvPlanInputVO
);
}
}
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvTaskServiceImpl.java
View file @
08276518
...
@@ -276,7 +276,11 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -276,7 +276,11 @@ public class SrvTaskServiceImpl implements SrvTaskService {
List
<
ChSrvTaskDetail
>
chSrvTaskDetailList
=
chSrvTaskDetailMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChSrvTaskDetail
>()
List
<
ChSrvTaskDetail
>
chSrvTaskDetailList
=
chSrvTaskDetailMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChSrvTaskDetail
>()
.
eq
(
ChSrvTaskDetail:
:
getSrvTaskId
,
srvPlanInputVO
.
getSrvTaskId
())
.
eq
(
ChSrvTaskDetail:
:
getSrvTaskId
,
srvPlanInputVO
.
getSrvTaskId
())
.
eq
(
ChSrvTaskDetail:
:
getSrvDate
,
srvPlanInputVO
.
getSrvPlanTime
()));
.
eq
(
ChSrvTaskDetail:
:
getSrvDate
,
srvPlanInputVO
.
getSrvPlanTime
()));
Long
modeId
=
srvPlanInputVO
.
getModeId
();
if
(
CollectionUtil
.
isNotEmpty
(
chSrvTaskDetailList
))
{
if
(
CollectionUtil
.
isNotEmpty
(
chSrvTaskDetailList
))
{
if
(
modeId
==
3
){
return
Result
.
failed
(
"手机app已有计划,不可重复生成"
);
}
ChSrvTaskDetail
chSrvTaskDetail
=
chSrvTaskDetailList
.
get
(
0
);
ChSrvTaskDetail
chSrvTaskDetail
=
chSrvTaskDetailList
.
get
(
0
);
taskDetailId
=
chSrvTaskDetail
.
getTaskDetailId
();
taskDetailId
=
chSrvTaskDetail
.
getTaskDetailId
();
List
<
ChSrvPlan
>
srvPlanList
=
chSrvPlanMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChSrvPlan
>()
List
<
ChSrvPlan
>
srvPlanList
=
chSrvPlanMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChSrvPlan
>()
...
@@ -299,7 +303,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -299,7 +303,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
// 补卡标识
// 补卡标识
chSrvTaskDetail
.
setIsClock
((
short
)
1
);
chSrvTaskDetail
.
setIsClock
((
short
)
1
);
chSrvTaskDetail
.
setClockReason
(
srvPlanInputVO
.
getClockReason
());
chSrvTaskDetail
.
setClockReason
(
srvPlanInputVO
.
getClockReason
());
chSrvTaskDetail
.
setClockOperator
(
"admin"
);
chSrvTaskDetail
.
setClockOperator
(
srvPlanInputVO
.
getAdmin
()
);
chSrvTaskDetail
.
setFcd
(
new
Date
());
chSrvTaskDetail
.
setFcd
(
new
Date
());
int
insert
=
chSrvTaskDetailMapper
.
insert
(
chSrvTaskDetail
);
int
insert
=
chSrvTaskDetailMapper
.
insert
(
chSrvTaskDetail
);
if
(
insert
==
0
){
if
(
insert
==
0
){
...
...
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