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
e3ed459e
Commit
e3ed459e
authored
Dec 22, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
4b5f9d11
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
82 additions
and
161 deletions
+82
-161
JwtUtil.java
...core/src/main/java/com/blt/other/common/util/JwtUtil.java
+0
-19
UserTestController.java
.../blt/other/module/auth/controller/UserTestController.java
+0
-56
IndexController.java
.../blt/other/module/commons/controller/IndexController.java
+19
-19
CostApiController.java
...m/blt/other/module/cost/controller/CostApiController.java
+2
-0
CostCheckController.java
...blt/other/module/cost/controller/CostCheckController.java
+1
-1
CostCurrentReviewerController.java
...module/cost/controller/CostCurrentReviewerController.java
+1
-1
CostDetailController.java
...lt/other/module/cost/controller/CostDetailController.java
+4
-5
CostFinansysDetailController.java
.../module/cost/controller/CostFinansysDetailController.java
+13
-12
CostPlanController.java
.../blt/other/module/cost/controller/CostPlanController.java
+4
-4
CostPlanTempController.java
.../other/module/cost/controller/CostPlanTempController.java
+1
-1
CostReportController.java
...lt/other/module/cost/controller/CostReportController.java
+2
-0
CostTemplateColController.java
...her/module/cost/controller/CostTemplateColController.java
+1
-1
CostTemplateController.java
.../other/module/cost/controller/CostTemplateController.java
+1
-1
CostTypeController.java
.../blt/other/module/cost/controller/CostTypeController.java
+1
-1
UserCostFinansysController.java
...er/module/cost/controller/UserCostFinansysController.java
+2
-1
SpecDepartmentCheckConfigMapper.java
...ther/module/cost/dao/SpecDepartmentCheckConfigMapper.java
+1
-4
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+1
-4
CostTemplateServiceImpl.java
...st/service/impl/costtemplate/CostTemplateServiceImpl.java
+1
-1
DepartmentReviewerController.java
...r/module/sys/controller/DepartmentReviewerController.java
+2
-0
SpecDepartmentCheckConfigController.java
...e/sys/controller/SpecDepartmentCheckConfigController.java
+3
-3
UserController.java
...a/com/blt/other/module/sys/controller/UserController.java
+10
-10
SpecDepartmentCheckConfig.java
...blt/other/module/sys/model/SpecDepartmentCheckConfig.java
+1
-1
ISpecDepartmentCheckConfigService.java
...module/sys/service/ISpecDepartmentCheckConfigService.java
+2
-3
UserService.java
...in/java/com/blt/other/module/sys/service/UserService.java
+1
-1
SpecDepartmentCheckConfigServiceImpl.java
...ys/service/impl/SpecDepartmentCheckConfigServiceImpl.java
+3
-3
UserServiceImpl.java
...om/blt/other/module/sys/service/impl/UserServiceImpl.java
+2
-2
SpecDepartmentCheckConfigMapper.xml
...es/mapper/module/cost/SpecDepartmentCheckConfigMapper.xml
+1
-1
AbstractCostServiceTest.java
...odule/cost/service/impl/cost/AbstractCostServiceTest.java
+2
-6
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/common/util/JwtUtil.java
View file @
e3ed459e
...
...
@@ -9,8 +9,6 @@ import org.jose4j.jwt.JwtClaims;
import
org.jose4j.jwt.consumer.JwtConsumer
;
import
org.jose4j.jwt.consumer.JwtConsumerBuilder
;
import
java.lang.reflect.ParameterizedType
;
import
java.lang.reflect.Type
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -31,23 +29,6 @@ public class JwtUtil {
public
static
final
String
TOKEN_PREFIX
=
"Bearer "
;
private
static
final
String
PUBLIC_KEY
=
"{\"kty\":\"RSA\",\"use\":\"sig\",\"kid\":\"0a968baa62e99029a973415887029fbd\",\"e\":\"AQAB\",\"n\":\"1hr9F7WGP6jpixp8kxN2E0BUB23EYiR0jSfdZQsN0ljnZfyqORK6fETVMDxDHB-ueekqieKh7UYJO3Cc3ecC2WCP7Z0KDsGcQBFJd0a9_BBktYv1rDnteJF3v43XkM1gi6gBEtXUb_l-mfpp14His6HtGH8W0v0klBOQ8UsBHDZvOHr2ns_qWPn0i6N86EUe1W47dGSy7fbms3nYQEncNFpnug6x39fJyFxpKjHS_63f2r3QRdf8UlHbjoVsHjg9sJ7pznrxDIIK8heRqH4JiutV8LhagPBVSm8UVHNwdi5IfjmVpYDirBrZDJZq7FwhyZE7ua29a3wP2I08qS9yJw\",\"alg\":\"RS256\"}"
;
/*
* 获取泛型类Class对象,不是泛型类则返回null
*/
public
static
Class
<?>
getActualTypeArgument
(
Class
<?>
clazz
)
{
Class
<?>
entitiClass
=
null
;
Type
genericSuperclass
=
clazz
.
getGenericSuperclass
();
if
(
genericSuperclass
instanceof
ParameterizedType
)
{
Type
[]
actualTypeArguments
=
((
ParameterizedType
)
genericSuperclass
)
.
getActualTypeArguments
();
if
(
actualTypeArguments
!=
null
&&
actualTypeArguments
.
length
>
0
)
{
entitiClass
=
(
Class
<?>)
actualTypeArguments
[
0
];
}
}
return
entitiClass
;
}
/**
* 功能描述: 解密Bailun Sso Token
*
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/auth/controller/UserTestController.java
deleted
100644 → 0
View file @
4b5f9d11
package
com
.
blt
.
other
.
module
.
auth
.
controller
;
import
com.blt.other.module.auth.vo.UserAuthMsg
;
import
com.fasterxml.jackson.databind.JavaType
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.http.*
;
import
org.springframework.util.LinkedMultiValueMap
;
import
org.springframework.util.MultiValueMap
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.client.RestTemplate
;
import
java.io.IOException
;
import
java.util.Collection
;
import
java.util.List
;
@RestController
@RequestMapping
(
value
=
"test"
)
public
class
UserTestController
{
@ApiOperation
(
"获取用户角色信息"
)
@GetMapping
(
"getAuth"
)
public
List
<
UserAuthMsg
>
getAuth
()
{
String
url
=
"http://www.bailuntec.com/api/Authorize/UserModuleAuthorize"
;
RestTemplate
client
=
new
RestTemplate
();
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
setContentType
(
MediaType
.
APPLICATION_FORM_URLENCODED
);
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<>();
params
.
add
(
"UserAccount"
,
"符式酉"
);
HttpEntity
<
MultiValueMap
<
String
,
String
>>
requestEntity
=
new
HttpEntity
<>(
params
,
headers
);
ResponseEntity
<
String
>
response
=
client
.
exchange
(
url
,
HttpMethod
.
POST
,
requestEntity
,
String
.
class
);
String
strBody
=
response
.
getBody
();
assert
strBody
!=
null
;
strBody
=
strBody
.
replace
(
"\\"
,
""
);
int
dataIndex
=
strBody
.
indexOf
(
"Data"
);
int
i
=
strBody
.
lastIndexOf
(
"]"
);
strBody
=
strBody
.
substring
(
dataIndex
+
7
,
i
+
1
);
List
<
UserAuthMsg
>
list
=
null
;
strBody
=
strBody
.
toLowerCase
();
ObjectMapper
mapper
=
new
ObjectMapper
();
// 使用 ObjectMapper 将 JSON 数据转为 List<BuyUserDomain> 类型
JavaType
javaType
=
mapper
.
getTypeFactory
().
constructParametricType
(
Collection
.
class
,
UserAuthMsg
.
class
);
try
{
list
=
mapper
.
readValue
(
strBody
,
javaType
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
return
null
;
}
return
list
;
}
}
bailuntec-cost-core/src/main/java/com/blt/other/module/commons/controller/IndexController.java
View file @
e3ed459e
package
com
.
blt
.
other
.
module
.
commons
.
controller
;
import
com.blt.other.module.commons.service.IndexService
;
import
com.blt.other.common.util.AxiosUtil
;
import
com.bailuntec.cost.api.dto.CostDto
;
import
com.bailuntec.cost.api.dto.CostPlanDto
;
import
com.blt.other.common.util.AxiosUtil
;
import
com.blt.other.module.commons.service.IndexService
;
import
com.blt.other.module.purchasing.dto.BuyPlanDto
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.HashMap
;
...
...
@@ -20,39 +20,39 @@ import java.util.Map;
@RequestMapping
(
"/index"
)
public
class
IndexController
{
@
Autowired
@
Resource
private
IndexService
indexService
;
@GetMapping
(
"/getBuyPlanList"
)
public
Map
<
String
,
Object
>
getBuyPlanList
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
AxiosUtil
.
setCors
(
response
,
request
);
public
Map
<
String
,
Object
>
getBuyPlanList
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
AxiosUtil
.
setCors
(
response
,
request
);
String
userid
=
request
.
getParameter
(
"userid"
);
List
<
BuyPlanDto
>
buyPlanList
=
indexService
.
getBuyPlanList
(
Integer
.
parseInt
(
userid
));
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"buyPlanList"
,
buyPlanList
);
result
.
put
(
"success"
,
true
);
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"buyPlanList"
,
buyPlanList
);
result
.
put
(
"success"
,
true
);
return
result
;
}
@GetMapping
(
"/getCostPlanList"
)
public
Map
<
String
,
Object
>
getCostPlanList
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
AxiosUtil
.
setCors
(
response
,
request
);
public
Map
<
String
,
Object
>
getCostPlanList
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
AxiosUtil
.
setCors
(
response
,
request
);
String
userid
=
request
.
getParameter
(
"userid"
);
List
<
CostPlanDto
>
costPlanDtos
=
indexService
.
getCostPlanList
(
Integer
.
parseInt
(
userid
));
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"costPlanList"
,
costPlanDtos
);
result
.
put
(
"success"
,
true
);
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"costPlanList"
,
costPlanDtos
);
result
.
put
(
"success"
,
true
);
return
result
;
}
@GetMapping
(
"/getCostList"
)
public
Map
<
String
,
Object
>
getCostList
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
AxiosUtil
.
setCors
(
response
,
request
);
public
Map
<
String
,
Object
>
getCostList
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
AxiosUtil
.
setCors
(
response
,
request
);
String
userid
=
request
.
getParameter
(
"userid"
);
List
<
CostDto
>
costDtos
=
indexService
.
getCostList
(
Integer
.
parseInt
(
userid
));
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"costList"
,
costDtos
);
result
.
put
(
"success"
,
true
);
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"costList"
,
costDtos
);
result
.
put
(
"success"
,
true
);
return
result
;
}
}
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostApiController.java
View file @
e3ed459e
...
...
@@ -8,6 +8,7 @@ import com.bailuntec.cost.api.dto.WageCostDto;
import
com.bailuntec.cost.api.response.CostResult
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.service.CostApiService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.SneakyThrows
;
import
org.slf4j.Logger
;
...
...
@@ -24,6 +25,7 @@ import java.util.Date;
import
java.util.List
;
import
java.util.stream.Collectors
;
@Api
(
tags
=
"外部调用api"
)
@RestController
@RequestMapping
(
"/cost/api"
)
public
class
CostApiController
implements
CostApi
{
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostCheckController.java
View file @
e3ed459e
...
...
@@ -26,7 +26,7 @@ import javax.servlet.http.HttpServletResponse;
import
java.io.IOException
;
import
java.util.Date
;
@Api
(
tags
=
"
费用审核
接口"
)
@Api
(
tags
=
"
审核费用单
接口"
)
@RestController
@RequestMapping
(
"/cost/check"
)
public
class
CostCheckController
{
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostCurrentReviewerController.java
View file @
e3ed459e
...
...
@@ -21,7 +21,7 @@ import javax.annotation.Resource;
* @author robbendev
* @since 2020-12-16
*/
@Api
(
tags
=
"
费用单
当前审核人接口"
)
@Api
(
tags
=
"当前审核人接口"
)
@RestController
@RequestMapping
(
"/costCurrentReviewer"
)
public
class
CostCurrentReviewerController
{
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostDetailController.java
View file @
e3ed459e
...
...
@@ -2,15 +2,15 @@ package com.blt.other.module.cost.controller;
import
com.blt.other.common.util.AxiosUtil
;
import
com.blt.other.common.util.PathUtil
;
import
com.blt.other.module.auth.service.UserService
;
import
com.blt.other.database.model.CostTypeKindDomain
;
import
com.blt.other.database.model.UserDomain
;
import
com.blt.other.module.cost.model.CostDetailDomain
;
import
com.blt.other.module.cost.service.CostDetailService
;
import
com.blt.other.module.cost.service.CostLogService
;
import
com.blt.other.module.cost.service.CostService
;
import
com.blt.other.module.cost.service.CostTypeKindService
;
import
com.blt.other.module.cost.utils.CostFileUtil
;
import
com.blt.other.database.model.CostTypeKindDomain
;
import
com.blt.other.database.model.UserDomain
;
import
com.blt.other.module.sys.service.UserService
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.core.io.FileSystemResource
;
...
...
@@ -30,13 +30,12 @@ import java.util.List;
import
java.util.Map
;
@RestController
@Api
(
tags
=
"
费用
详情接口"
)
@Api
(
tags
=
"
付款单
详情接口"
)
@RequestMapping
(
"/cost/detail"
)
public
class
CostDetailController
{
@Autowired
private
CostDetailService
costDetailService
;
@Autowired
private
CostTypeKindService
costTypeKindService
;
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostFinansysDetailController.java
View file @
e3ed459e
package
com
.
blt
.
other
.
module
.
cost
.
controller
;
import
com.bailuntec.cost.api.dto.CostDto
;
import
com.blt.other.module.auth.service.UserService
;
import
com.blt.other.module.commons.dto.FinansysDetailDto
;
import
com.blt.other.module.commons.dto.FinansysDetailDtoData
;
import
com.blt.other.common.util.AxiosUtil
;
import
com.blt.other.common.util.CurUtils
;
import
com.blt.other.database.model.CostApplycallbackDomain
;
import
com.blt.other.database.model.UserDomain
;
import
com.blt.other.module.commons.dto.FinansysDetailDto
;
import
com.blt.other.module.commons.dto.FinansysDetailDtoData
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.service.CostApplycallbackService
;
import
com.blt.other.module.cost.service.CostLogService
;
import
com.blt.other.module.cost.service.CostService
;
import
com.blt.other.database.model.CostApplycallbackDomain
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.database.model.UserDomain
;
import
com.blt.other.module.sys.service.UserService
;
import
io.swagger.annotations.Api
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.math.BigDecimal
;
@Api
(
tags
=
"财务信息接口"
)
@RestController
@RequestMapping
(
"cost/finansys/"
)
public
class
CostFinansysDetailController
{
private
Logger
logger
=
LoggerFactory
.
getLogger
(
CostFinansysDetailController
.
class
);
@
Autowired
@
Resource
private
CostApplycallbackService
costApplycallbackService
;
@Autowired
@Resource
private
CostService
costService
;
@
Autowired
@
Resource
private
CostLogService
costLogService
;
@
Autowired
@
Resource
private
UserService
userService
;
@PostMapping
(
"detail"
)
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostPlanController.java
View file @
e3ed459e
...
...
@@ -20,6 +20,7 @@ import org.springframework.http.MediaType;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
...
...
@@ -32,12 +33,11 @@ import java.util.List;
@RequestMapping
(
"/cost/plan"
)
public
class
CostPlanController
{
@
Autowired
@
Resource
private
CostPlanService
costPlanService
;
@
Autowired
@
Resource
private
CostPlanSearchService
costPlanSearchService
;
@Autowired
@Resource
private
CostPlanTempService
costPlanTempService
;
@ApiOperation
(
"查询所有费用计划"
)
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostPlanTempController.java
View file @
e3ed459e
...
...
@@ -23,7 +23,7 @@ import org.springframework.web.bind.annotation.*;
import
java.io.IOException
;
import
java.math.BigDecimal
;
@Api
(
tags
=
"
费用计划
接口"
)
@Api
(
tags
=
"
付款计划详情
接口"
)
@RestController
@RequestMapping
(
"/cost/plan/temp"
)
@Slf4j
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostReportController.java
View file @
e3ed459e
...
...
@@ -11,6 +11,7 @@ import com.blt.other.module.cost.service.CostService;
import
com.blt.other.module.cost.service.impl.cost.CostServiceFactory
;
import
com.blt.other.module.cost.vo.CostExportVo
;
import
com.blt.other.database.model.CostExpDomain
;
import
io.swagger.annotations.Api
;
import
org.springframework.core.io.FileSystemResource
;
import
org.springframework.core.io.InputStreamResource
;
import
org.springframework.http.HttpHeaders
;
...
...
@@ -35,6 +36,7 @@ import java.util.List;
* @author robbendev
* @since 2020/12/16 1:59 下午
*/
@Api
(
tags
=
"报表接口"
)
@RestController
public
class
CostReportController
{
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostTemplateColController.java
View file @
e3ed459e
...
...
@@ -20,7 +20,7 @@ import java.util.List;
* @author robbendev
* @since 2020-10-14
*/
@Api
(
tags
=
"
费用单
模版字段接口"
)
@Api
(
tags
=
"模版字段接口"
)
@RestController
@RequestMapping
(
"/costTemplateCol"
)
public
class
CostTemplateColController
{
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostTemplateController.java
View file @
e3ed459e
...
...
@@ -20,7 +20,7 @@ import java.util.List;
* @author robbendev
* @since 2020-10-14
*/
@Api
(
tags
=
"
费用单
模版接口"
)
@Api
(
tags
=
"模版接口"
)
@RestController
@RequestMapping
(
"/costTemplate"
)
public
class
CostTemplateController
{
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostTypeController.java
View file @
e3ed459e
...
...
@@ -19,7 +19,7 @@ import java.util.HashMap;
import
java.util.Map
;
@Slf4j
@Api
(
tags
=
"
费用
类型接口"
)
@Api
(
tags
=
"类型接口"
)
@RestController
@RequestMapping
(
"/cost/type"
)
public
class
CostTypeController
{
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/UserCostFinansysController.java
View file @
e3ed459e
...
...
@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.HashMap
;
...
...
@@ -23,7 +24,7 @@ import java.util.Map;
@RequestMapping
(
"user/cost/finansys"
)
public
class
UserCostFinansysController
{
@
Autowired
@
Resource
private
UserCostFinansysService
userCostFinansysService
;
@PostMapping
(
"/getFinansysRecord"
)
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/dao/SpecDepartmentCheckConfigMapper.java
View file @
e3ed459e
package
com
.
blt
.
other
.
module
.
cost
.
dao
;
import
com.blt.other.module.cost.dto.request.SpecDepartmentCheckExportExcelReq
;
import
com.blt.other.module.cost.model.SpecDepartmentCheckConfig
;
import
com.blt.other.module.sys.model.SpecDepartmentCheckConfig
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
java.util.List
;
/**
* <p>
* Mapper 接口
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
e3ed459e
...
...
@@ -19,7 +19,7 @@ import com.blt.other.module.auth.dao.OaDepartmentMapper;
import
com.blt.other.module.auth.dao.OaUserMapper
;
import
com.blt.other.module.auth.model.OaDepartment
;
import
com.blt.other.module.auth.model.OaUser
;
import
com.blt.other.module.
auth
.service.UserService
;
import
com.blt.other.module.
sys
.service.UserService
;
import
com.blt.other.module.cost.dao.*
;
import
com.blt.other.module.cost.dto.request.CheckCostListReq
;
import
com.blt.other.module.cost.dto.response.CostPageResult
;
...
...
@@ -235,9 +235,6 @@ public abstract class AbstractCostService implements CostService {
costDomain
.
setAmountRmb
(
costDomain
.
getAmount
().
multiply
(
toRmbRate
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
));
costDomain
.
setKindNo
(
costDetailDomains
.
get
(
0
).
getKindNo
());
costDomain
.
setKindName
(
costDetailDomains
.
get
(
0
).
getKindName
());
costDomain
.
setTypeNo
(
costDetailDomains
.
get
(
0
).
getTypeNo
());
costDomain
.
setTypeName
(
costDetailDomains
.
get
(
0
).
getTypeName
());
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costtemplate/CostTemplateServiceImpl.java
View file @
e3ed459e
...
...
@@ -3,7 +3,7 @@ package com.blt.other.module.cost.service.impl.costtemplate;
import
com.bailuntec.common.StringUtils
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.blt.other.module.
auth
.service.UserService
;
import
com.blt.other.module.
sys
.service.UserService
;
import
com.blt.other.module.cost.dao.CostTemplateMapper
;
import
com.blt.other.module.cost.dto.request.QueryListReq
;
import
com.blt.other.module.cost.model.CostTemplate
;
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/sys/controller/DepartmentReviewerController.java
View file @
e3ed459e
...
...
@@ -8,6 +8,7 @@ import com.blt.other.module.sys.dto.request.DepartmentReviewerListReq;
import
com.blt.other.module.sys.dto.request.ModifyDepartmentReviewerReq
;
import
com.blt.other.module.sys.dto.response.DepartmentReviewerListItem
;
import
com.blt.other.module.sys.service.IDepartmentReviewerService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
@@ -24,6 +25,7 @@ import javax.annotation.Resource;
* @author robbendev
* @since 2020-12-21
*/
@Api
(
tags
=
"部门审核配置"
)
@RestController
@RequestMapping
(
"/departmentReviewer"
)
public
class
DepartmentReviewerController
{
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/
cost
/controller/SpecDepartmentCheckConfigController.java
→
bailuntec-cost-core/src/main/java/com/blt/other/module/
sys
/controller/SpecDepartmentCheckConfigController.java
View file @
e3ed459e
package
com
.
blt
.
other
.
module
.
cost
.
controller
;
package
com
.
blt
.
other
.
module
.
sys
.
controller
;
import
com.bailuntec.cost.api.response.CostResult
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.blt.other.module.cost.dto.request.*
;
import
com.blt.other.module.
cost
.model.SpecDepartmentCheckConfig
;
import
com.blt.other.module.
cost
.service.ISpecDepartmentCheckConfigService
;
import
com.blt.other.module.
sys
.model.SpecDepartmentCheckConfig
;
import
com.blt.other.module.
sys
.service.ISpecDepartmentCheckConfigService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/
auth
/controller/UserController.java
→
bailuntec-cost-core/src/main/java/com/blt/other/module/
sys
/controller/UserController.java
View file @
e3ed459e
package
com
.
blt
.
other
.
module
.
auth
.
controller
;
package
com
.
blt
.
other
.
module
.
sys
.
controller
;
import
com.bailuntec.cost.api.response.CostResult
;
import
com.blt.other.common.config.property.CostUrlProperties
;
import
com.blt.other.common.util.AxiosUtil
;
import
com.blt.other.module.auth.service.UserService
;
import
com.blt.other.database.model.BuyUserDomain
;
import
com.blt.other.database.model.UserDomain
;
import
com.blt.other.module.sys.service.UserService
;
import
com.blt.other.module.auth.service.UserSyncService
;
import
com.blt.other.module.auth.vo.GetByBLUserAcct
;
import
com.blt.other.module.auth.vo.UserGetByBLUserAcct
;
import
com.blt.other.database.model.BuyUserDomain
;
import
com.blt.other.database.model.UserDomain
;
import
com.blt.other.module.supplier.service.BuyUserService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -33,23 +33,22 @@ public class UserController {
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
UserController
.
class
);
@
Autowired
@
Resource
private
UserService
userService
;
@
Autowired
@
Resource
private
UserSyncService
userSyncService
;
@Autowired
private
BuyUserService
buyUserService
;
@PostMapping
(
"getOne"
)
public
UserDomain
getOneByuserCode
(
@RequestParam
String
usercode
)
{
UserDomain
user
=
userService
.
findOne
(
usercode
);
return
user
;
return
userService
.
findOne
(
usercode
);
}
@GetMapping
(
"/getAllUser"
)
public
List
<
UserDomain
>
getAllUser
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
public
List
<
UserDomain
>
getAllUser
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
List
<
UserDomain
>
allUser
=
userService
.
findAllUser
();
return
allUser
;
}
...
...
@@ -207,6 +206,7 @@ public class UserController {
@Resource
CostUrlProperties
costUrlProperties
;
private
void
delCookie
(
HttpServletResponse
response
)
{
Cookie
baiLunLoginUserKey
=
new
Cookie
(
"BaiLunLoginUserKey"
,
"baiLunLoginUserKey"
);
baiLunLoginUserKey
.
setPath
(
"/"
);
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/
cost
/model/SpecDepartmentCheckConfig.java
→
bailuntec-cost-core/src/main/java/com/blt/other/module/
sys
/model/SpecDepartmentCheckConfig.java
View file @
e3ed459e
package
com
.
blt
.
other
.
module
.
cost
.
model
;
package
com
.
blt
.
other
.
module
.
sys
.
model
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/
cost
/service/ISpecDepartmentCheckConfigService.java
→
bailuntec-cost-core/src/main/java/com/blt/other/module/
sys
/service/ISpecDepartmentCheckConfigService.java
View file @
e3ed459e
package
com
.
blt
.
other
.
module
.
cost
.
service
;
package
com
.
blt
.
other
.
module
.
sys
.
service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.blt.other.module.cost.dto.request.*
;
import
com.blt.other.module.
cost
.model.SpecDepartmentCheckConfig
;
import
com.blt.other.module.
sys
.model.SpecDepartmentCheckConfig
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
/**
* <p>
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/
auth
/service/UserService.java
→
bailuntec-cost-core/src/main/java/com/blt/other/module/
sys
/service/UserService.java
View file @
e3ed459e
package
com
.
blt
.
other
.
module
.
auth
.
service
;
package
com
.
blt
.
other
.
module
.
sys
.
service
;
import
com.blt.other.module.auth.vo.UserGetByBLUserAcct
;
import
com.blt.other.database.model.UserDomain
;
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/
cost
/service/impl/SpecDepartmentCheckConfigServiceImpl.java
→
bailuntec-cost-core/src/main/java/com/blt/other/module/
sys
/service/impl/SpecDepartmentCheckConfigServiceImpl.java
View file @
e3ed459e
package
com
.
blt
.
other
.
module
.
cost
.
service
.
impl
;
package
com
.
blt
.
other
.
module
.
sys
.
service
.
impl
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.annotation.ExcelProperty
;
...
...
@@ -14,9 +14,9 @@ import com.blt.other.module.auth.model.OaUser;
import
com.blt.other.module.auth.service.IOaCompanyService
;
import
com.blt.other.module.cost.dao.SpecDepartmentCheckConfigMapper
;
import
com.blt.other.module.cost.dto.request.*
;
import
com.blt.other.module.
cost
.model.SpecDepartmentCheckConfig
;
import
com.blt.other.module.
sys
.model.SpecDepartmentCheckConfig
;
import
com.blt.other.module.cost.service.CostCompanyService
;
import
com.blt.other.module.
cost
.service.ISpecDepartmentCheckConfigService
;
import
com.blt.other.module.
sys
.service.ISpecDepartmentCheckConfigService
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.slf4j.Logger
;
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/
auth
/service/impl/UserServiceImpl.java
→
bailuntec-cost-core/src/main/java/com/blt/other/module/
sys
/service/impl/UserServiceImpl.java
View file @
e3ed459e
package
com
.
blt
.
other
.
module
.
auth
.
service
.
impl
;
package
com
.
blt
.
other
.
module
.
sys
.
service
.
impl
;
import
com.blt.other.module.auth.dao.UserDao
;
import
com.blt.other.module.
auth
.service.UserService
;
import
com.blt.other.module.
sys
.service.UserService
;
import
com.blt.other.module.auth.vo.UserGetByBLUserAcct
;
import
com.blt.other.database.model.UserDomain
;
import
org.slf4j.Logger
;
...
...
bailuntec-cost-core/src/main/resources/mapper/module/cost/SpecDepartmentCheckConfigMapper.xml
View file @
e3ed459e
...
...
@@ -2,5 +2,5 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.blt.other.module.cost.dao.SpecDepartmentCheckConfigMapper"
>
<select
id=
"exportExcel"
resultType=
"com.blt.other.module.
cost
.model.SpecDepartmentCheckConfig"
></select>
<select
id=
"exportExcel"
resultType=
"com.blt.other.module.
sys
.model.SpecDepartmentCheckConfig"
></select>
</mapper>
bailuntec-cost-core/src/test/java/com/blt/other/module/cost/service/impl/cost/AbstractCostServiceTest.java
View file @
e3ed459e
...
...
@@ -4,6 +4,7 @@ import com.bailuntec.api.bailuntec.cw.request.ApplyMoneyDetail;
import
com.bailuntec.api.bailuntec.cw.request.PostApplyReq
;
import
com.bailuntec.common.JsonUtilByFsJson
;
import
com.blt.other.common.config.property.CostUrlProperties
;
import
com.blt.other.database.model.CostCompanyDomain
;
import
com.blt.other.module.cost.dao.CostCompanyDao
;
import
com.blt.other.module.cost.dao.CostDao
;
import
com.blt.other.module.cost.model.CostDomain
;
...
...
@@ -11,7 +12,6 @@ import com.blt.other.module.cost.vo.CashierCallbackUrlDataDataVo;
import
com.blt.other.module.cost.vo.CashierCallbackUrlDataVo
;
import
com.blt.other.module.cost.vo.CashierCallbackUrlVo
;
import
com.blt.other.module.cost.vo.Paydetail
;
import
com.blt.other.database.model.CostCompanyDomain
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.jupiter.api.Test
;
import
org.junit.runner.RunWith
;
...
...
@@ -155,9 +155,5 @@ class AbstractCostServiceTest {
void
cashierCallbackPass
()
{
}
@Test
void
resetCost
()
{
CostService
costService
=
CostServiceFactory
.
getCostService
();
costService
.
resetCost
(
"F016523"
);
}
}
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