Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
1994627b
Commit
1994627b
authored
Aug 27, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into jrz_dev
parents
39badd50
27ba3274
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
9 deletions
+17
-9
ServiceAuthRestInterceptor.java
...y/auth/client/interceptor/ServiceAuthRestInterceptor.java
+4
-4
UserAuthRestInterceptor.java
...rity/auth/client/interceptor/UserAuthRestInterceptor.java
+4
-4
BranchCompany.java
.../java/com/xxfc/platform/vehicle/entity/BranchCompany.java
+5
-1
CompanyVo.java
...ain/java/com/xxfc/platform/vehicle/pojo/vo/CompanyVo.java
+2
-0
BranchCompanyStockApplyInfoBiz.java
.../platform/vehicle/biz/BranchCompanyStockApplyInfoBiz.java
+1
-0
CompanyBaseMapper.xml
...le-server/src/main/resources/mapper/CompanyBaseMapper.xml
+1
-0
No files found.
ace-auth/ace-auth-client/src/main/java/com/github/wxiaoqi/security/auth/client/interceptor/ServiceAuthRestInterceptor.java
View file @
1994627b
...
...
@@ -32,7 +32,7 @@ public class ServiceAuthRestInterceptor extends HandlerInterceptorAdapter {
@Override
public
boolean
preHandle
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Object
handler
)
throws
Exception
{
if
(
handler
instanceof
HandlerMethod
)
{
//
if (handler instanceof HandlerMethod) {
HandlerMethod
handlerMethod
=
(
HandlerMethod
)
handler
;
// 配置该注解,说明不进行服务拦截
IgnoreClientToken
annotation
=
handlerMethod
.
getBeanType
().
getAnnotation
(
IgnoreClientToken
.
class
);
...
...
@@ -52,8 +52,8 @@ public class ServiceAuthRestInterceptor extends HandlerInterceptorAdapter {
}
}
throw
new
ClientForbiddenException
(
"Client is Forbidden!"
);
}
else
{
return
super
.
preHandle
(
request
,
response
,
handler
);
}
//
} else {
//
return super.preHandle(request, response, handler);
//
}
}
}
ace-auth/ace-auth-client/src/main/java/com/github/wxiaoqi/security/auth/client/interceptor/UserAuthRestInterceptor.java
View file @
1994627b
...
...
@@ -31,7 +31,7 @@ public class UserAuthRestInterceptor extends HandlerInterceptorAdapter {
@Override
public
boolean
preHandle
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Object
handler
)
throws
Exception
{
if
(
handler
instanceof
HandlerMethod
)
{
//
if (handler instanceof HandlerMethod) {
HandlerMethod
handlerMethod
=
(
HandlerMethod
)
handler
;
// 配置该注解,说明不进行用户拦截
IgnoreUserToken
annotation
=
handlerMethod
.
getBeanType
().
getAnnotation
(
IgnoreUserToken
.
class
);
...
...
@@ -64,9 +64,9 @@ public class UserAuthRestInterceptor extends HandlerInterceptorAdapter {
BaseContextHandler
.
setToken
(
token
);
// 这里可以添加RequestType
return
super
.
preHandle
(
request
,
response
,
handler
);
}
else
{
return
super
.
preHandle
(
request
,
response
,
handler
);
}
//
}else {
//
return super.preHandle(request, response, handler);
//
}
}
@Override
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/entity/BranchCompany.java
View file @
1994627b
...
...
@@ -150,7 +150,11 @@ public class BranchCompany {
* 上下架:1-上架;2-下架
*/
private
Integer
state
;
/**
* 是否app展示:1-是;2-否
*/
@Column
(
name
=
"is_show"
)
private
Integer
isShow
;
/**
* 是否删除:0-正常;1-删除
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/vo/CompanyVo.java
View file @
1994627b
...
...
@@ -55,6 +55,8 @@ public class CompanyVo extends PageParam {
String
addrDetail
;
@ApiModelProperty
(
"上下架:1-上架;2-下架"
)
Integer
state
;
@ApiModelProperty
(
"是否app展示:1-是;2-否"
)
Integer
isShow
;
@ApiModelProperty
(
"负责人"
)
private
String
leader
;
@ApiModelProperty
(
"负责人联系方式"
)
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyStockApplyInfoBiz.java
View file @
1994627b
...
...
@@ -46,6 +46,7 @@ public class BranchCompanyStockApplyInfoBiz extends BaseBiz<BranchCompanyStockAp
BeanUtils
.
copyProperties
(
applyVo
,
applyInfo
);
applyInfo
.
setState
(
BranchCompanyStockApplyState
.
Apply
.
getCode
());
applyInfo
.
setCreateTime
(
new
Date
());
applyInfo
.
setCompanyId
(
applyVo
.
getStockRightId
());
mapper
.
insertSelective
(
applyInfo
);
}
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/CompanyBaseMapper.xml
View file @
1994627b
...
...
@@ -9,6 +9,7 @@
c.addr_detail as addrDetail,
c.state,
c.status,
c.is_show as isShow,
c.leader,
c.leader_contact_info as leaderContactInfo,
c.latitude,
...
...
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