记得上下班打卡 | 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
de8636d3
Commit
de8636d3
authored
Jun 18, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加演出巡演数据
parent
6b1c570c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
KylinPerformancesController.java
...service/kylin/controller/KylinPerformancesController.java
+14
-0
KylinPerformancesServiceImpl.java
...vice/kylin/service/impl/KylinPerformancesServiceImpl.java
+5
-0
DataUtils.java
...ain/java/com/liquidnet/service/kylin/utils/DataUtils.java
+0
-6
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/KylinPerformancesController.java
View file @
de8636d3
...
@@ -160,6 +160,20 @@ public class KylinPerformancesController {
...
@@ -160,6 +160,20 @@ public class KylinPerformancesController {
}
}
}
}
@GetMapping
(
"roadList/{roadShowId}"
)
@ApiOperation
(
"演出巡演数据"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"path"
,
dataType
=
"String"
,
name
=
"roadShowId"
,
value
=
"巡演id"
,
required
=
true
),
})
public
ResponseDto
<
List
<
KylinPerformanceVo
>>
roadList
(
@PathVariable
(
"roadShowId"
)
String
roadShowId
)
{
List
<
KylinPerformanceVo
>
result
=
kylinPerformancesService
.
roadList
(
roadShowId
);
if
(
result
!=
null
)
{
return
ResponseDto
.
success
(
result
);
}
else
{
return
ResponseDto
.
failure
(
"获取演出详情失败"
);
}
}
@GetMapping
(
"partner/{performancesId}"
)
@GetMapping
(
"partner/{performancesId}"
)
@ApiOperation
(
"场次票种"
)
@ApiOperation
(
"场次票种"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinPerformancesServiceImpl.java
View file @
de8636d3
...
@@ -162,6 +162,11 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
...
@@ -162,6 +162,11 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
return
performancesInfo
;
return
performancesInfo
;
}
}
public
List
<
KylinPerformanceVo
>
roadList
(
String
roadShowId
)
{
List
<
KylinPerformanceVo
>
performancesList
=
dataUtils
.
getRoadList
(
roadShowId
);
return
performancesList
;
}
public
HashMap
<
String
,
Object
>
ticketTimesPartner
(
String
performancesId
,
Integer
isAgent
)
{
public
HashMap
<
String
,
Object
>
ticketTimesPartner
(
String
performancesId
,
Integer
isAgent
)
{
KylinPerformanceVo
vo
=
dataUtils
.
getPerformanceVo
(
performancesId
);
KylinPerformanceVo
vo
=
dataUtils
.
getPerformanceVo
(
performancesId
);
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/utils/DataUtils.java
View file @
de8636d3
...
@@ -149,13 +149,7 @@ public class DataUtils {
...
@@ -149,13 +149,7 @@ public class DataUtils {
if
(
redisUtil
.
hasKey
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
))
{
if
(
redisUtil
.
hasKey
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
))
{
}
else
{
}
else
{
KylinPerformanceVo
performanceData
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
performanceId
)),
KylinPerformanceVo
.
class
,
KylinPerformanceVo
.
class
.
getSimpleName
());
KylinPerformanceVo
performanceData
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
performanceId
)),
KylinPerformanceVo
.
class
,
KylinPerformanceVo
.
class
.
getSimpleName
());
List
<
KylinPerformanceVo
>
roadList
=
new
ArrayList
();
if
(
null
!=
performanceData
.
getRoadShowId
()
&&
Integer
.
parseInt
(
performanceData
.
getRoadShowId
())
>
0
)
{
roadList
=
dataUtils
.
getRoadList
(
performanceData
.
getRoadShowId
());
}
redisUtil
.
set
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
,
performanceData
);
redisUtil
.
set
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
,
performanceData
);
performanceData
.
setRoadList
(
roadList
);
// 不一起存到演出详情
}
}
return
(
KylinPerformanceVo
)
redisUtil
.
get
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
);
return
(
KylinPerformanceVo
)
redisUtil
.
get
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
);
}
}
...
...
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