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
ef7a363c
Commit
ef7a363c
authored
Nov 04, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ac3bacc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
24 deletions
+9
-24
CostDao.java
.../src/main/java/com/blt/other/module/cost/dao/CostDao.java
+4
-4
CostApiServiceImpl.java
...lt/other/module/cost/service/impl/CostApiServiceImpl.java
+5
-20
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/dao/CostDao.java
View file @
ef7a363c
...
...
@@ -101,8 +101,8 @@ public interface CostDao {
* @param payUserId payUserId
* @return
*/
List
<
ManageCostDto
>
selectManageCost
(
@Param
(
"startDate"
)
Date
startDate
,
@Param
(
"endDate"
)
Date
endDate
,
List
<
ManageCostDto
>
selectManageCost
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"feeSuperType"
)
String
feeSuperType
,
@Param
(
"feeSubType"
)
String
feeSubType
,
@Param
(
"companyValueList"
)
List
<
Integer
>
companyValueList
,
...
...
@@ -127,8 +127,8 @@ public interface CostDao {
* @param payUserId payUserId
* @return
*/
List
<
ManageCostDto
>
getLogisticsCostList
(
@Param
(
"startDate"
)
Date
startDate
,
@Param
(
"endDate"
)
Date
endDate
,
List
<
ManageCostDto
>
getLogisticsCostList
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"feeSuperType"
)
String
feeSuperType
,
@Param
(
"feeSubType"
)
String
feeSubType
,
@Param
(
"companyValueList"
)
List
<
Integer
>
companyValueList
,
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/CostApiServiceImpl.java
View file @
ef7a363c
...
...
@@ -3,7 +3,6 @@ package com.blt.other.module.cost.service.impl;
import
com.alibaba.fastjson.JSONObject
;
import
com.bailuntec.cost.api.dto.*
;
import
com.blt.other.common.util.CurUtils
;
import
com.blt.other.common.util.DateTimeUtil
;
import
com.blt.other.common.util.HttpUtil
;
import
com.blt.other.common.util.PathUtil
;
import
com.blt.other.module.auth.dao.UserDao
;
...
...
@@ -21,7 +20,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.StringUtils
;
import
javax.annotation.Resource
;
import
java.io.IOException
;
...
...
@@ -160,14 +158,7 @@ public class CostApiServiceImpl implements CostApiService {
String
departmentName
,
Integer
createUserId
,
Integer
payUserId
)
{
Date
startDate
=
null
;
Date
endDate
=
null
;
if
(!
StringUtils
.
isEmpty
(
startDateStr
))
{
startDate
=
DateTimeUtil
.
stringToDate
(
startDateStr
,
DateTimeUtil
.
DATE_FORMAT
);
}
if
(!
StringUtils
.
isEmpty
(
endDateStr
))
{
endDate
=
DateTimeUtil
.
stringToDate
(
endDateStr
,
DateTimeUtil
.
DATE_FORMAT
);
}
ArrayList
<
Integer
>
companyValueList
=
new
ArrayList
<>(
6
);
if
(
companyValue
!=
null
)
{
companyValueList
.
add
(
companyValue
);
...
...
@@ -188,7 +179,7 @@ public class CostApiServiceImpl implements CostApiService {
}
List
<
ManageCostDto
>
manageCostDtoList
=
costDao
.
selectManageCost
(
startDate
,
DateTimeUtil
.
addDays
(
endDate
,
1
)
,
feeSuperType
,
feeSubType
,
companyValueList
,
companyName
,
departmentName
,
createUserId
,
payUserId
);
List
<
ManageCostDto
>
manageCostDtoList
=
costDao
.
selectManageCost
(
startDate
Str
,
endDateStr
,
feeSuperType
,
feeSubType
,
companyValueList
,
companyName
,
departmentName
,
createUserId
,
payUserId
);
if
(
manageCostDtoList
!=
null
&&
!
manageCostDtoList
.
isEmpty
())
{
for
(
ManageCostDto
manageCostDto
:
manageCostDtoList
)
{
if
(!
manageCostDto
.
getCurrency
().
equals
(
"CNY"
))
{
...
...
@@ -231,14 +222,8 @@ public class CostApiServiceImpl implements CostApiService {
@Override
public
List
<
ManageCostDto
>
getLogisticsCostList
(
String
startDateStr
,
String
endDateStr
,
String
feeSuperType
,
String
feeSubType
,
Integer
companyValue
,
String
companyName
,
String
departmentName
,
Integer
createUserId
,
Integer
payUserId
)
throws
Exception
{
Date
startDate
=
null
;
Date
endDate
=
null
;
if
(!
StringUtils
.
isEmpty
(
startDateStr
))
{
startDate
=
DateTimeUtil
.
stringToDate
(
startDateStr
,
DateTimeUtil
.
DATE_FORMAT
);
}
if
(!
StringUtils
.
isEmpty
(
endDateStr
))
{
endDate
=
DateTimeUtil
.
stringToDate
(
endDateStr
,
DateTimeUtil
.
DATE_FORMAT
);
}
ArrayList
<
Integer
>
companyValueList
=
new
ArrayList
<>(
6
);
if
(
companyValue
!=
null
)
{
companyValueList
.
add
(
companyValue
);
...
...
@@ -257,7 +242,7 @@ public class CostApiServiceImpl implements CostApiService {
companyValueList
.
add
(
46
);
}
}
return
costDao
.
getLogisticsCostList
(
startDate
,
DateTimeUtil
.
addDays
(
endDate
,
1
)
,
feeSuperType
,
feeSubType
,
companyValueList
,
companyName
,
departmentName
,
createUserId
,
payUserId
);
return
costDao
.
getLogisticsCostList
(
startDate
Str
,
endDateStr
,
feeSuperType
,
feeSubType
,
companyValueList
,
companyName
,
departmentName
,
createUserId
,
payUserId
);
}
@Override
...
...
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