Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-cost-system
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
bltdc
dc-cost-system
Commits
a82fbfed
Commit
a82fbfed
authored
Jan 05, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e6c8a495
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
DepartmentCheckState.java
...ule/cost/service/impl/costcheck/DepartmentCheckState.java
+2
-2
CostListSearchMapper.xml
...t-core/src/main/resources/mapper/CostListSearchMapper.xml
+0
-1
OtherApplicationTests.java
...re/src/test/java/com/blt/other/OtherApplicationTests.java
+0
-2
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costcheck/DepartmentCheckState.java
View file @
a82fbfed
...
...
@@ -73,7 +73,7 @@ public class DepartmentCheckState extends CostState {
//如果不需要审核 直接通过
DepartmentReviewer
departmentReviewer
=
this
.
getCurrentDepartmentReviewer
(
oaDepartment
.
getDepartmentId
());
if
(
departmentReviewer
!=
null
&&
!
costTemplate
.
shouldDepartmentCheck
(
costDomain
,
departmentReviewer
.
getAutoReviewAmount
()))
{
if
(!
costTemplate
.
shouldDepartmentCheck
(
costDomain
,
departmentReviewer
.
getAutoReviewAmount
()))
{
costDomain
.
setCostStatus
(
CostDomain
.
STATUS_HR_CHECK
);
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
...
...
@@ -177,7 +177,7 @@ public class DepartmentCheckState extends CostState {
CostDomain
costDomain
=
costContext
.
costDomain
;
DepartmentReviewer
departmentReviewer
=
this
.
getCurrentDepartmentReviewer
(
departmentId
);
if
(
departmentReviewer
!=
null
&&
departmentReviewer
.
getSecondDepartmentId
()
>
0
)
{
if
(
departmentReviewer
.
getSecondDepartmentId
()
>
0
)
{
costLogService
.
save
(
costDomain
.
getCostNo
(),
0
,
"匹配二级部门配置:"
+
departmentReviewer
.
getSecondDepartmentName
());
}
...
...
bailuntec-cost-core/src/main/resources/mapper/CostListSearchMapper.xml
View file @
a82fbfed
...
...
@@ -46,7 +46,6 @@
<if
test=
" params.keys.costForm!=null and params.keys.costForm != ''"
>
and cost_form= #{params.keys.costForm}
</if>
<if
test=
" params.keys.companyNo!=null and params.keys.companyNo != ''"
>
and company_no=#{params.keys.companyNo}
</if>
<if
test=
" params.keys.createUsercode!=null and params.keys.createUsercode != ''"
>
and create_usercode=#{params.keys.createUsercode}
</if>
<if
test=
" params.keys.kindNo!=null and params.keys.kindNo != ''"
>
and kind_no=#{params.keys.kindNo}
</if>
<if
test=
" params.keys.costStatus!=null and params.keys.costStatus != '' and params.keys.costStatus != 10"
>
and cost_status=#{params.keys.costStatus}
</if>
<if
test=
" params.keys.costStatus!=null and params.keys.costStatus != '' and params.keys.costStatus == 10"
>
and cost_status=0
</if>
<if
test=
" params.keys.lendStatus!=null and params.keys.lendStatus != ''"
>
and lend_status=#{params.keys.lendStatus}
</if>
...
...
bailuntec-cost-core/src/test/java/com/blt/other/OtherApplicationTests.java
View file @
a82fbfed
...
...
@@ -70,8 +70,6 @@ public class OtherApplicationTests {
@Test
public
void
syncDepartmentReviewer
()
{
departmentReviewerMapper
.
delete
(
new
LambdaQueryWrapper
<>());
// costReviewerMapper.delete(new LambdaQueryWrapper<CostReviewer>()
// .eq(CostReviewer::getType, CostReviewer.departmentReviewer));
List
<
CostReviewer
>
costReviewerList
=
costReviewerMapper
.
selectList
(
new
LambdaQueryWrapper
<
CostReviewer
>()
.
eq
(
CostReviewer:
:
getType
,
1
));
...
...
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