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
0f44b3c5
Commit
0f44b3c5
authored
Jan 15, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 费用系统 管理成本
parent
ff1f42c0
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
100 deletions
+47
-100
CostApi.java
...erfaces/src/main/java/com/bailuntec/cost/api/CostApi.java
+3
-28
ManageCostListReq.java
...ava/com/bailuntec/cost/api/request/ManageCostListReq.java
+25
-0
pom.xml
cost-service/pom.xml
+1
-1
CostTypeDomain.java
...ain/java/com/blt/other/database/model/CostTypeDomain.java
+2
-0
CostApiController.java
...m/blt/other/module/cost/controller/CostApiController.java
+6
-71
CostApiService.java
...ava/com/blt/other/module/cost/service/CostApiService.java
+10
-0
No files found.
cost-interfaces/src/main/java/com/bailuntec/cost/api/CostApi.java
View file @
0f44b3c5
...
...
@@ -5,6 +5,7 @@ import com.bailuntec.cost.api.dto.CostDto;
import
com.bailuntec.cost.api.dto.LogisticsCostDto
;
import
com.bailuntec.cost.api.dto.ManageCostDto
;
import
com.bailuntec.cost.api.dto.WageCostDto
;
import
com.bailuntec.cost.api.request.ManageCostListReq
;
import
com.bailuntec.cost.api.response.CostResult
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.openfeign.FeignClient
;
...
...
@@ -29,35 +30,9 @@ public interface CostApi {
@PostMapping
(
"/pushLogisticsReceipt"
)
CostResult
<
Void
>
pushLogisticsReceipt
(
@RequestBody
LogisticsCostDto
logisticsCostDto
)
throws
Exception
;
@ApiOperation
(
"获取所有费用单和采购单"
)
@GetMapping
(
"/manageCostList"
)
CostResult
<
List
<
ManageCostDto
>>
manageCostList
(
@RequestParam
(
name
=
"startDate"
,
required
=
false
)
String
startDateStr
,
@RequestParam
(
name
=
"endDate"
,
required
=
false
)
String
endDateStr
,
@RequestParam
(
name
=
"feeSuperType"
,
required
=
false
)
String
feeSuperType
,
@RequestParam
(
name
=
"feeSubType"
,
required
=
false
)
String
feeSubType
,
@RequestParam
(
name
=
"companyValue"
,
required
=
false
)
Integer
companyValue
,
@RequestParam
(
name
=
"companyName"
,
required
=
false
)
String
companyName
,
@RequestParam
(
name
=
"departmentName"
,
required
=
false
)
String
departmentName
,
@RequestParam
(
name
=
"createUserId"
,
required
=
false
)
Integer
createUserId
,
@RequestParam
(
name
=
"payUserId"
,
required
=
false
)
Integer
payUserId
);
@ApiOperation
(
"查询所有的物流费用单和采购单"
)
@GetMapping
(
"/logisticsCostList"
)
CostResult
<
List
<
ManageCostDto
>>
logisticsCostList
(
@RequestParam
(
name
=
"startDate"
,
required
=
false
)
String
startDateStr
,
@RequestParam
(
name
=
"endDate"
,
required
=
false
)
String
endDateStr
,
@RequestParam
(
name
=
"feeSuperType"
,
required
=
false
)
String
feeSuperType
,
@RequestParam
(
name
=
"feeSubType"
,
required
=
false
)
String
feeSubType
,
@RequestParam
(
name
=
"companyValue"
,
required
=
false
)
Integer
companyValue
,
@RequestParam
(
name
=
"companyName"
,
required
=
false
)
String
companyName
,
@RequestParam
(
name
=
"departmentName"
,
required
=
false
)
String
departmentName
,
@RequestParam
(
name
=
"createUserId"
,
required
=
false
)
Integer
createUserId
,
@RequestParam
(
name
=
"payUserId"
,
required
=
false
)
Integer
payUserId
);
@ApiOperation
(
"获取资产负债表相关费用单"
)
@GetMapping
(
"/balanceSheetCost"
)
CostResult
<
List
<
CostDto
>>
balanceSheetCostList
(
@RequestParam
(
name
=
"startDate"
)
String
startDateStr
,
@RequestParam
(
name
=
"endDate"
)
String
endDateStr
);
@PostMapping
(
"/manageCostList"
)
CostResult
<
List
<
ManageCostDto
>>
manageCostList
(
@RequestBody
ManageCostListReq
req
);
@GetMapping
(
"/noPayCost"
)
@ApiOperation
(
"查询原来传输到数据中心时为待支付状态 变成 已支付状态后的费用单"
)
...
...
cost-interfaces/src/main/java/com/bailuntec/cost/api/request/ManageCostListReq.java
0 → 100644
View file @
0f44b3c5
package
com
.
bailuntec
.
cost
.
api
.
request
;
import
lombok.Data
;
/**
* <p>
*
* </p>
*
* @author robbendev
* @since 2021/1/15 11:38 上午
*/
@Data
public
class
ManageCostListReq
{
private
String
startDateStr
;
private
String
endDateStr
;
private
String
feeSuperType
;
private
String
feeSubType
;
private
Integer
companyValue
;
private
String
companyName
;
private
String
departmentName
;
private
Integer
createUserId
;
private
Integer
payUserId
;
}
cost-service/pom.xml
View file @
0f44b3c5
...
...
@@ -48,7 +48,7 @@
<dependency>
<groupId>
com.bailuntec
</groupId>
<artifactId>
bailuntec-cost-api
</artifactId>
<artifactId>
cost-interfaces
</artifactId>
</dependency>
...
...
cost-service/src/main/java/com/blt/other/database/model/CostTypeDomain.java
View file @
0f44b3c5
...
...
@@ -34,6 +34,8 @@ public class CostTypeDomain {
private
String
accountingSubjectNo
;
private
Boolean
isManageCost
;
/**
* 形如0b1001 四位二进制
* 高位到低位分别是 付款 收款 借支 借还
...
...
cost-service/src/main/java/com/blt/other/module/cost/controller/CostApiController.java
View file @
0f44b3c5
...
...
@@ -5,6 +5,7 @@ import com.bailuntec.cost.api.dto.CostDto;
import
com.bailuntec.cost.api.dto.LogisticsCostDto
;
import
com.bailuntec.cost.api.dto.ManageCostDto
;
import
com.bailuntec.cost.api.dto.WageCostDto
;
import
com.bailuntec.cost.api.request.ManageCostListReq
;
import
com.bailuntec.cost.api.response.CostResult
;
import
com.blt.other.common.annotation.LoginIgnore
;
import
com.blt.other.module.cost.model.CostDomain
;
...
...
@@ -67,58 +68,14 @@ public class CostApiController implements CostApi {
@SneakyThrows
@ApiOperation
(
"查询管理成本的数据"
)
@Override
@GetMapping
(
"/manageCostList"
)
public
CostResult
<
List
<
ManageCostDto
>>
manageCostList
(
@RequestParam
(
name
=
"startDate"
,
required
=
false
)
String
startDateStr
,
@RequestParam
(
name
=
"endDate"
,
required
=
false
)
String
endDateStr
,
@RequestParam
(
name
=
"feeSuperType"
,
required
=
false
)
String
feeSuperType
,
@RequestParam
(
name
=
"feeSubType"
,
required
=
false
)
String
feeSubType
,
@RequestParam
(
name
=
"companyValue"
,
required
=
false
)
Integer
companyValue
,
@RequestParam
(
name
=
"companyName"
,
required
=
false
)
String
companyName
,
@RequestParam
(
name
=
"departmentName"
,
required
=
false
)
String
departmentName
,
@RequestParam
(
name
=
"createUserId"
,
required
=
false
)
Integer
createUserId
,
@RequestParam
(
name
=
"payUserId"
,
required
=
false
)
Integer
payUserId
)
{
// if (!StringUtils.isEmpty(departmentName)) {
// departmentName = departmentName.toLowerCase();
// }
// DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
//
// LocalDateTime startDate = LocalDateTime.parse(startDateStr, df);
// LocalDateTime endDate = LocalDateTime.parse(endDateStr, df);
//
// List<ManageCostDto> manageCostDtoList = costApiService.getMangeCostList(startDate, endDate, feeSuperType, feeSubType, companyValue, companyName, departmentName, createUserId, payUserId);
// //todo
return
CostResult
.
success
();
@PostMapping
(
"/manageCostList"
)
public
CostResult
<
List
<
ManageCostDto
>>
manageCostList
(
@RequestBody
ManageCostListReq
req
)
{
//todo
List
<
ManageCostDto
>
manageCostDtoList
=
costApiService
.
manageCostList
(
req
);
return
CostResult
.
success
(
manageCostDtoList
);
}
@LoginIgnore
@SneakyThrows
@ApiOperation
(
"查询所有的物流费用单和采购单"
)
@Override
@GetMapping
(
"/logisticsCostList"
)
public
CostResult
<
List
<
ManageCostDto
>>
logisticsCostList
(
@RequestParam
(
name
=
"startDate"
,
required
=
false
)
String
startDateStr
,
@RequestParam
(
name
=
"endDate"
,
required
=
false
)
String
endDateStr
,
@RequestParam
(
name
=
"feeSuperType"
,
required
=
false
)
String
feeSuperType
,
@RequestParam
(
name
=
"feeSubType"
,
required
=
false
)
String
feeSubType
,
@RequestParam
(
name
=
"companyValue"
,
required
=
false
)
Integer
companyValue
,
@RequestParam
(
name
=
"companyName"
,
required
=
false
)
String
companyName
,
@RequestParam
(
name
=
"departmentName"
,
required
=
false
)
String
departmentName
,
@RequestParam
(
name
=
"createUserId"
,
required
=
false
)
Integer
createUserId
,
@RequestParam
(
name
=
"payUserId"
,
required
=
false
)
Integer
payUserId
)
{
// if (!StringUtils.isEmpty(departmentName)) {
// departmentName = departmentName.toLowerCase();
// }
// DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
//
// LocalDateTime startDate = LocalDateTime.parse(startDateStr, df);
// LocalDateTime endDate = LocalDateTime.parse(endDateStr, df);
//
// List<ManageCostDto> manageCostDtoList = costApiService.getLogisticsCostList(startDate, endDate, feeSuperType, feeSubType, companyValue, companyName, departmentName, createUserId, payUserId);
// return CostResult.success(manageCostDtoList);
return
CostResult
.
success
();
}
@LoginIgnore
@ApiOperation
(
"根据最后更新时间查询费用单"
)
...
...
@@ -135,28 +92,6 @@ public class CostApiController implements CostApi {
@LoginIgnore
@ApiOperation
(
"获取资产负债表相关费用单"
)
@Override
@GetMapping
(
"/balanceSheetCost"
)
public
CostResult
<
List
<
CostDto
>>
balanceSheetCostList
(
@RequestParam
(
name
=
"startDate"
)
String
startDateStr
,
@RequestParam
(
name
=
"endDate"
)
String
endDateStr
)
{
// logger.warn("获取资产负债表相关费用单");
// try {
// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
// Date startDate = sdf.parse(startDateStr);
// Date endDate = sdf.parse(endDateStr);
// List<CostDomain> balanceSheetCostList = costApiService.getBalanceSheetCost(startDate, endDate);
// return CostResult.success(balanceSheetCostList.stream().map(CostDomain::castToDto).collect(Collectors.toList()));
//
// } catch (ParseException e) {
// e.printStackTrace();
// return CostResult.error();
// }
return
CostResult
.
success
();
}
@LoginIgnore
@Override
@ApiOperation
(
"查询原来传输到数据中心时为待支付状态 变成 已支付状态后的费用单"
)
@GetMapping
(
"/noPayCost"
)
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/CostApiService.java
View file @
0f44b3c5
...
...
@@ -2,7 +2,9 @@ package com.blt.other.module.cost.service;
import
com.bailuntec.cost.api.dto.CostDto
;
import
com.bailuntec.cost.api.dto.LogisticsCostDto
;
import
com.bailuntec.cost.api.dto.ManageCostDto
;
import
com.bailuntec.cost.api.dto.WageCostDto
;
import
com.bailuntec.cost.api.request.ManageCostListReq
;
import
com.blt.other.module.cost.model.CostDomain
;
import
java.io.IOException
;
...
...
@@ -52,4 +54,12 @@ public interface CostApiService {
* @return 费用单list
*/
List
<
CostDto
>
getCostList
(
String
startDate
,
String
endDate
,
Integer
pageNum
,
Integer
pageSize
);
/**
* 管理成本
*
* @param req req
* @return res
*/
List
<
ManageCostDto
>
manageCostList
(
ManageCostListReq
req
);
}
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