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
0c2f857d
Commit
0c2f857d
authored
Jul 10, 2024
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增下 部门负责人与终审同一个,只审其一
parent
739ce66e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
CostLogDao.java
...c/main/java/com/blt/other/module/cost/dao/CostLogDao.java
+3
-0
FinalCheckState.java
...r/module/cost/service/impl/costcheck/FinalCheckState.java
+5
-2
CostLogMapper.xml
cost-service/src/main/resources/mapper/CostLogMapper.xml
+9
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/dao/CostLogDao.java
View file @
0c2f857d
...
@@ -20,6 +20,9 @@ public interface CostLogDao extends BaseMapper<CostLogDomain> {
...
@@ -20,6 +20,9 @@ public interface CostLogDao extends BaseMapper<CostLogDomain> {
//查询部门审核日志
//查询部门审核日志
CostLogDomain
selectDepartmentCheckLog
(
String
costNo
);
CostLogDomain
selectDepartmentCheckLog
(
String
costNo
);
//查询部门审核日志
CostLogDomain
selectDepartmentCheckLog3
(
String
costNo
);
Page
<
CostLogDomain
>
queryPageFor4k
(
@Param
(
"page"
)
Page
<
Object
>
page
,
Page
<
CostLogDomain
>
queryPageFor4k
(
@Param
(
"page"
)
Page
<
Object
>
page
,
@Param
(
"sourceFrom"
)
String
sourceFrom
);
@Param
(
"sourceFrom"
)
String
sourceFrom
);
}
}
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/FinalCheckState.java
View file @
0c2f857d
...
@@ -113,13 +113,16 @@ public class FinalCheckState extends CostState {
...
@@ -113,13 +113,16 @@ public class FinalCheckState extends CostState {
//部门审核人和最终审核人是同一个人,最终审核人自动通过。
//部门审核人和最终审核人是同一个人,最终审核人自动通过。
CostLogDomain
costLogDomain
=
costLogDao
.
selectDepartmentCheckLog
(
costDomain
.
getCostNo
());
CostLogDomain
costLogDomain
=
costLogDao
.
selectDepartmentCheckLog
(
costDomain
.
getCostNo
());
CostLogDomain
costLogDomain3
=
costLogDao
.
selectDepartmentCheckLog3
(
costDomain
.
getCostNo
());
List
<
CostCurrentReviewer
>
costCurrentReviewerList
=
costCurrentReviewerMapper
.
selectByCostNo
(
costDomain
.
getCostNo
());
List
<
CostCurrentReviewer
>
costCurrentReviewerList
=
costCurrentReviewerMapper
.
selectByCostNo
(
costDomain
.
getCostNo
());
if
(
costLogDomain
!=
null
&&
costCurrentReviewerList
.
stream
().
map
(
CostCurrentReviewer:
:
getOaUserId
).
collect
(
Collectors
.
toList
()).
contains
(
costLogDomain
.
getUpdateUserid
()))
{
if
(
costLogDomain
!=
null
)
{
List
<
Integer
>
listCurrentReviewer
=
costCurrentReviewerList
.
stream
().
map
(
CostCurrentReviewer:
:
getOaUserId
).
collect
(
Collectors
.
toList
());
if
(
listCurrentReviewer
.
contains
(
costLogDomain
.
getUpdateUserid
())
||
listCurrentReviewer
.
contains
(
costLogDomain3
.
getUpdateUserid
()))
{
log
.
info
(
"费用单:{}部门审核人和最终审核人是同一个人,最终审核人自动通过。"
,
costDomain
.
getCostNo
());
log
.
info
(
"费用单:{}部门审核人和最终审核人是同一个人,最终审核人自动通过。"
,
costDomain
.
getCostNo
());
this
.
autoPass
(
"(部门审核人和最终审核人是同一人)"
);
this
.
autoPass
(
"(部门审核人和最终审核人是同一人)"
);
return
;
return
;
}
}
}
//如果不需要审核 并且主体不是工会 直接通过
//如果不需要审核 并且主体不是工会 直接通过
if
(!
costTemplate
.
shouldFinalCheck
(
costDomain
))
{
if
(!
costTemplate
.
shouldFinalCheck
(
costDomain
))
{
...
...
cost-service/src/main/resources/mapper/CostLogMapper.xml
View file @
0c2f857d
...
@@ -20,6 +20,15 @@
...
@@ -20,6 +20,15 @@
limit 1;
limit 1;
</select>
</select>
<select
id=
"selectDepartmentCheckLog3"
resultType=
"com.blt.other.database.model.CostLogDomain"
>
select *
from cost_log
where cost_no = #{costNo}
and type in = 3
order by update_time desc
limit 1;
</select>
<select
id=
"queryPageFor4k"
resultType=
"com.blt.other.database.model.CostLogDomain"
>
<select
id=
"queryPageFor4k"
resultType=
"com.blt.other.database.model.CostLogDomain"
>
select cl.* from cost_log cl
select cl.* from cost_log cl
left join cost c on c.cost_no = cl.cost_no
left join cost c on c.cost_no = cl.cost_no
...
...
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