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
82a203b8
Commit
82a203b8
authored
Aug 30, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev
parents
5f08289a
6d7c161a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
7 deletions
+14
-7
AccessGatewayFilter.java
...hub/wxiaoqi/security/gate/filter/AccessGatewayFilter.java
+2
-0
ResponseRecordFilter.java
...ub/wxiaoqi/security/gate/filter/ResponseRecordFilter.java
+1
-1
CampsiteShopBiz.java
.../java/com/xxfc/platform/campsite/biz/CampsiteShopBiz.java
+1
-1
TourGoodBiz.java
...src/main/java/com/xxfc/platform/tour/biz/TourGoodBiz.java
+1
-1
TypeEnum.java
...api/src/main/java/com/xxfc/platform/uccn/vo/TypeEnum.java
+2
-2
RandomListBiz.java
...c/main/java/com/xxfc/platform/uccn/biz/RandomListBiz.java
+5
-0
ArticleMapper.xml
...x-uccn-server/src/main/resources/mapper/ArticleMapper.xml
+1
-1
VehicleModelBiz.java
...n/java/com/xxfc/platform/vehicle/biz/VehicleModelBiz.java
+1
-1
No files found.
ace-gate/src/main/java/com/github/wxiaoqi/security/gate/filter/AccessGatewayFilter.java
View file @
82a203b8
...
@@ -92,6 +92,8 @@ public class AccessGatewayFilter implements GlobalFilter {
...
@@ -92,6 +92,8 @@ public class AccessGatewayFilter implements GlobalFilter {
@Override
@Override
public
Mono
<
Void
>
filter
(
ServerWebExchange
serverWebExchange
,
GatewayFilterChain
gatewayFilterChain
)
{
public
Mono
<
Void
>
filter
(
ServerWebExchange
serverWebExchange
,
GatewayFilterChain
gatewayFilterChain
)
{
log
.
error
(
"请求进入:AccessGatewayFilter"
);
log
.
info
(
"check token and user permission...."
);
log
.
info
(
"check token and user permission...."
);
LinkedHashSet
requiredAttribute
=
serverWebExchange
.
getRequiredAttribute
(
ServerWebExchangeUtils
.
GATEWAY_ORIGINAL_REQUEST_URL_ATTR
);
LinkedHashSet
requiredAttribute
=
serverWebExchange
.
getRequiredAttribute
(
ServerWebExchangeUtils
.
GATEWAY_ORIGINAL_REQUEST_URL_ATTR
);
ServerHttpRequest
request
=
serverWebExchange
.
getRequest
();
ServerHttpRequest
request
=
serverWebExchange
.
getRequest
();
...
...
ace-gate/src/main/java/com/github/wxiaoqi/security/gate/filter/ResponseRecordFilter.java
View file @
82a203b8
...
@@ -74,7 +74,7 @@ private static final ExchangeStrategies STRATEGIES;
...
@@ -74,7 +74,7 @@ private static final ExchangeStrategies STRATEGIES;
@Override
@Override
public
Mono
<
Void
>
writeWith
(
Publisher
<?
extends
DataBuffer
>
body
)
{
public
Mono
<
Void
>
writeWith
(
Publisher
<?
extends
DataBuffer
>
body
)
{
log
.
error
(
"请求进入:ResponseRecordFilter"
);
HttpHeaders
httpHeaders
=
new
HttpHeaders
();
HttpHeaders
httpHeaders
=
new
HttpHeaders
();
httpHeaders
.
add
(
"Content-Type"
,
"application/json"
);
httpHeaders
.
add
(
"Content-Type"
,
"application/json"
);
ResponseAdapter
responseAdapter
=
new
ResponseAdapter
(
body
,
httpHeaders
);
ResponseAdapter
responseAdapter
=
new
ResponseAdapter
(
body
,
httpHeaders
);
...
...
xx-campsite/xx-campsite-server/src/main/java/com/xxfc/platform/campsite/biz/CampsiteShopBiz.java
View file @
82a203b8
...
@@ -343,7 +343,7 @@ public class CampsiteShopBiz extends BaseBiz<CampsiteShopMapper, CampsiteShop> {
...
@@ -343,7 +343,7 @@ public class CampsiteShopBiz extends BaseBiz<CampsiteShopMapper, CampsiteShop> {
List
<
GoodDataVO
>
list
=
mapper
.
findAll
();
List
<
GoodDataVO
>
list
=
mapper
.
findAll
();
Set
<
GoodDataVO
>
resultList
=
new
HashSet
<>();
Set
<
GoodDataVO
>
resultList
=
new
HashSet
<>();
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
number
=
=
list
.
size
())
{
if
(
number
>
=
list
.
size
())
{
return
ObjectRestResponse
.
succ
(
list
);
return
ObjectRestResponse
.
succ
(
list
);
}
}
Set
<
Integer
>
set
=
new
HashSet
<>();
Set
<
Integer
>
set
=
new
HashSet
<>();
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodBiz.java
View file @
82a203b8
...
@@ -334,7 +334,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
...
@@ -334,7 +334,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
List
<
TourGood
>
list
=
mapper
.
getCoordinateList
(
param
);
List
<
TourGood
>
list
=
mapper
.
getCoordinateList
(
param
);
Set
<
TourGood
>
resultList
=
new
HashSet
<>();
Set
<
TourGood
>
resultList
=
new
HashSet
<>();
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
number
=
=
list
.
size
())
{
if
(
number
>
=
list
.
size
())
{
return
ObjectRestResponse
.
succ
(
list
);
return
ObjectRestResponse
.
succ
(
list
);
}
}
Set
<
Integer
>
set
=
new
HashSet
<>();
Set
<
Integer
>
set
=
new
HashSet
<>();
...
...
xx-uccn/xx-uccn-api/src/main/java/com/xxfc/platform/uccn/vo/TypeEnum.java
View file @
82a203b8
...
@@ -6,8 +6,8 @@ public enum TypeEnum {
...
@@ -6,8 +6,8 @@ public enum TypeEnum {
VEHICLE
(
1
,
"车型"
),
VEHICLE
(
1
,
"车型"
),
TOUR
(
2
,
"旅游"
),
TOUR
(
2
,
"旅游"
),
CAMPSITE
(
3
,
"营地"
),
CAMPSITE
(
3
,
"营地"
),
ACTIVITY
(
4
,
"活动"
)
;
ACTIVITY
(
4
,
"活动"
)
,
NEWS
(
5
,
"新闻"
);
private
Integer
code
;
private
Integer
code
;
private
String
msg
;
private
String
msg
;
...
...
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/biz/RandomListBiz.java
View file @
82a203b8
...
@@ -28,6 +28,9 @@ public class RandomListBiz {
...
@@ -28,6 +28,9 @@ public class RandomListBiz {
@Autowired
@Autowired
SummitActivityBiz
summitActivityBiz
;
SummitActivityBiz
summitActivityBiz
;
@Autowired
ArticleBiz
articleBiz
;
/**
/**
* @param type 类型
* @param type 类型
...
@@ -46,6 +49,8 @@ public class RandomListBiz {
...
@@ -46,6 +49,8 @@ public class RandomListBiz {
return
campsiteFeign
.
findRandomVehicle
(
number
);
return
campsiteFeign
.
findRandomVehicle
(
number
);
case
ACTIVITY:
case
ACTIVITY:
return
ObjectRestResponse
.
succ
(
summitActivityBiz
.
getHostWithSummitActivity
(
number
,
location
));
return
ObjectRestResponse
.
succ
(
summitActivityBiz
.
getHostWithSummitActivity
(
number
,
location
));
case
NEWS:
}
}
}
}
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
...
...
xx-uccn/xx-uccn-server/src/main/resources/mapper/ArticleMapper.xml
View file @
82a203b8
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<mapper
namespace=
"com.xxfc.platform.uccn.mapper.ArticleMapper"
>
<mapper
namespace=
"com.xxfc.platform.uccn.mapper.ArticleMapper"
>
<select
id=
"getArticleList"
resultType=
"com.xxfc.platform.uccn.entity.Article"
>
<select
id=
"getArticleList"
resultType=
"com.xxfc.platform.uccn.entity.Article"
>
select title,epitome,add_time,cover_image from article
select
id,
title,epitome,add_time,cover_image from article
where is_del=0 and status=1 and (type=#{type} or type=0) order by weight ASC ,add_time DESC
where is_del=0 and status=1 and (type=#{type} or type=0) order by weight ASC ,add_time DESC
</select>
</select>
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleModelBiz.java
View file @
82a203b8
...
@@ -83,7 +83,7 @@ public class VehicleModelBiz extends BaseBiz<VehicleModelMapper, VehicleModel> {
...
@@ -83,7 +83,7 @@ public class VehicleModelBiz extends BaseBiz<VehicleModelMapper, VehicleModel> {
List
<
VehicleModelVo
>
list
=
mapper
.
findVehicleModelPage
(
vmqc
);
List
<
VehicleModelVo
>
list
=
mapper
.
findVehicleModelPage
(
vmqc
);
Set
<
VehicleModelVo
>
resultList
=
new
HashSet
<>();
Set
<
VehicleModelVo
>
resultList
=
new
HashSet
<>();
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
if
(
number
=
=
list
.
size
())
{
if
(
number
>
=
list
.
size
())
{
return
ObjectRestResponse
.
succ
(
list
);
return
ObjectRestResponse
.
succ
(
list
);
}
}
Set
<
Integer
>
set
=
new
HashSet
<>();
Set
<
Integer
>
set
=
new
HashSet
<>();
...
...
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