Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
09830dc0
Commit
09830dc0
authored
Aug 31, 2023
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批移除人员bug
parent
b2e8519f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
+11
-6
src/main/java/cn/timer/api/dto/spmk/SpmkApproveDetailDto.java
+3
-0
No files found.
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
View file @
09830dc0
...
@@ -835,7 +835,7 @@ public class SpmkController {
...
@@ -835,7 +835,7 @@ public class SpmkController {
// 查询 SpmkApproveSummary 状态,
// 查询 SpmkApproveSummary 状态,
SpmkApproveSummary
aSummary
=
spmkApproveSummaryMapper
.
selectOne
(
new
QueryWrapper
<
SpmkApproveSummary
>().
lambda
()
SpmkApproveSummary
aSummary
=
spmkApproveSummaryMapper
.
selectOne
(
new
QueryWrapper
<
SpmkApproveSummary
>().
lambda
()
.
select
(
SpmkApproveSummary:
:
getSts
,
SpmkApproveSummary:
:
getAssoType
,
SpmkApproveSummary:
:
getEmpNum
,
SpmkApproveSummary:
:
getOrgCode
)
.
select
(
SpmkApproveSummary:
:
getSts
,
SpmkApproveSummary:
:
getAssoType
,
SpmkApproveSummary:
:
getEmpNum
,
SpmkApproveSummary:
:
getOrgCode
)
.
eq
(
SpmkApproveSummary:
:
getId
,
asId
));
.
eq
(
SpmkApproveSummary:
:
getId
,
asId
));
if
(
aSummary
.
getSts
()
>
ApproveSummarySts
.
IN
.
ordinal
())
{
if
(
aSummary
.
getSts
()
>
ApproveSummarySts
.
IN
.
ordinal
())
{
...
@@ -872,8 +872,8 @@ public class SpmkController {
...
@@ -872,8 +872,8 @@ public class SpmkController {
}
}
//判断是否是请假审批
//判断是否是请假审批
if
(
aSummary
.
getAssoType
()==
ApproveEnum
.
LEAVE
.
getType
())
{
if
(
aSummary
.
getAssoType
()
==
ApproveEnum
.
LEAVE
.
getType
())
{
if
(
approvingDto
.
getSts
()==
2
)
{
if
(
approvingDto
.
getSts
()
==
2
)
{
JSONObject
jSONObject
=
jsonObject
.
parseObject
(
ad
.
getRequestData
(),
JSONObject
.
class
);
JSONObject
jSONObject
=
jsonObject
.
parseObject
(
ad
.
getRequestData
(),
JSONObject
.
class
);
// 请假类型 - 前端传中文
// 请假类型 - 前端传中文
String
LeaveType
=
ObjectUtil
.
isNull
(
jSONObject
.
get
(
"__LeaveType"
,
FromData
.
class
))
?
null
:
jSONObject
.
get
(
"__LeaveType"
,
FromData
.
class
).
getValue
();
String
LeaveType
=
ObjectUtil
.
isNull
(
jSONObject
.
get
(
"__LeaveType"
,
FromData
.
class
))
?
null
:
jSONObject
.
get
(
"__LeaveType"
,
FromData
.
class
).
getValue
();
...
@@ -883,7 +883,7 @@ public class SpmkController {
...
@@ -883,7 +883,7 @@ public class SpmkController {
KqglAssoLeaveEmployeeBalance
emba
=
KqglAssoLeaveEmployeeBalance
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoLeaveEmployeeBalance
>().
lambda
().
eq
(
KqglAssoLeaveEmployeeBalance:
:
getLeaveRulesId
,
Convert
.
toInt
(
LeaveType
))
KqglAssoLeaveEmployeeBalance
emba
=
KqglAssoLeaveEmployeeBalance
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoLeaveEmployeeBalance
>().
lambda
().
eq
(
KqglAssoLeaveEmployeeBalance:
:
getLeaveRulesId
,
Convert
.
toInt
(
LeaveType
))
.
eq
(
KqglAssoLeaveEmployeeBalance:
:
getUserid
,
aSummary
.
getEmpNum
()).
eq
(
KqglAssoLeaveEmployeeBalance:
:
getOrgCode
,
aSummary
.
getOrgCode
()));
.
eq
(
KqglAssoLeaveEmployeeBalance:
:
getUserid
,
aSummary
.
getEmpNum
()).
eq
(
KqglAssoLeaveEmployeeBalance:
:
getOrgCode
,
aSummary
.
getOrgCode
()));
if
(
emba
!=
null
)
{
if
(
emba
!=
null
)
{
if
(
emba
.
getBalanceDays
()
!=-
1
&&
emba
.
getBalanceDays
()
<
Convert
.
toInt
(
longTime
))
{
if
(
emba
.
getBalanceDays
()
!=
-
1
&&
emba
.
getBalanceDays
()
<
Convert
.
toInt
(
longTime
))
{
return
ResultUtil
.
error
(
"当前发起人假期余额不足"
);
return
ResultUtil
.
error
(
"当前发起人假期余额不足"
);
}
}
}
}
...
@@ -1527,8 +1527,13 @@ public class SpmkController {
...
@@ -1527,8 +1527,13 @@ public class SpmkController {
}
else
if
(
listFlowChildren
.
get
(
spmkApproveDetailDto
.
getIndex
()
+
1
).
getClassName
().
equals
(
"copy"
))
{
}
else
if
(
listFlowChildren
.
get
(
spmkApproveDetailDto
.
getIndex
()
+
1
).
getClassName
().
equals
(
"copy"
))
{
isFinal
=
true
;
isFinal
=
true
;
}
}
//执行中的人会存在操作记录
SpmkApproveExecuteRecord
spmkApproveExecuteRecord
;
SpmkApproveExecuteRecord
spmkApproveExecuteRecord
=
spmkApproveExecuteRecordMapper
.
selectExecuteRecordById
(
Integer
.
parseInt
(
currentUser
.
getId
()),
spmkApproveDetailSummary
.
getApproveSummaryId
());
//执行中的人会存在操作记录/spmk/delteApprove
if
(
spmkApproveDetailDto
.
getApproveExecuteRecordId
()!=
null
)
{
spmkApproveExecuteRecord
=
SpmkApproveExecuteRecord
.
builder
().
id
(
spmkApproveDetailDto
.
getApproveExecuteRecordId
()).
build
().
selectById
();
}
else
{
spmkApproveExecuteRecord
=
spmkApproveExecuteRecordMapper
.
selectExecuteRecordById
(
Integer
.
parseInt
(
currentUser
.
getId
()),
spmkApproveDetailSummary
.
getApproveSummaryId
());
}
//删除操作人记录
//删除操作人记录
if
(
spmkApproveExecuteRecord
!=
null
)
{
if
(
spmkApproveExecuteRecord
!=
null
)
{
SpmkExecutor
spmkExecutor
=
SpmkExecutor
.
builder
().
build
().
selectOne
(
new
LambdaQueryWrapper
<
SpmkExecutor
>()
SpmkExecutor
spmkExecutor
=
SpmkExecutor
.
builder
().
build
().
selectOne
(
new
LambdaQueryWrapper
<
SpmkExecutor
>()
...
...
src/main/java/cn/timer/api/dto/spmk/SpmkApproveDetailDto.java
View file @
09830dc0
...
@@ -65,4 +65,7 @@ public class SpmkApproveDetailDto {
...
@@ -65,4 +65,7 @@ public class SpmkApproveDetailDto {
private
Integer
userIndex
;
//插入审批人的当前用户索引
private
Integer
userIndex
;
//插入审批人的当前用户索引
private
Integer
approveExecuteId
;
private
Integer
approveExecuteRecordId
;
}
}
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