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
8c3fa797
Commit
8c3fa797
authored
Jun 26, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'base-modify' of
http://10.5.52.3/youjj/cloud-platform
into base-modify
parents
18202b08
300b34ba
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
67 additions
and
13 deletions
+67
-13
GoodDataVO.java
...ava/com/github/wxiaoqi/security/common/vo/GoodDataVO.java
+17
-0
pom.xml
ace-modules/ace-admin/pom.xml
+5
-0
AppUserCollectBiz.java
.../github/wxiaoqi/security/admin/biz/AppUserCollectBiz.java
+13
-1
AppUserCollectController.java
...wxiaoqi/security/admin/rest/AppUserCollectController.java
+2
-0
AppApplication.java
...r/src/main/java/com/xxfc/platform/app/AppApplication.java
+0
-3
BannerBiz.java
...er/src/main/java/com/xxfc/platform/app/biz/BannerBiz.java
+2
-1
BannerMapper.java
.../main/java/com/xxfc/platform/app/mapper/BannerMapper.java
+3
-0
CampsiteShopMapper.xml
...e-server/src/main/resources/mapper/CampsiteShopMapper.xml
+1
-1
TourFeign.java
...src/main/java/com/xxfc/platform/tour/feign/TourFeign.java
+11
-7
TourGoodDetailBiz.java
...in/java/com/xxfc/platform/tour/biz/TourGoodDetailBiz.java
+5
-0
TourGoodDetailController.java
...com/xxfc/platform/tour/rest/TourGoodDetailController.java
+8
-0
No files found.
ace-common/src/main/java/com/github/wxiaoqi/security/common/vo/GoodDataVO.java
View file @
8c3fa797
package
com
.
github
.
wxiaoqi
.
security
.
common
.
vo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.persistence.Column
;
/**
* 首页商品列表
...
...
@@ -20,4 +23,18 @@ public class GoodDataVO{
private
String
price
;
/**
* 经度
*/
@Column
(
name
=
"longitude"
)
@ApiModelProperty
(
value
=
"经度"
)
private
Double
longitude
;
/**
* 纬度
*/
@Column
(
name
=
"latitude"
)
@ApiModelProperty
(
value
=
"纬度"
)
private
Double
latitude
;
}
ace-modules/ace-admin/pom.xml
View file @
8c3fa797
...
...
@@ -50,6 +50,11 @@
<artifactId>
xx-activity-api
</artifactId>
<version>
2.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.xxfc.platform
</groupId>
<artifactId>
xx-tour-api
</artifactId>
<version>
2.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserCollectBiz.java
View file @
8c3fa797
...
...
@@ -11,7 +11,10 @@ import com.github.wxiaoqi.security.common.biz.BaseBiz;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.tour.entity.TourGood
;
import
com.xxfc.platform.tour.feign.TourFeign
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
tk.mybatis.mapper.entity.Example
;
...
...
@@ -28,6 +31,9 @@ import java.util.List;
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
class
AppUserCollectBiz
extends
BaseBiz
<
AppUserCollectMapper
,
AppUserCollect
>
{
@Autowired
TourFeign
tourFeign
;
//新增收藏
public
ObjectRestResponse
addUserCollect
(
AppUserCollectDTO
collectDTO
)
throws
Exception
{
...
...
@@ -46,7 +52,13 @@ public class AppUserCollectBiz extends BaseBiz<AppUserCollectMapper, AppUserColl
}
AppUserCollect
collect
=
new
AppUserCollect
();
BeanUtils
.
copyProperties
(
collect
,
collectDTO
);
insertSelective
(
collect
);
TourGood
tourGood
=
tourFeign
.
one
(
typeId
);
if
(
tourGood
!=
null
){
BeanUtils
.
copyProperties
(
collect
,
tourGood
);
insertSelective
(
collect
);
}
return
ObjectRestResponse
.
succ
();
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppUserCollectController.java
View file @
8c3fa797
...
...
@@ -17,6 +17,7 @@ import com.github.wxiaoqi.security.common.rest.CommonBaseController;
import
com.github.wxiaoqi.security.common.util.Query
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
com.github.wxiaoqi.security.common.util.result.JsonResultUtil
;
import
com.xxfc.platform.tour.feign.TourFeign
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -44,6 +45,7 @@ public class AppUserCollectController extends CommonBaseController {
AppUserCollectBiz
collectBiz
;
/**
* 我的收藏
* @param page
...
...
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/AppApplication.java
View file @
8c3fa797
...
...
@@ -20,10 +20,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@EnableAceCache
@tk
.
mybatis
.
spring
.
annotation
.
MapperScan
(
basePackages
=
"com.xxfc.platform.app.mapper"
)
public
class
AppApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
AppApplication
.
class
,
args
);
}
}
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/biz/BannerBiz.java
View file @
8c3fa797
...
...
@@ -34,7 +34,8 @@ public class BannerBiz extends BaseBiz<BannerMapper,Banner> {
Banner
banner
=
new
Banner
();
banner
.
setIsDel
(
0
);
banner
.
setType
(
type
);
return
mapper
.
selectByExample
(
banner
);
//mapper.findByType(type);
return
mapper
.
findBannerListByType
(
type
);
}
/*
...
...
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/mapper/BannerMapper.java
View file @
8c3fa797
...
...
@@ -21,4 +21,7 @@ public interface BannerMapper extends Mapper<Banner> {
@Select
(
"select * from `banner` where is_del=#{isDel} order by rank ASC"
)
List
<
Banner
>
findBannerListByisDelOrderByRank
(
Banner
banner
);
@Select
(
"select * from `banner` where `is_del`=0 and `type`=#{type} order by rank asc "
)
List
<
Banner
>
findBannerListByType
(
Integer
type
);
}
xx-campsite/xx-campsite-server/src/main/resources/mapper/CampsiteShopMapper.xml
View file @
8c3fa797
...
...
@@ -49,7 +49,7 @@
<!--首页查询全部-->
<select
id=
"findAllByHome"
resultType=
"com.github.wxiaoqi.security.common.vo.GoodDataVO"
>
select cs.id as `id`,cs.name as `name`,cs.logo as `imgUrl`,cs.province_name as `name1`
select cs.id as `id`,cs.name as `name`,cs.logo as `imgUrl`,cs.province_name as `name1`
,cs.longitude,cs.latitude
FROM `campsite_shop` cs
where cs.sale_state=1
order by cs.hot desc
...
...
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/feign/TourFeign.java
View file @
8c3fa797
...
...
@@ -49,17 +49,17 @@ public interface TourFeign {
* @return
*/
@RequestMapping
(
value
=
"/spe/stock"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
<
TourSpePriceVo
>
stock
(
@RequestParam
Integer
speId
,
@RequestParam
Integer
number
,
@RequestParam
Integer
type
);
public
ObjectRestResponse
<
TourSpePriceVo
>
stock
(
@RequestParam
(
"speId"
)
Integer
speId
,
@RequestParam
(
"number"
)
Integer
number
,
@RequestParam
(
"type"
)
Integer
type
);
@RequestMapping
(
value
=
"/tourGood/app/unauth/usable/{id}"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
<
TourGood
>
usableGet
(
@PathVariable
int
id
);
public
ObjectRestResponse
<
TourGood
>
usableGet
(
@PathVariable
(
value
=
"id"
)
int
id
);
@GetMapping
(
"/tourUser/app/unauth/getTourUsers"
)
public
ObjectRestResponse
<
List
<
TourUser
>>
getTourUsers
(
@RequestParam
String
ids
);
public
ObjectRestResponse
<
List
<
TourUser
>>
getTourUsers
(
@RequestParam
(
"ids"
)
String
ids
);
@GetMapping
(
"/tourGood/verfication/entityList"
)
public
ObjectRestResponse
<
List
<
TourGoodVerification
>>
entityList
(
@RequestParam
Map
<
String
,
Object
>
entity
);
public
ObjectRestResponse
<
List
<
TourGoodVerification
>>
entityList
(
@RequestParam
(
"entity"
)
Map
<
String
,
Object
>
entity
);
/**
* 更新发车状态
...
...
@@ -75,8 +75,8 @@ public interface TourFeign {
* @param properties
* @return
*/
@PutMapping
(
"/tourGood/verfication/personnums"
)
ObjectRestResponse
<
Void
>
updateTourGoodPersonNum
(
@RequestParam
(
"verficationId"
)
Integer
verficationId
,
@RequestParam
(
"properties"
)
String
properties
,
@RequestParam
(
"number"
)
Integer
number
);
@PutMapping
(
"/tourGood/verfication/personnums"
)
ObjectRestResponse
<
Void
>
updateTourGoodPersonNum
(
@RequestParam
(
"verficationId"
)
Integer
verficationId
,
@RequestParam
(
"properties"
)
String
properties
,
@RequestParam
(
"number"
)
Integer
number
);
/**
* 查询订单列表
...
...
@@ -84,10 +84,14 @@ public interface TourFeign {
* @return
*/
@GetMapping
(
"/tourGood/verfication/orders"
)
PageDataVO
<
TourGoodOrderVo
>
findTourGoodOrders
(
@RequestParam
Map
<
String
,
Object
>
tourGoodOrderFindVo
);
PageDataVO
<
TourGoodOrderVo
>
findTourGoodOrders
(
@RequestParam
(
"tourGoodOrderFindVo"
)
Map
<
String
,
Object
>
tourGoodOrderFindVo
);
@ApiOperation
(
"首页旅游列表"
)
@GetMapping
(
value
=
"/tourGood/app/shopList"
)
public
List
<
GoodDataVO
>
goodList
(
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
value
=
"limit"
,
defaultValue
=
"4"
)
Integer
limit
);
//获取商品信息
@RequestMapping
(
value
=
"/app/unauth/one"
,
method
=
RequestMethod
.
GET
)
public
TourGood
one
(
@RequestParam
(
value
=
"goodId"
,
defaultValue
=
"0"
)
Integer
goodId
);
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodDetailBiz.java
View file @
8c3fa797
...
...
@@ -125,5 +125,10 @@ public class TourGoodDetailBiz extends BaseBiz<TourGoodMapper, TourGood> {
}
}
//获取路线信息
public
TourGood
getOneGood
(
Integer
id
){
return
selectById
(
id
);
}
}
\ No newline at end of file
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/TourGoodDetailController.java
View file @
8c3fa797
...
...
@@ -4,6 +4,7 @@ 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.xxfc.platform.tour.biz.TourGoodDetailBiz
;
import
com.xxfc.platform.tour.entity.TourGood
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
...
...
@@ -27,6 +28,13 @@ public class TourGoodDetailController{
return
detailBiz
.
getGoodDetaileById
(
goodId
);
}
//获取商品信息
@RequestMapping
(
value
=
"/app/unauth/one"
,
method
=
RequestMethod
.
GET
)
@IgnoreUserToken
public
TourGood
one
(
@RequestParam
(
value
=
"goodId"
,
defaultValue
=
"0"
)
Integer
goodId
)
{
return
detailBiz
.
getOneGood
(
goodId
);
}
...
...
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