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
c802500d
Commit
c802500d
authored
Aug 28, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
ad1c33e0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
156 additions
and
0 deletions
+156
-0
TourFeign.java
...src/main/java/com/xxfc/platform/tour/feign/TourFeign.java
+21
-0
TourTagBiz.java
.../src/main/java/com/xxfc/platform/tour/biz/TourTagBiz.java
+10
-0
TourGwController.java
...in/java/com/xxfc/platform/tour/rest/TourGwController.java
+68
-0
pom.xml
xx-uccn/xx-uccn-server/pom.xml
+6
-0
GwTourController.java
...in/java/com/xxfc/platform/uccn/rest/GwTourController.java
+51
-0
No files found.
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/feign/TourFeign.java
View file @
c802500d
...
...
@@ -7,6 +7,7 @@ import com.github.wxiaoqi.security.common.vo.PageDataVO;
import
com.xxfc.platform.tour.dto.TourSpePriceDTO
;
import
com.xxfc.platform.tour.entity.TourGood
;
import
com.xxfc.platform.tour.entity.TourGoodVerification
;
import
com.xxfc.platform.tour.entity.TourTag
;
import
com.xxfc.platform.tour.entity.TourUser
;
import
com.xxfc.platform.tour.vo.TourGoodOrderFindVo
;
import
com.xxfc.platform.tour.vo.TourGoodOrderVo
;
...
...
@@ -107,4 +108,24 @@ public interface TourFeign {
@GetMapping
(
value
=
"/tourGood/app/unauth/findRandomVehicle"
)
public
ObjectRestResponse
findRandomVehicle
(
@RequestParam
(
value
=
"number"
)
Integer
number
);
//查询旅游路线列表
@RequestMapping
(
value
=
"/gw/app/unauth/getGoodList"
,
method
=
RequestMethod
.
GET
)
ObjectRestResponse
getGoodList
(
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
value
=
"limit"
,
defaultValue
=
"10"
)
Integer
limit
,
@RequestParam
(
value
=
"tagId"
,
required
=
false
)
Integer
tagId
);
//获取公司详情
@GetMapping
(
"/gw/app/unauth/detail/{id}"
)
ObjectRestResponse
getOne
(
@PathVariable
Integer
id
);
//首页旅游列表
@GetMapping
(
value
=
"/gw/app/shopList"
)
List
<
GoodDataVO
>
goodListAll
(
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
value
=
"limit"
,
defaultValue
=
"4"
)
Integer
limit
);
//旅游标签列表
@GetMapping
(
value
=
"/gw/tagList"
)
List
<
TourTag
>
tagList
(
@RequestParam
(
value
=
"isHot"
,
defaultValue
=
"0"
)
Integer
isHot
);
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourTagBiz.java
View file @
c802500d
...
...
@@ -49,6 +49,16 @@ public class TourTagBiz extends BaseBiz<TourTagMapper,TourTag> {
return
mapper
.
findHotListTag
(
tag
);
}
public
List
<
TourTag
>
getTagList
(
Integer
isHot
)
{
TourTag
tag
=
new
TourTag
();
tag
.
setIsDel
(
0
);
if
(
isHot
!=
null
&&
isHot
==
1
){
tag
.
setIsHot
(
1
);
return
mapper
.
findHotListTag
(
tag
);
}
return
mapper
.
findAllByIsDel
(
tag
);
}
public
PageDataVO
<
TourTag
>
findPage
(
Map
map
)
{
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/TourGwController.java
0 → 100644
View file @
c802500d
package
com
.
xxfc
.
platform
.
tour
.
rest
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.vo.GoodDataVO
;
import
com.xxfc.platform.tour.biz.TourGoodBiz
;
import
com.xxfc.platform.tour.biz.TourGoodDetailBiz
;
import
com.xxfc.platform.tour.biz.TourTagBiz
;
import
com.xxfc.platform.tour.entity.TourGood
;
import
com.xxfc.platform.tour.entity.TourTag
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
@RestController
@RequestMapping
(
"gw"
)
@IgnoreClientToken
@IgnoreUserToken
public
class
TourGwController
extends
BaseController
<
TourGoodBiz
,
TourGood
>
{
@Autowired
TourGoodDetailBiz
goodDetailBiz
;
@Autowired
TourTagBiz
tourTagBiz
;
/**
* 查询旅游路线列表
*
* @param page
* @param limit
* @param tagId
* @return
*/
@ApiOperation
(
"查询旅游路线列表"
)
@RequestMapping
(
value
=
"/app/unauth/getGoodList"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
getGoodList
(
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
value
=
"limit"
,
defaultValue
=
"10"
)
Integer
limit
,
@RequestParam
(
value
=
"tagId"
,
required
=
false
)
Integer
tagId
)
{
return
baseBiz
.
getGoodList
(
page
,
limit
,
""
,
null
,
null
,
tagId
,
null
);
}
@GetMapping
(
"/app/unauth/detail/{id}"
)
public
ObjectRestResponse
getOne
(
@PathVariable
Integer
id
)
{
return
goodDetailBiz
.
getGoodDetaileById
(
id
);
}
@ApiOperation
(
"首页旅游列表"
)
@GetMapping
(
value
=
"/shopList"
)
public
List
<
GoodDataVO
>
goodListAll
(
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
value
=
"limit"
,
defaultValue
=
"4"
)
Integer
limit
)
{
return
baseBiz
.
getAllByHome
(
page
,
limit
);
}
@ApiOperation
(
"旅游标签列表"
)
@GetMapping
(
value
=
"/tagList"
)
public
List
<
TourTag
>
tagList
(
@RequestParam
(
value
=
"isHot"
,
defaultValue
=
"0"
)
Integer
isHot
)
{
return
tourTagBiz
.
getTagList
(
isHot
);
}
}
\ No newline at end of file
xx-uccn/xx-uccn-server/pom.xml
View file @
c802500d
...
...
@@ -33,6 +33,12 @@
<version>
2.0-SNAPSHOT
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
com.xxfc.platform
</groupId>
<artifactId>
xx-tour-api
</artifactId>
<version>
2.0-SNAPSHOT
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
<build>
<plugins>
...
...
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/rest/GwTourController.java
0 → 100644
View file @
c802500d
package
com
.
xxfc
.
platform
.
uccn
.
rest
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.CommonBaseController
;
import
com.xxfc.platform.tour.feign.TourFeign
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RequestMapping
(
"/tour"
)
@Slf4j
@IgnoreClientToken
public
class
GwTourController
extends
CommonBaseController
{
@Autowired
TourFeign
tourFeign
;
@ApiOperation
(
"查询旅游路线列表"
)
@RequestMapping
(
value
=
"/getGoodList"
,
method
=
RequestMethod
.
GET
)
@IgnoreUserToken
public
ObjectRestResponse
getGoodList
(
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
value
=
"limit"
,
defaultValue
=
"10"
)
Integer
limit
,
@RequestParam
(
value
=
"tagId"
,
required
=
false
)
Integer
tagId
)
{
return
tourFeign
.
getGoodList
(
page
,
limit
,
tagId
);
}
@GetMapping
(
"/detail/{id}"
)
@IgnoreUserToken
public
ObjectRestResponse
getOne
(
@PathVariable
Integer
id
)
{
return
tourFeign
.
getOne
(
id
);
}
@ApiOperation
(
"首页旅游列表"
)
@GetMapping
(
value
=
"/shopList"
)
@IgnoreUserToken
public
ObjectRestResponse
goodListAll
(
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
value
=
"limit"
,
defaultValue
=
"4"
)
Integer
limit
)
{
return
ObjectRestResponse
.
succ
(
tourFeign
.
goodListAll
(
page
,
limit
));
}
@GetMapping
(
"/tagList"
)
@IgnoreUserToken
public
ObjectRestResponse
getTagList
(
@RequestParam
(
value
=
"isHot"
,
defaultValue
=
"0"
)
Integer
isHot
)
{
return
ObjectRestResponse
.
succ
(
tourFeign
.
tagList
(
isHot
));
}
}
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