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
ff1f42c0
Commit
ff1f42c0
authored
Jan 14, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 费用系统 sql update
parent
65237395
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
CostController.java
.../com/blt/other/module/cost/controller/CostController.java
+1
-1
CostDao.java
.../src/main/java/com/blt/other/module/cost/dao/CostDao.java
+1
-1
CheckCostListReq.java
...m/blt/other/module/cost/dto/request/CheckCostListReq.java
+1
-1
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+6
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/CostController.java
View file @
ff1f42c0
...
...
@@ -199,7 +199,7 @@ public class CostController {
}
@ApiOperation
(
"待
我
审核费用单列表"
)
@ApiOperation
(
"待审核费用单列表"
)
@GetMapping
(
"/checkCostList"
)
public
CostResult
<
IPage
<
CostDto
>>
checkCostList
(
CheckCostListReq
req
)
{
costService
=
CostServiceFactory
.
getCostService
();
...
...
cost-service/src/main/java/com/blt/other/module/cost/dao/CostDao.java
View file @
ff1f42c0
...
...
@@ -44,7 +44,7 @@ public interface CostDao extends BaseMapper<CostDomain> {
IPage
<
CostDomain
>
departmentCheckCostList
(
@Param
(
"page"
)
IPage
<
CostDomain
>
page
,
@Param
(
"req"
)
CheckCostListReq
req
);
//管理后台 所有需要
我部门审核 + 我已经
部门审核通过 费用列表查询
//管理后台 所有需要
部门审核 +
部门审核通过 费用列表查询
IPage
<
CostDomain
>
departmentCheckAllCostList
(
@Param
(
"page"
)
IPage
<
CostDomain
>
page
,
@Param
(
"req"
)
CheckCostListReq
req
);
...
...
cost-service/src/main/java/com/blt/other/module/cost/dto/request/CheckCostListReq.java
View file @
ff1f42c0
...
...
@@ -41,5 +41,5 @@ public class CheckCostListReq {
private
Integer
costStatus
;
@ApiModelProperty
(
"创建人(模糊搜索) "
)
private
String
createUserId
;
private
Integer
createUserId
;
}
cost-service/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
ff1f42c0
...
...
@@ -285,23 +285,29 @@ public abstract class AbstractCostService implements CostService {
@Override
public
IPage
<
CostDto
>
checkCostList
(
CheckCostListReq
req
)
{
IPage
<
CostDomain
>
page
=
new
Page
<>(
req
.
getPageNum
(),
req
.
getPageSize
());
//需要财务审核或者需要我最终审核费用列表查询
if
(
req
.
getType
().
equals
(
1
))
{
return
costDao
.
financialOrFinalCheckCostList
(
page
,
req
).
convert
(
CostDomain:
:
castToDto
);
}
if
(
req
.
getType
().
equals
(
2
))
{
//所有需要部门审核 + 部门审核通过 费用列表查询
if
(
req
.
getStatus
().
equals
(
1
))
{
return
costDao
.
departmentCheckAllCostList
(
page
,
req
).
convert
(
CostDomain:
:
castToDto
);
}
//需要我部门审核费用列表查询
if
(
req
.
getStatus
().
equals
(
2
))
{
return
costDao
.
departmentCheckCostList
(
page
,
req
).
convert
(
CostDomain:
:
castToDto
);
}
//已经部门手动审核费用列表查询
if
(
req
.
getStatus
().
equals
(
3
))
{
return
costDao
.
departmentManualCheckLllCostList
(
page
,
req
).
convert
(
CostDomain:
:
castToDto
);
}
//已经部门自动核费用列表查询
if
(
req
.
getStatus
().
equals
(
4
))
{
return
costDao
.
departmentAutoCheckLllCostList
(
page
,
req
).
convert
(
CostDomain:
:
castToDto
);
}
}
//需要我人事审核费用列表查询
if
(
req
.
getType
().
equals
(
3
))
{
return
costDao
.
hrCheckCostList
(
page
,
req
).
convert
(
CostDomain:
:
castToDto
);
}
...
...
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