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
12c22bb3
Commit
12c22bb3
authored
Jan 18, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# fee
parent
7a018b0c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletion
+34
-1
CostDao.java
.../src/main/java/com/blt/other/module/cost/dao/CostDao.java
+3
-0
CostApiServiceImpl.java
...lt/other/module/cost/service/impl/CostApiServiceImpl.java
+23
-1
Cost.xml
cost-service/src/main/resources/mapper/Cost.xml
+8
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/dao/CostDao.java
View file @
12c22bb3
package
com
.
blt
.
other
.
module
.
cost
.
dao
;
package
com
.
blt
.
other
.
module
.
cost
.
dao
;
import
com.bailuntec.cost.api.request.ManageCostListReq
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
@@ -75,4 +76,6 @@ public interface CostDao extends BaseMapper<CostDomain> {
...
@@ -75,4 +76,6 @@ public interface CostDao extends BaseMapper<CostDomain> {
//分页查询费用单
//分页查询费用单
Page
<
CostDomain
>
queryPage
(
@Param
(
"page"
)
Page
<
Object
>
page
,
Page
<
CostDomain
>
queryPage
(
@Param
(
"page"
)
Page
<
Object
>
page
,
@Param
(
"req"
)
CostQueryPageReq
req
);
@Param
(
"req"
)
CostQueryPageReq
req
);
List
<
CostDomain
>
manageCostList
(
ManageCostListReq
req
);
}
}
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostApiServiceImpl.java
View file @
12c22bb3
...
@@ -278,6 +278,28 @@ public class CostApiServiceImpl implements CostApiService {
...
@@ -278,6 +278,28 @@ public class CostApiServiceImpl implements CostApiService {
@Override
@Override
public
List
<
ManageCostDto
>
manageCostList
(
ManageCostListReq
req
)
{
public
List
<
ManageCostDto
>
manageCostList
(
ManageCostListReq
req
)
{
return
null
;
List
<
CostDomain
>
manageCostList
=
costDao
.
manageCostList
(
req
);
return
manageCostList
.
stream
()
.
map
(
costDomain
->
{
ManageCostDto
manageCostDto
=
new
ManageCostDto
();
manageCostDto
.
setAmount
(
costDomain
.
getAmount
());
manageCostDto
.
setAmountRmb
(
costDomain
.
getAmountRmb
());
manageCostDto
.
setCompanyName
(
costDomain
.
getCompanyName
());
manageCostDto
.
setCompanyValue
(
costDomain
.
getCompanyValue
());
manageCostDto
.
setCostId
(
costDomain
.
getId
());
manageCostDto
.
setCurrency
(
costDomain
.
getDic
());
manageCostDto
.
setManageCostType
(
costDomain
.
getCostForm
());
manageCostDto
.
setNo
(
costDomain
.
getCostNo
());
manageCostDto
.
setReason
(
costDomain
.
getCostReason
());
//银行卡四要素
manageCostDto
.
setReceiveBank
(
costDomain
.
getBankName
());
manageCostDto
.
setReceiveCard
(
costDomain
.
getBankCard
());
manageCostDto
.
setReceiveCardUser
(
costDomain
.
getBankCardUser
());
manageCostDto
.
setReceiveUnit
(
costDomain
.
getBankCompany
());
return
manageCostDto
;
})
.
collect
(
Collectors
.
toList
());
}
}
}
}
cost-service/src/main/resources/mapper/Cost.xml
View file @
12c22bb3
...
@@ -345,4 +345,12 @@
...
@@ -345,4 +345,12 @@
t1.id DESC
t1.id DESC
</select>
</select>
<select
id=
"manageCostList"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
select *
from cost t1
left join cost_type ct on t1.type_id = ct.id
where t1.cost_status = 4
and ct.is_manage_cost = 1
</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