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
fe89a9f5
Commit
fe89a9f5
authored
Jan 23, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
875aadc9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
AppCostServiceImpl.java
...lt/other/module/cost/service/impl/AppCostServiceImpl.java
+11
-4
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/AppCostServiceImpl.java
View file @
fe89a9f5
...
...
@@ -13,6 +13,7 @@ import com.blt.other.module.cost.dto.request.AppCostRejectReq;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.service.AppCostService
;
import
com.blt.other.module.cost.service.CostDetailService
;
import
com.blt.other.module.cost.service.CostService
;
import
com.blt.other.module.cost.service.impl.costcheck.*
;
import
org.springframework.stereotype.Service
;
...
...
@@ -32,6 +33,8 @@ public class AppCostServiceImpl implements AppCostService {
@Resource
CostDao
costDao
;
@Resource
CostService
costService
;
@Resource
CostDetailService
costDetailService
;
...
...
@@ -39,7 +42,10 @@ public class AppCostServiceImpl implements AppCostService {
public
Page
<
CostDto
>
appCheckCostList
(
AppCheckCostListReq
req
)
{
IPage
<
CostDomain
>
costDomainIPage
=
new
Page
<>(
req
.
getPageNum
(),
req
.
getPageSize
());
costDetailService
.
setDetail
(
costDomainIPage
.
getRecords
());
return
(
Page
<
CostDto
>)
costDao
.
appCheckCostList
(
costDomainIPage
,
req
).
convert
(
CostDomain:
:
castToDto
);
Page
<
CostDomain
>
result
=
costDao
.
appCheckCostList
(
costDomainIPage
,
req
);
costDetailService
.
setDetail
(
result
.
getRecords
());
return
(
Page
<
CostDto
>)
result
.
convert
(
CostDomain:
:
castToDto
);
}
@Override
...
...
@@ -57,12 +63,13 @@ public class AppCostServiceImpl implements AppCostService {
@Override
public
Page
<
CostDto
>
appCostList
(
AppCostListReq
req
)
{
IPage
<
CostDomain
>
costDomainIPage
=
new
Page
<>(
req
.
getPageNum
(),
req
.
getPageSize
());
costDetailService
.
setDetail
(
costDomainIPage
.
getRecords
());
return
(
Page
<
CostDto
>)
costDao
.
appCostList
(
costDomainIPage
,
req
).
convert
(
CostDomain:
:
castToDto
);
Page
<
CostDomain
>
result
=
costDao
.
appCostList
(
costDomainIPage
,
req
);
costDetailService
.
setDetail
(
result
.
getRecords
());
return
(
Page
<
CostDto
>)
result
.
convert
(
CostDomain:
:
castToDto
);
}
private
CostContext
getCostState
(
String
costNo
,
Integer
oaUserId
)
{
CostDomain
costDomain
=
cost
Dao
.
selec
tByCostNo
(
costNo
);
CostDomain
costDomain
=
cost
Service
.
getCos
tByCostNo
(
costNo
);
CostState
costState
;
CostContext
costContext
;
switch
(
costDomain
.
getCostStatus
())
{
...
...
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