Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
bailuntec-cost
Commits
26f9b637
Commit
26f9b637
authored
Nov 05, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、工资查看增加曾思敏;
2、如部门审核和总经办审核是同一个人,则自动通过。
parent
c9385372
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
CostDetailController.java
...lt/other/module/cost/controller/CostDetailController.java
+1
-1
GeneralManagerCheckState.java
...cost/service/impl/costcheck/GeneralManagerCheckState.java
+14
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/CostDetailController.java
View file @
26f9b637
...
...
@@ -74,7 +74,7 @@ public class CostDetailController {
||
user
.
getUseraccount
().
equals
(
"陈文静"
)
||
user
.
getUseraccount
().
equals
(
"林冬菊"
)
||
user
.
getUseraccount
().
equals
(
"梁献云"
)
||
user
.
getUseraccount
().
equals
(
"
姚晓婷
"
)
||
user
.
getUseraccount
().
equals
(
"
曾思敏
"
)
||
user
.
getUseraccount
().
equals
(
"刘春丽"
)
||
user
.
getUseraccount
().
equals
(
"魏秋裕"
)
||
user
.
getUseraccount
().
equals
(
"关秀利"
)
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/GeneralManagerCheckState.java
View file @
26f9b637
...
...
@@ -7,6 +7,7 @@ import com.blt.other.database.model.CostLogDomain;
import
com.blt.other.database.model.CostTypeDomain
;
import
com.blt.other.module.auth.model.OaUser
;
import
com.blt.other.module.cost.dao.CostCurrentReviewerMapper
;
import
com.blt.other.module.cost.dao.CostLogDao
;
import
com.blt.other.module.cost.dao.CostTypeDao
;
import
com.blt.other.module.cost.model.ApprovalHistoryDomain
;
import
com.blt.other.module.cost.model.CostCurrentReviewer
;
...
...
@@ -45,6 +46,8 @@ public class GeneralManagerCheckState extends CostState {
ApprovalHistoryService
approvalHistoryService
;
@Resource
CostTypeDao
costTypeDao
;
@Resource
CostLogDao
costLogDao
;
//审批次数
static
Map
<
LocalDate
,
Integer
>
APPROVE_TIMES
=
new
ConcurrentHashMap
<>();
...
...
@@ -152,6 +155,17 @@ public class GeneralManagerCheckState extends CostState {
}
private
boolean
autoPass
(
CostDomain
costDomain
)
{
CostLogDomain
costLogDomain
=
costLogDao
.
selectDepartmentCheckLog
(
costDomain
.
getCostNo
());
List
<
CostCurrentReviewer
>
costCurrentReviewerList
=
costCurrentReviewerMapper
.
selectByCostNo
(
costDomain
.
getCostNo
());
if
(
costLogDomain
!=
null
&&
costCurrentReviewerList
.
stream
()
.
map
(
CostCurrentReviewer:
:
getOaUserId
)
.
collect
(
Collectors
.
toList
())
.
contains
(
costLogDomain
.
getUpdateUserid
()))
{
//部门审核人和总经办审核人是同一个人,总经办审核人自动通过。
return
true
;
}
if
(
costDomain
.
getCostForm
().
equals
(
2
))
{
//收款不需要审核
return
true
;
...
...
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