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
87c7a11b
Commit
87c7a11b
authored
Nov 27, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8884f294
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
CostService.java
...n/java/com/blt/other/module/cost/service/CostService.java
+1
-0
CostListSearchServiceImpl.java
...r/module/cost/service/impl/CostListSearchServiceImpl.java
+2
-1
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+0
-1
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/CostService.java
View file @
87c7a11b
...
@@ -22,6 +22,7 @@ public interface CostService {
...
@@ -22,6 +22,7 @@ public interface CostService {
// @Deprecated
// @Deprecated
Integer
saveNewCost
(
CostDomain
costDomain
);
Integer
saveNewCost
(
CostDomain
costDomain
);
void
setPrimaryDepartment
(
List
<
CostDomain
>
costDomains
);
/**
/**
* 获取所有费用单
* 获取所有费用单
*
*
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/CostListSearchServiceImpl.java
View file @
87c7a11b
...
@@ -34,6 +34,7 @@ public class CostListSearchServiceImpl implements CostListSearchService {
...
@@ -34,6 +34,7 @@ public class CostListSearchServiceImpl implements CostListSearchService {
CostApiDto
.
GetByKeyResp
resp
=
new
CostApiDto
.
GetByKeyResp
();
CostApiDto
.
GetByKeyResp
resp
=
new
CostApiDto
.
GetByKeyResp
();
PageHelper
.
startPage
(
pageNum
,
pageSize
);
PageHelper
.
startPage
(
pageNum
,
pageSize
);
List
<
CostDomain
>
costDomains
=
costListSearchDao
.
selectByKey
(
Lists
.
newArrayList
(
key
.
split
(
","
)).
stream
().
filter
(
Objects:
:
nonNull
).
collect
(
Collectors
.
toList
()));
List
<
CostDomain
>
costDomains
=
costListSearchDao
.
selectByKey
(
Lists
.
newArrayList
(
key
.
split
(
","
)).
stream
().
filter
(
Objects:
:
nonNull
).
collect
(
Collectors
.
toList
()));
costService
.
setPrimaryDepartment
(
costDomains
);
List
<
CostDto
>
dtos
=
costDomains
.
stream
().
map
(
CostDomain:
:
castToDto
).
collect
(
Collectors
.
toList
());
List
<
CostDto
>
dtos
=
costDomains
.
stream
().
map
(
CostDomain:
:
castToDto
).
collect
(
Collectors
.
toList
());
PageInfo
<
CostDomain
>
pageInfo
=
new
PageInfo
<>(
costDomains
);
PageInfo
<
CostDomain
>
pageInfo
=
new
PageInfo
<>(
costDomains
);
...
@@ -49,7 +50,7 @@ public class CostListSearchServiceImpl implements CostListSearchService {
...
@@ -49,7 +50,7 @@ public class CostListSearchServiceImpl implements CostListSearchService {
PageHelper
.
startPage
(
searchKeysVo
.
getParams
().
getPageNum
(),
searchKeysVo
.
getParams
().
getPageSize
());
PageHelper
.
startPage
(
searchKeysVo
.
getParams
().
getPageNum
(),
searchKeysVo
.
getParams
().
getPageSize
());
List
<
CostDomain
>
domains
=
costListSearchDao
.
selectByKeys
(
searchKeysVo
);
List
<
CostDomain
>
domains
=
costListSearchDao
.
selectByKeys
(
searchKeysVo
);
costService
.
setPrimaryDepartment
(
domains
);
PageInfo
<
CostDomain
>
pageInfo
=
new
PageInfo
<>(
domains
);
PageInfo
<
CostDomain
>
pageInfo
=
new
PageInfo
<>(
domains
);
if
(
null
!=
searchKeysVo
.
getParams
().
getKeys
().
getLinkCost
()
&&
!
searchKeysVo
.
getParams
().
getKeys
().
getLinkCost
().
isEmpty
())
{
if
(
null
!=
searchKeysVo
.
getParams
().
getKeys
().
getLinkCost
()
&&
!
searchKeysVo
.
getParams
().
getKeys
().
getLinkCost
().
isEmpty
())
{
List
<
CostDomain
>
list
=
new
ArrayList
<>();
List
<
CostDomain
>
list
=
new
ArrayList
<>();
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
87c7a11b
...
@@ -199,7 +199,6 @@ public abstract class AbstractCostService implements CostService {
...
@@ -199,7 +199,6 @@ public abstract class AbstractCostService implements CostService {
}
}
}
}
@Override
@Override
public
List
<
CostDto
>
getByCostPlanNo
(
String
costPlanNo
)
{
public
List
<
CostDto
>
getByCostPlanNo
(
String
costPlanNo
)
{
return
costDao
.
selectByCostPlanNo
(
costPlanNo
)
return
costDao
.
selectByCostPlanNo
(
costPlanNo
)
...
...
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