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
e6a318f9
Commit
e6a318f9
authored
Jan 29, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 更新
parent
d2119fea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
CostApiServiceImpl.java
...lt/other/module/cost/service/impl/CostApiServiceImpl.java
+4
-1
Cost.xml
cost-service/src/main/resources/mapper/Cost.xml
+2
-2
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostApiServiceImpl.java
View file @
e6a318f9
...
@@ -279,6 +279,8 @@ public class CostApiServiceImpl implements CostApiService {
...
@@ -279,6 +279,8 @@ public class CostApiServiceImpl implements CostApiService {
@Override
@Override
public
List
<
ManageCostDto
>
manageCostList
(
ManageCostListReq
req
)
{
public
List
<
ManageCostDto
>
manageCostList
(
ManageCostListReq
req
)
{
List
<
CostDomain
>
manageCostList
=
costDao
.
manageCostList
(
req
);
List
<
CostDomain
>
manageCostList
=
costDao
.
manageCostList
(
req
);
costService
.
setPrimaryDepartment
(
manageCostList
);
return
manageCostList
.
stream
()
return
manageCostList
.
stream
()
.
map
(
costDomain
->
{
.
map
(
costDomain
->
{
ManageCostDto
manageCostDto
=
new
ManageCostDto
();
ManageCostDto
manageCostDto
=
new
ManageCostDto
();
...
@@ -299,8 +301,9 @@ public class CostApiServiceImpl implements CostApiService {
...
@@ -299,8 +301,9 @@ public class CostApiServiceImpl implements CostApiService {
manageCostDto
.
setReceiveUnit
(
costDomain
.
getBankCompany
());
manageCostDto
.
setReceiveUnit
(
costDomain
.
getBankCompany
());
manageCostDto
.
setPayTime
(
costDomain
.
getPayTime
());
manageCostDto
.
setPayTime
(
costDomain
.
getPayTime
());
manageCostDto
.
setFeeSuperType
(
costDomain
.
getTypeName
());
manageCostDto
.
setFeeSuperType
(
costDomain
.
getTypeName
());
manageCostDto
.
setDepartmentName
(
costDomain
.
getPrimaryDepartmentName
());
return
manageCostDto
;
return
manageCostDto
;
})
})
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
...
...
cost-service/src/main/resources/mapper/Cost.xml
View file @
e6a318f9
...
@@ -326,12 +326,12 @@
...
@@ -326,12 +326,12 @@
</select>
</select>
<select
id=
"manageCostList"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
<select
id=
"manageCostList"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
select *
select
t1.
*
from cost t1
from cost t1
left join cost_type ct on t1.type_id = ct.id
left join cost_type ct on t1.type_id = ct.id
where t1.cost_status = 4
where t1.cost_status = 4
and ct.is_manage_cost = 1
and ct.is_manage_cost = 1
and last_modify_date between #{startDateStr} and #{endDateStr}
and
t1.
last_modify_date between #{startDateStr} and #{endDateStr}
</select>
</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