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
0637dab4
Commit
0637dab4
authored
Apr 12, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除打卡提示语
parent
ecb53b0c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
SrvOrganController.java
.../java/com/hungraim/ltc/controller/SrvOrganController.java
+2
-6
SrvOrganEmpService.java
...ain/java/com/hungraim/ltc/service/SrvOrganEmpService.java
+2
-1
SrvOrganEmpServiceImpl.java
...com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
+8
-4
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/controller/SrvOrganController.java
View file @
0637dab4
...
...
@@ -312,12 +312,8 @@ public class SrvOrganController {
*/
@PostMapping
(
"/chSrvTaskDetailDelete"
)
public
Result
chSrvTaskDetailDelete
(
Long
taskDetailId
,
String
userName
){
int
srv
=
srvOrganEmpService
.
chSrvTaskDetailDelete
(
taskDetailId
,
userName
);
if
(
srv
>
0
){
return
Result
.
success
();
}
else
{
return
Result
.
failed
(
"删除失败"
);
}
return
srvOrganEmpService
.
chSrvTaskDetailDelete
(
taskDetailId
,
userName
);
}
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/SrvOrganEmpService.java
View file @
0637dab4
...
...
@@ -6,6 +6,7 @@ import com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetail2Vo;
import
com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpVo
;
import
com.hungraim.ltc.util.Result
;
import
org.apache.poi.ss.usermodel.Workbook
;
import
java.util.List
;
...
...
@@ -71,5 +72,5 @@ public interface SrvOrganEmpService {
Page
<
ChSrvTaskDetail2Vo
>
chSrvTaskDetailQuery
(
Page
<
ChSrvTaskDetail2Vo
>
page
,
Long
empId
);
int
chSrvTaskDetailDelete
(
long
taskDetailId
,
String
userName
);
Result
chSrvTaskDetailDelete
(
long
taskDetailId
,
String
userName
);
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
View file @
0637dab4
...
...
@@ -182,7 +182,7 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
in
t
chSrvTaskDetailDelete
(
long
taskDetailId
,
String
userName
)
{
public
Resul
t
chSrvTaskDetailDelete
(
long
taskDetailId
,
String
userName
)
{
ChSrvTaskDetail
chSrvTaskDetail
=
chSrvTaskDetailMapper
.
selectById
(
taskDetailId
);
ChSrvTaskDetailDelete
chSrvTaskDetailDelete
=
new
ChSrvTaskDetailDelete
();
BeanUtils
.
copyProperties
(
chSrvTaskDetail
,
chSrvTaskDetailDelete
);
...
...
@@ -206,7 +206,7 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
Short
status
=
chDisabDetailAccounts
.
getStatus
();
if
(
status
!=
0
){
// 已申报不能进行删除
return
-
1
;
return
Result
.
failed
(
"已申报不能进行删除"
)
;
}
BigDecimal
accountsAllCost
=
chDisabDetailAccounts
.
getAccountsAllCost
();
BigDecimal
accountsPersonalCost
=
chDisabDetailAccounts
.
getAccountsPersonalCost
();
...
...
@@ -219,8 +219,12 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
}
}
chSrvTaskDetailMapper
.
deleteFinshItem
(
taskDetailId
);
return
chSrvTaskDetailMapper
.
updateByTaskDetailId
(
String
.
valueOf
(
chSrvTaskDetail
.
getTaskDetailId
()));
int
srv
=
chSrvTaskDetailMapper
.
updateByTaskDetailId
(
String
.
valueOf
(
chSrvTaskDetail
.
getTaskDetailId
()));
if
(
srv
>
0
){
return
Result
.
success
();
}
else
{
return
Result
.
failed
(
"删除失败"
);
}
}
/**
...
...
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