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
714b818c
Commit
714b818c
authored
Jan 13, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 费用系统 部门审核人和最终审核人是同一个人,最终审核人自动通过
parent
17041cf2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
2 deletions
+17
-2
CostCurrentReviewerMapper.java
.../blt/other/module/cost/dao/CostCurrentReviewerMapper.java
+5
-1
FinalCheckState.java
...r/module/cost/service/impl/costcheck/FinalCheckState.java
+6
-1
CostLogMapper.xml
cost-service/src/main/resources/mapper/CostLogMapper.xml
+1
-0
CostCurrentReviewerMapper.xml
...esources/mapper/module/cost/CostCurrentReviewerMapper.xml
+5
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/dao/CostCurrentReviewerMapper.java
View file @
714b818c
package
com
.
blt
.
other
.
module
.
cost
.
dao
;
package
com
.
blt
.
other
.
module
.
cost
.
dao
;
import
com.blt.other.module.cost.model.CostCurrentReviewer
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.blt.other.module.cost.model.CostCurrentReviewer
;
import
java.util.List
;
/**
/**
* <p>
* <p>
...
@@ -13,4 +15,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -13,4 +15,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
*/
public
interface
CostCurrentReviewerMapper
extends
BaseMapper
<
CostCurrentReviewer
>
{
public
interface
CostCurrentReviewerMapper
extends
BaseMapper
<
CostCurrentReviewer
>
{
//查询当前审核人
List
<
CostCurrentReviewer
>
selectByCostNo
(
String
costNo
);
}
}
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/FinalCheckState.java
View file @
714b818c
...
@@ -4,7 +4,9 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -4,7 +4,9 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.blt.other.common.exception.BizRuntimeException
;
import
com.blt.other.common.exception.BizRuntimeException
;
import
com.blt.other.database.model.CostCompanyDomain
;
import
com.blt.other.database.model.CostCompanyDomain
;
import
com.blt.other.database.model.CostLogDomain
;
import
com.blt.other.database.model.CostLogDomain
;
import
com.blt.other.module.cost.dao.CostCurrentReviewerMapper
;
import
com.blt.other.module.cost.dao.CostLogDao
;
import
com.blt.other.module.cost.dao.CostLogDao
;
import
com.blt.other.module.cost.model.CostCurrentReviewer
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.model.CostTemplate
;
import
com.blt.other.module.cost.model.CostTemplate
;
import
com.blt.other.module.sys.model.CostReviewer
;
import
com.blt.other.module.sys.model.CostReviewer
;
...
@@ -33,6 +35,8 @@ public class FinalCheckState extends CostState {
...
@@ -33,6 +35,8 @@ public class FinalCheckState extends CostState {
UnPayState
unPayState
;
UnPayState
unPayState
;
@Resource
@Resource
CostLogDao
costLogDao
;
CostLogDao
costLogDao
;
@Resource
CostCurrentReviewerMapper
costCurrentReviewerMapper
;
private
void
autoPass
()
{
private
void
autoPass
()
{
CostDomain
costDomain
=
costContext
.
costDomain
;
CostDomain
costDomain
=
costContext
.
costDomain
;
...
@@ -63,7 +67,8 @@ public class FinalCheckState extends CostState {
...
@@ -63,7 +67,8 @@ public class FinalCheckState extends CostState {
//部门审核人和最终审核人是同一个人,最终审核人自动通过。
//部门审核人和最终审核人是同一个人,最终审核人自动通过。
CostLogDomain
costLogDomain
=
costLogDao
.
selectDepartmentCheckLog
(
costDomain
.
getCostNo
());
CostLogDomain
costLogDomain
=
costLogDao
.
selectDepartmentCheckLog
(
costDomain
.
getCostNo
());
if
(
costLogDomain
!=
null
&&
costLogDomain
.
getUpdateUserid
().
equals
(
currentUserId
))
{
List
<
CostCurrentReviewer
>
costCurrentReviewerList
=
costCurrentReviewerMapper
.
selectByCostNo
(
costDomain
.
getCostNo
());
if
(
costLogDomain
!=
null
&&
costCurrentReviewerList
.
stream
().
map
(
CostCurrentReviewer:
:
getOaUserId
).
collect
(
Collectors
.
toList
()).
contains
(
costLogDomain
.
getUpdateUserid
()))
{
log
.
info
(
"费用单:{}部门审核人和最终审核人是同一个人,最终审核人自动通过。"
,
costDomain
.
getCostNo
());
log
.
info
(
"费用单:{}部门审核人和最终审核人是同一个人,最终审核人自动通过。"
,
costDomain
.
getCostNo
());
this
.
autoPass
();
this
.
autoPass
();
return
;
return
;
...
...
cost-service/src/main/resources/mapper/CostLogMapper.xml
View file @
714b818c
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
WHERE cost_no = #{costNo}
WHERE cost_no = #{costNo}
ORDER BY id DESC
ORDER BY id DESC
</select>
</select>
<select
id=
"selectDepartmentCheckLog"
resultType=
"com.blt.other.database.model.CostLogDomain"
>
<select
id=
"selectDepartmentCheckLog"
resultType=
"com.blt.other.database.model.CostLogDomain"
>
select *
select *
from cost_log
from cost_log
...
...
cost-service/src/main/resources/mapper/module/cost/CostCurrentReviewerMapper.xml
View file @
714b818c
...
@@ -2,4 +2,9 @@
...
@@ -2,4 +2,9 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.blt.other.module.cost.dao.CostCurrentReviewerMapper"
>
<mapper
namespace=
"com.blt.other.module.cost.dao.CostCurrentReviewerMapper"
>
<select
id=
"selectByCostNo"
resultType=
"com.blt.other.module.cost.model.CostCurrentReviewer"
>
select *
from cost_current_reviewer
where cost_no = #{costNo}
</select>
</mapper>
</mapper>
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