记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
83614413
Commit
83614413
authored
May 14, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口参数注释完善
parent
d733d0c6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
18 deletions
+59
-18
BannersVo.java
...in/java/com/liquidnet/service/kylin/dto/vo/BannersVo.java
+2
-1
KylinBannersController.java
...dnet/service/kylin/controller/KylinBannersController.java
+8
-6
KylinPerformancesController.java
...service/kylin/controller/KylinPerformancesController.java
+32
-8
KylinPerformancesServiceImpl.java
...vice/kylin/service/impl/KylinPerformancesServiceImpl.java
+17
-3
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/BannersVo.java
View file @
83614413
...
@@ -29,7 +29,8 @@ public class BannersVo implements Serializable {
...
@@ -29,7 +29,8 @@ public class BannersVo implements Serializable {
@ApiModelProperty
(
value
=
"封面图"
)
@ApiModelProperty
(
value
=
"封面图"
)
private
String
coverImg
;
private
String
coverImg
;
@ApiModelProperty
(
value
=
"跳转类型"
)
@ApiModelProperty
(
value
=
"跳转类型 0: 1PGC点播 2 PGC直播 5场地 6票务 7商品 8巡演 12活动跳转-可分享 100活动跳转 13积分商品"
+
"14商品集合 20音乐人 21歌曲 22专辑 23视频播单 24音乐人集合 26摩登会员 201youngBlood报名跳转 0不跳转"
)
private
Integer
targetType
;
private
Integer
targetType
;
@ApiModelProperty
(
value
=
"跳转目标id或者url"
)
@ApiModelProperty
(
value
=
"跳转目标id或者url"
)
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/KylinBannersController.java
View file @
83614413
...
@@ -2,14 +2,12 @@ package com.liquidnet.service.kylin.controller;
...
@@ -2,14 +2,12 @@ package com.liquidnet.service.kylin.controller;
import
com.liquidnet.service.ResponseDto
;
import
com.liquidnet.service.ResponseDto
;
import
com.liquidnet.service.kylin.dao.BannerDetailsListDao
;
import
com.liquidnet.service.kylin.dto.param.BannersApiSearchParam
;
import
com.liquidnet.service.kylin.dto.param.BannersApiSearchParam
;
import
com.liquidnet.service.kylin.dto.param.BannersSearchParam
;
import
com.liquidnet.service.kylin.dto.vo.BannersVo
;
import
com.liquidnet.service.kylin.dto.vo.BannersVo
;
import
com.liquidnet.service.kylin.dto.vo.PagerVo
;
import
com.liquidnet.service.kylin.service.impl.admin.KylinBannersServiceImpl
;
import
com.liquidnet.service.kylin.service.impl.admin.KylinBannersServiceImpl
;
import
com.mongodb.client.AggregateIterable
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -35,9 +33,13 @@ public class KylinBannersController {
...
@@ -35,9 +33,13 @@ public class KylinBannersController {
@GetMapping
(
""
)
@GetMapping
(
""
)
@ApiOperation
(
"banner列表"
)
@ApiOperation
(
"banner列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"position"
,
value
=
"展示位置 1首页 3周边 4演出 5积分商城 6YB 8视频"
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"provinceCode"
,
value
=
"城市code"
),
})
public
ResponseDto
<
List
<
BannersVo
>>
blist
(
public
ResponseDto
<
List
<
BannersVo
>>
blist
(
@RequestParam
(
value
=
"position"
)
String
position
,
@RequestParam
String
position
,
@RequestParam
(
value
=
"provinceCode"
,
defaultValue
=
""
)
String
provinceCode
@RequestParam
String
provinceCode
)
{
)
{
BannersApiSearchParam
bannersApiSearchParam
=
new
BannersApiSearchParam
();
BannersApiSearchParam
bannersApiSearchParam
=
new
BannersApiSearchParam
();
bannersApiSearchParam
.
setPosition
(
position
);
bannersApiSearchParam
.
setPosition
(
position
);
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/KylinPerformancesController.java
View file @
83614413
...
@@ -5,6 +5,8 @@ import com.liquidnet.service.ResponseDto;
...
@@ -5,6 +5,8 @@ import com.liquidnet.service.ResponseDto;
import
com.liquidnet.service.kylin.dto.vo.PerformanceVo
;
import
com.liquidnet.service.kylin.dto.vo.PerformanceVo
;
import
com.liquidnet.service.kylin.service.impl.KylinPerformancesServiceImpl
;
import
com.liquidnet.service.kylin.service.impl.KylinPerformancesServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -34,18 +36,27 @@ public class KylinPerformancesController {
...
@@ -34,18 +36,27 @@ public class KylinPerformancesController {
@GetMapping
(
"localList"
)
@GetMapping
(
"localList"
)
@ApiOperation
(
"本地演出列表"
)
@ApiOperation
(
"本地演出列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"sellTime"
,
value
=
"开票时间"
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"title"
,
value
=
"演出名称"
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"cityId"
,
value
=
"省份id"
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"演出类型"
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"page"
,
value
=
"页码"
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"size"
,
value
=
"每页数量"
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"Integer"
,
name
=
"sortType"
,
value
=
"1时间正序 2时间倒序"
),
})
public
ResponseDto
<
HashMap
<
String
,
Object
>>
localList
(
public
ResponseDto
<
HashMap
<
String
,
Object
>>
localList
(
@RequestParam
(
value
=
"sellTime"
,
defaultValue
=
""
)
String
sellTime
,
//开票时间
@RequestParam
String
sellTime
,
//开票时间
@RequestParam
(
value
=
"title"
,
defaultValue
=
""
)
String
title
,
//演出名称
@RequestParam
String
title
,
//演出名称
@RequestParam
(
value
=
"cityId"
,
defaultValue
=
""
)
String
cityId
,
//省份id
@RequestParam
String
cityId
,
//省份id
@RequestParam
(
value
=
"type"
,
defaultValue
=
""
)
Integer
type
,
//演出类型
@RequestParam
Integer
type
,
//演出类型
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
Integer
page
,
@RequestParam
(
value
=
"size"
,
defaultValue
=
"10"
)
Integer
size
,
@RequestParam
Integer
size
,
// 排序
// 排序
@RequestParam
(
value
=
"SortType"
,
defaultValue
=
"1"
)
Integer
S
ortType
// 1时间正序 2时间倒序
@RequestParam
Integer
s
ortType
// 1时间正序 2时间倒序
)
{
)
{
HashMap
<
String
,
Object
>
result
=
kylinPerformancesService
.
localList
(
sellTime
,
title
,
cityId
,
type
,
page
,
size
,
S
ortType
);
HashMap
<
String
,
Object
>
result
=
kylinPerformancesService
.
localList
(
sellTime
,
title
,
cityId
,
type
,
page
,
size
,
s
ortType
);
if
(
result
.
size
()
>
0
)
{
if
(
result
.
size
()
>
0
)
{
return
ResponseDto
.
success
(
result
);
return
ResponseDto
.
success
(
result
);
}
else
{
}
else
{
...
@@ -75,4 +86,17 @@ public class KylinPerformancesController {
...
@@ -75,4 +86,17 @@ public class KylinPerformancesController {
}
}
}
}
@GetMapping
(
"detail"
)
@ApiOperation
(
"演出详情"
)
public
ResponseDto
<
HashMap
<
String
,
Object
>>
detail
(
@RequestParam
(
value
=
"performancesId"
)
String
performancesId
//演出id
)
{
HashMap
<
String
,
Object
>
result
=
kylinPerformancesService
.
detail
(
performancesId
);
if
(
result
.
size
()
>
0
)
{
return
ResponseDto
.
success
(
result
);
}
else
{
return
ResponseDto
.
failure
(
"获取演出列表失败"
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinPerformancesServiceImpl.java
View file @
83614413
...
@@ -36,13 +36,13 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
...
@@ -36,13 +36,13 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
@Autowired
@Autowired
private
MongoTemplate
mongoTemplate
;
private
MongoTemplate
mongoTemplate
;
public
HashMap
<
String
,
Object
>
localList
(
String
sellTime
,
String
title
,
String
cityId
,
Integer
type
,
Integer
page
,
Integer
size
,
Integer
S
ortType
)
{
public
HashMap
<
String
,
Object
>
localList
(
String
sellTime
,
String
title
,
String
cityId
,
Integer
type
,
Integer
page
,
Integer
size
,
Integer
s
ortType
)
{
HashMap
<
String
,
Object
>
info
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
info
=
new
HashMap
<>();
// 排序 分页
// 排序 分页
Sort
sortName
=
null
;
// 默认开票越早的在上面
Sort
sortName
=
null
;
// 默认开票越早的在上面
if
(
S
ortType
!=
null
)
{
if
(
s
ortType
!=
null
)
{
switch
(
S
ortType
)
{
switch
(
s
ortType
)
{
case
1
:
case
1
:
sortName
=
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"sellTime"
);
sortName
=
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"sellTime"
);
break
;
break
;
...
@@ -128,4 +128,18 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
...
@@ -128,4 +128,18 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
return
list
;
return
list
;
}
}
public
HashMap
<
String
,
Object
>
detail
(
String
performancesId
)
{
HashMap
<
String
,
Object
>
info
=
new
HashMap
<>();
PerformanceVo
performancesInfo
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
performancesId
)),
PerformanceVo
.
class
,
PerformanceVo
.
class
.
getSimpleName
()
);
info
.
put
(
"info"
,
performancesInfo
);
return
info
;
}
}
}
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