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
61601aed
Commit
61601aed
authored
Oct 17, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单统计
parent
c24f8704
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
1 deletion
+56
-1
WebsiteTourType.java
.../java/com/xxfc/platform/tour/comstnt/WebsiteTourType.java
+21
-0
TourGoodBiz.java
...src/main/java/com/xxfc/platform/tour/biz/TourGoodBiz.java
+5
-1
TourGoodMapper.java
...in/java/com/xxfc/platform/tour/mapper/TourGoodMapper.java
+2
-0
OfficialWebsiteTourController.java
...r/rest/officialWebsite/OfficialWebsiteTourController.java
+28
-0
No files found.
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/comstnt/WebsiteTourType.java
0 → 100644
View file @
61601aed
package
com
.
xxfc
.
platform
.
tour
.
comstnt
;
public
enum
WebsiteTourType
{
POPULAR
(
1
,
"热门路线"
),
CHARACTERISTIC
(
2
,
"特色旅游"
),
NEW
(
3
,
"新开辟路线"
),
RECOMMEND
(
4
,
"推荐路线"
);
private
Integer
code
;
private
String
msg
;
WebsiteTourType
(
Integer
code
,
String
msg
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getMsg
()
{
return
msg
;
}
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodBiz.java
View file @
61601aed
...
@@ -322,7 +322,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
...
@@ -322,7 +322,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
*/
*/
public
List
<
GoodDataVO
>
getAllByHome
(
Integer
page
,
Integer
limit
){
public
List
<
GoodDataVO
>
getAllByHome
(
Integer
page
,
Integer
limit
){
return
mapper
.
findAllByHome
((
page
-
1
)*
limit
,
limit
);
return
mapper
.
findAllByHome
((
page
-
1
)*
limit
,
limit
);
}
;
}
/**
/**
* 获取指定数量的随机旅游路线
* 获取指定数量的随机旅游路线
...
@@ -345,6 +345,10 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
...
@@ -345,6 +345,10 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
}
}
return
ObjectRestResponse
.
succ
(
resultList
);
return
ObjectRestResponse
.
succ
(
resultList
);
}
}
public
List
homePageTour
(
Integer
type
)
{
mapper
.
getList
();
}
}
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/mapper/TourGoodMapper.java
View file @
61601aed
...
@@ -36,4 +36,6 @@ public interface TourGoodMapper extends Mapper<TourGood> {
...
@@ -36,4 +36,6 @@ public interface TourGoodMapper extends Mapper<TourGood> {
* @return
* @return
*/
*/
List
<
GoodDataVO
>
findAllByHome
(
@Param
(
"start"
)
Integer
start
,
@Param
(
"size"
)
Integer
size
);
List
<
GoodDataVO
>
findAllByHome
(
@Param
(
"start"
)
Integer
start
,
@Param
(
"size"
)
Integer
size
);
void
getList
();
}
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/officialWebsite/OfficialWebsiteTourController.java
0 → 100644
View file @
61601aed
package
com
.
xxfc
.
platform
.
tour
.
rest
.
officialWebsite
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.xxfc.platform.tour.biz.TourGoodBiz
;
import
com.xxfc.platform.tour.comstnt.WebsiteTourType
;
import
com.xxfc.platform.tour.entity.TourGood
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"website"
)
@IgnoreClientToken
public
class
OfficialWebsiteTourController
extends
BaseController
<
TourGoodBiz
,
TourGood
>
{
@GetMapping
(
"homePage/tour/{type}"
)
public
ObjectRestResponse
homePageTour
(
@PathVariable
Integer
type
)
throws
Exception
{
baseBiz
.
homePageTour
(
type
);
return
null
;
}
}
\ No newline at end of file
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