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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
35 deletions
+43
-35
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
+11
-6
src/main/java/cn/timer/api/dto/spmk/SpmkApproveDetailDto.java
+32
-29
No files found.
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
View file @
09830dc0
...
...
@@ -835,7 +835,7 @@ public class SpmkController {
// 查询 SpmkApproveSummary 状态,
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
));
if
(
aSummary
.
getSts
()
>
ApproveSummarySts
.
IN
.
ordinal
())
{
...
...
@@ -872,8 +872,8 @@ public class SpmkController {
}
//判断是否是请假审批
if
(
aSummary
.
getAssoType
()==
ApproveEnum
.
LEAVE
.
getType
())
{
if
(
approvingDto
.
getSts
()==
2
)
{
if
(
aSummary
.
getAssoType
()
==
ApproveEnum
.
LEAVE
.
getType
())
{
if
(
approvingDto
.
getSts
()
==
2
)
{
JSONObject
jSONObject
=
jsonObject
.
parseObject
(
ad
.
getRequestData
(),
JSONObject
.
class
);
// 请假类型 - 前端传中文
String
LeaveType
=
ObjectUtil
.
isNull
(
jSONObject
.
get
(
"__LeaveType"
,
FromData
.
class
))
?
null
:
jSONObject
.
get
(
"__LeaveType"
,
FromData
.
class
).
getValue
();
...
...
@@ -883,7 +883,7 @@ public class SpmkController {
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
()));
if
(
emba
!=
null
)
{
if
(
emba
.
getBalanceDays
()
!=-
1
&&
emba
.
getBalanceDays
()
<
Convert
.
toInt
(
longTime
))
{
if
(
emba
.
getBalanceDays
()
!=
-
1
&&
emba
.
getBalanceDays
()
<
Convert
.
toInt
(
longTime
))
{
return
ResultUtil
.
error
(
"当前发起人假期余额不足"
);
}
}
...
...
@@ -1527,8 +1527,13 @@ public class SpmkController {
}
else
if
(
listFlowChildren
.
get
(
spmkApproveDetailDto
.
getIndex
()
+
1
).
getClassName
().
equals
(
"copy"
))
{
isFinal
=
true
;
}
//执行中的人会存在操作记录
SpmkApproveExecuteRecord
spmkApproveExecuteRecord
=
spmkApproveExecuteRecordMapper
.
selectExecuteRecordById
(
Integer
.
parseInt
(
currentUser
.
getId
()),
spmkApproveDetailSummary
.
getApproveSummaryId
());
SpmkApproveExecuteRecord
spmkApproveExecuteRecord
;
//执行中的人会存在操作记录/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
)
{
SpmkExecutor
spmkExecutor
=
SpmkExecutor
.
builder
().
build
().
selectOne
(
new
LambdaQueryWrapper
<
SpmkExecutor
>()
...
...
src/main/java/cn/timer/api/dto/spmk/SpmkApproveDetailDto.java
View file @
09830dc0
...
...
@@ -17,52 +17,55 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
public
class
SpmkApproveDetailDto
{
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"编号 编号"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"审批汇总id 审批汇总id"
,
example
=
"101"
)
private
Integer
approveSummaryId
;
@ApiModelProperty
(
value
=
"审批汇总id 审批汇总id"
,
example
=
"101"
)
private
Integer
approveSummaryId
;
@ApiModelProperty
(
value
=
"标题 "
,
example
=
"标题"
)
private
String
name
;
@ApiModelProperty
(
value
=
"标题 "
,
example
=
"标题"
)
private
String
name
;
@ApiModelProperty
(
value
=
"副标题 "
,
example
=
"副标题"
)
private
String
digest
;
@ApiModelProperty
(
value
=
"副标题 "
,
example
=
"副标题"
)
private
String
digest
;
@ApiModelProperty
(
value
=
"所在部门名称 "
,
example
=
"所在部门名称"
)
private
String
departmentName
;
@ApiModelProperty
(
value
=
"所在部门名称 "
,
example
=
"所在部门名称"
)
private
String
departmentName
;
@ApiModelProperty
(
value
=
"申请数据 "
,
example
=
"申请数据"
)
private
JSONObject
requestData
;
@ApiModelProperty
(
value
=
"申请数据 "
,
example
=
"申请数据"
)
private
JSONObject
requestData
;
@ApiModelProperty
(
value
=
"审批表单 "
,
example
=
"审批表单"
)
private
List
<
JSONObject
>
froms
;
@ApiModelProperty
(
value
=
"审批表单 "
,
example
=
"审批表单"
)
private
List
<
JSONObject
>
froms
;
@ApiModelProperty
(
value
=
"审批流程 "
,
example
=
"审批流程"
)
private
Router
router
;
@ApiModelProperty
(
value
=
"审批流程 "
,
example
=
"审批流程"
)
private
Router
router
;
@ApiModelProperty
(
value
=
"通过节点"
,
example
=
"通过节点"
)
private
List
<
FlowChildren
>
flowChildren
;
@ApiModelProperty
(
value
=
"通过节点"
,
example
=
"通过节点"
)
private
List
<
FlowChildren
>
flowChildren
;
@ApiModelProperty
(
value
=
"审批执行记录 "
,
example
=
"审批执行记录"
)
private
List
<
SpmkApproveExecuteRecord
>
approveExecuteRecord
;
@ApiModelProperty
(
value
=
"审批执行记录 "
,
example
=
"审批执行记录"
)
private
List
<
SpmkApproveExecuteRecord
>
approveExecuteRecord
;
private
Integer
empNum
;
private
Integer
empNum
;
private
Integer
sts
;
private
Integer
sts
;
private
Integer
executeEmpNum
;
//当前审批中 当前执行人的id
private
Integer
executeEmpNum
;
//当前审批中 当前执行人的id
private
Integer
executeSts
;
private
Integer
executeSts
;
private
Integer
exeid
;
private
Integer
exeid
;
private
Integer
exereid
;
private
Integer
exereid
;
private
Date
launchTime
;
//审批发起时间
private
Date
launchTime
;
//审批发起时间
private
Integer
index
;
//插入审批人的索引
private
Integer
index
;
//插入审批人的索引
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