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
fda760ad
Commit
fda760ad
authored
Jan 23, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
9a0c5b1b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
28 deletions
+12
-28
CostTypeBaseReq.java
...om/blt/other/module/cost/dto/request/CostTypeBaseReq.java
+2
-2
CostLogService.java
...ava/com/blt/other/module/cost/service/CostLogService.java
+6
-0
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+4
-26
No files found.
cost-service/src/main/java/com/blt/other/module/cost/dto/request/CostTypeBaseReq.java
View file @
fda760ad
...
...
@@ -17,8 +17,8 @@ public class CostTypeBaseReq {
@ApiModelProperty
(
"会计一级科目编号"
)
private
String
accountingSubjectNo
;
@ApiModelProperty
(
"1-费用类型 2-收入类型 3-借支类型"
)
private
Integer
type
;
@ApiModelProperty
(
"1-费用类型 2-收入类型 3-借支类型
默认1
"
)
private
Integer
type
=
1
;
@ApiModelProperty
(
value
=
"费用模版类型作用"
,
hidden
=
true
)
private
Integer
costTemplateType
;
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/CostLogService.java
View file @
fda760ad
...
...
@@ -6,14 +6,20 @@ import java.util.List;
public
interface
CostLogService
{
//
Integer
save
(
String
costNo
,
Integer
updateUserid
,
String
updateMainNote
);
//
Integer
save
(
String
costNo
,
Integer
updateUserid
,
String
updateMainNote
,
Integer
type
);
//
void
saveByManage
(
String
costNo
,
String
updateMainNote
,
Integer
type
);
//
List
<
CostLogDomain
>
getListByCostNo
(
String
costNo
);
//
List
<
String
>
getListLogs
(
List
<
CostLogDomain
>
logs
);
}
cost-service/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
fda760ad
...
...
@@ -26,7 +26,6 @@ import com.blt.other.module.cost.dao.CostDetailDao;
import
com.blt.other.module.cost.dao.CostTemplateBaseColMapper
;
import
com.blt.other.module.cost.dto.request.CheckCostListReq
;
import
com.blt.other.module.cost.dto.request.CostQueryPageReq
;
import
com.blt.other.module.cost.dto.response.CostPageResult
;
import
com.blt.other.module.cost.dto.response.UpdateCostResp
;
import
com.blt.other.module.cost.model.CostCurrentReviewer
;
import
com.blt.other.module.cost.model.CostDetailDomain
;
...
...
@@ -38,19 +37,19 @@ import com.blt.other.module.cost.vo.ApplyCallbackUrlVo;
import
com.blt.other.module.cost.vo.CashierCallbackUrlDataDataVo
;
import
com.blt.other.module.cost.vo.CashierCallbackUrlVo
;
import
com.blt.other.module.sys.service.UserService
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.google.common.collect.Lists
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.StringUtils
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.util.*
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -86,27 +85,6 @@ public abstract class AbstractCostService implements CostService {
OaDepartmentMapper
oaDepartmentMapper
;
@Override
public
CostPageResult
getAllCost
(
Integer
pageNum
,
Integer
pageSize
,
Integer
userId
,
String
projectTypes
)
{
PageHelper
.
startPage
(
pageNum
,
pageSize
);
List
<
String
>
projectTypeList
=
new
ArrayList
<>();
if
(!
StringUtils
.
isEmpty
(
projectTypes
))
{
projectTypeList
=
Lists
.
newArrayList
(
projectTypes
.
split
(
","
)).
stream
().
filter
(
str
->
!
StringUtils
.
isEmpty
(
str
)).
collect
(
Collectors
.
toList
());
}
List
<
CostDomain
>
costDomains
=
costDao
.
selectAll
(
userId
,
projectTypeList
);
this
.
setPrimaryDepartment
(
costDomains
);
CostPageResult
result
=
new
CostPageResult
();
result
.
setCosts
(
costDomains
.
stream
().
map
(
CostDomain:
:
castToDto
).
collect
(
Collectors
.
toList
()));
result
.
setPageInfo
(
new
PageInfo
<>(
costDomains
));
return
result
;
}
@Override
public
void
setPrimaryDepartment
(
List
<
CostDomain
>
costDomains
)
{
if
(
ListUtil
.
isEmpty
(
costDomains
))
{
return
;
...
...
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