记得上下班打卡 | 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
c79d3d22
Commit
c79d3d22
authored
Jan 06, 2022
by
jiangxiulong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/jxl_1214_refund' into dev_merchant
parents
5d03270c
8cc523c0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
85 additions
and
49 deletions
+85
-49
KylinRedisConst.java
...com/liquidnet/service/kylin/constant/KylinRedisConst.java
+1
-0
DataUtils.java
...iquidnet/client/admin/zhengzai/kylin/utils/DataUtils.java
+1
-0
KylinPerformancesController.java
...service/kylin/controller/KylinPerformancesController.java
+20
-8
KylinOrderTicketsRefundServiceImpl.java
...ylin/service/impl/KylinOrderTicketsRefundServiceImpl.java
+43
-31
KylinPerformancesServiceImpl.java
...vice/kylin/service/impl/KylinPerformancesServiceImpl.java
+6
-6
DataUtils.java
...ain/java/com/liquidnet/service/kylin/utils/DataUtils.java
+13
-4
DataUtils.java
.../java/com/liquidnet/service/platform/utils/DataUtils.java
+1
-0
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/constant/KylinRedisConst.java
View file @
c79d3d22
...
@@ -5,6 +5,7 @@ public class KylinRedisConst {
...
@@ -5,6 +5,7 @@ public class KylinRedisConst {
public
static
final
String
PERFORMANCES
=
"kylin:performances:id:"
;
public
static
final
String
PERFORMANCES
=
"kylin:performances:id:"
;
public
static
final
String
PERFORMANCES_TRUE_NAME
=
"kylin:performances_true_name:id:"
;
public
static
final
String
PERFORMANCES_TRUE_NAME
=
"kylin:performances_true_name:id:"
;
public
static
final
String
PERFORMANCES_LIST_CITYNAME
=
"kylin:performances:cityName:"
;
public
static
final
String
PERFORMANCES_LIST_CITYNAME
=
"kylin:performances:cityName:"
;
public
static
final
String
PERFORMANCES_LIST_CITY
=
"kylin:performances:city:"
;
public
static
final
String
PERFORMANCES_LIST_SYSTEM_RECOMMEND
=
"kylin:performances:systemRecommend"
;
public
static
final
String
PERFORMANCES_LIST_SYSTEM_RECOMMEND
=
"kylin:performances:systemRecommend"
;
public
static
final
String
PERFORMANCES_LIST_NOTICE
=
"kylin:performances:notice"
;
public
static
final
String
PERFORMANCES_LIST_NOTICE
=
"kylin:performances:notice"
;
public
static
final
String
PERFORMANCES_LIST_RECOMMEND
=
"kylin:performances:recommend"
;
public
static
final
String
PERFORMANCES_LIST_RECOMMEND
=
"kylin:performances:recommend"
;
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/utils/DataUtils.java
View file @
c79d3d22
...
@@ -222,6 +222,7 @@ public class DataUtils {
...
@@ -222,6 +222,7 @@ public class DataUtils {
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES
+
performanceIds
);
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES
+
performanceIds
);
// 大龙相关 演出列表
// 大龙相关 演出列表
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_CITYNAME
+
vo
.
getCityName
());
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_CITYNAME
+
vo
.
getCityName
());
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_CITY
+
vo
.
getCityId
());
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_ROADLIST
+
vo
.
getRoadShowId
());
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_ROADLIST
+
vo
.
getRoadShowId
());
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_SYSTEM_RECOMMEND
);
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_SYSTEM_RECOMMEND
);
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_RECOMMEND
);
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_RECOMMEND
);
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/KylinPerformancesController.java
View file @
c79d3d22
...
@@ -47,7 +47,8 @@ public class KylinPerformancesController {
...
@@ -47,7 +47,8 @@ public class KylinPerformancesController {
@GetMapping
(
"localList"
)
@GetMapping
(
"localList"
)
@ApiOperation
(
"本地演出列表"
)
@ApiOperation
(
"本地演出列表"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"cityName"
,
value
=
"城市名称"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"cityName"
,
value
=
"城市名称"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"adCode"
,
value
=
"城市code"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"days"
,
value
=
"时间范围 几天 今天1 三天3。。。"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"days"
,
value
=
"时间范围 几天 今天1 三天3。。。"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"type"
,
value
=
"演出类型 101音乐节 102小型演出(livehouse演出) 103巡演 演出类型只有这几个了"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"int"
,
name
=
"type"
,
value
=
"演出类型 101音乐节 102小型演出(livehouse演出) 103巡演 演出类型只有这几个了"
),
...
@@ -60,6 +61,7 @@ public class KylinPerformancesController {
...
@@ -60,6 +61,7 @@ public class KylinPerformancesController {
})
})
public
ResponseDto
<
HashMap
<
String
,
Object
>>
localList
(
public
ResponseDto
<
HashMap
<
String
,
Object
>>
localList
(
@RequestParam
(
defaultValue
=
""
)
String
cityName
,
@RequestParam
(
defaultValue
=
""
)
String
cityName
,
@RequestParam
(
defaultValue
=
""
)
String
adCode
,
@RequestParam
(
defaultValue
=
"0"
)
int
days
,
@RequestParam
(
defaultValue
=
"0"
)
int
days
,
@RequestParam
(
defaultValue
=
"0"
)
int
type
,
@RequestParam
(
defaultValue
=
"0"
)
int
type
,
...
@@ -72,7 +74,7 @@ public class KylinPerformancesController {
...
@@ -72,7 +74,7 @@ public class KylinPerformancesController {
@RequestParam
(
defaultValue
=
""
)
String
sort
@RequestParam
(
defaultValue
=
""
)
String
sort
)
{
)
{
HashMap
<
String
,
Object
>
result
=
kylinPerformancesService
.
localList
(
HashMap
<
String
,
Object
>
result
=
kylinPerformancesService
.
localList
(
days
,
cityName
,
type
,
days
,
cityName
,
adCode
,
type
,
isDiscount
,
isAdvance
,
isExclusive
,
isDiscount
,
isAdvance
,
isExclusive
,
orderBy
,
sort
orderBy
,
sort
);
);
...
@@ -124,12 +126,17 @@ public class KylinPerformancesController {
...
@@ -124,12 +126,17 @@ public class KylinPerformancesController {
@ApiOperation
(
"演出日历"
)
@ApiOperation
(
"演出日历"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"yearMonth"
,
value
=
"年月 2021-01"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"yearMonth"
,
value
=
"年月 2021-01"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"cityName"
,
value
=
"城市名称"
,
required
=
true
)
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"cityName"
,
value
=
"城市名称"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"adCode"
,
value
=
"城市code"
)
})
})
public
ResponseDto
<
List
>
performanceCalendar
(
@RequestParam
String
yearMonth
,
@RequestParam
String
cityName
)
{
public
ResponseDto
<
List
>
performanceCalendar
(
@RequestParam
String
yearMonth
,
@RequestParam
(
defaultValue
=
""
)
String
cityName
,
@RequestParam
(
defaultValue
=
""
)
String
adCode
)
{
List
result
=
CollectionUtil
.
arrayListString
();
List
result
=
CollectionUtil
.
arrayListString
();
try
{
try
{
result
=
kylinPerformancesService
.
performanceCalendar
(
yearMonth
,
cityName
);
result
=
kylinPerformancesService
.
performanceCalendar
(
yearMonth
,
cityName
,
adCode
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"kylinCalendarError"
,
e
);
log
.
error
(
"kylinCalendarError"
,
e
);
}
}
...
@@ -140,11 +147,16 @@ public class KylinPerformancesController {
...
@@ -140,11 +147,16 @@ public class KylinPerformancesController {
@ApiOperation
(
"演出日历-演出列表"
)
@ApiOperation
(
"演出日历-演出列表"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"yearMonthDay"
,
value
=
"年月日 2021-01-01"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"yearMonthDay"
,
value
=
"年月日 2021-01-01"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"cityName"
,
value
=
"城市名称"
,
required
=
true
)
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"cityName"
,
value
=
"城市名称"
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"adCode"
,
value
=
"城市code"
)
})
})
public
ResponseDto
<
List
>
calendarPerformances
(
@RequestParam
String
yearMonthDay
,
@RequestParam
String
cityName
)
{
public
ResponseDto
<
List
>
calendarPerformances
(
@RequestParam
String
yearMonthDay
,
@RequestParam
(
defaultValue
=
""
)
String
cityName
,
@RequestParam
(
defaultValue
=
""
)
String
adCode
)
{
List
result
=
null
;
List
result
=
null
;
result
=
kylinPerformancesService
.
calendarPerformances
(
yearMonthDay
,
cityName
);
result
=
kylinPerformancesService
.
calendarPerformances
(
yearMonthDay
,
cityName
,
adCode
);
return
ResponseDto
.
success
(
result
);
return
ResponseDto
.
success
(
result
);
}
}
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsRefundServiceImpl.java
View file @
c79d3d22
...
@@ -405,6 +405,20 @@ public class KylinOrderTicketsRefundServiceImpl {
...
@@ -405,6 +405,20 @@ public class KylinOrderTicketsRefundServiceImpl {
log
.
error
(
"expressPlaceFromJsonException e:[{}]"
,
e
);
log
.
error
(
"expressPlaceFromJsonException e:[{}]"
,
e
);
}
}
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
sqls
.
add
(
SqlMapping
.
get
(
"kylin_order_refund.refundOrderExpress"
));
LinkedList
<
Object
[]>
sqlsDataA
=
CollectionUtil
.
linkedListObjectArr
();
LocalDateTime
now
=
LocalDateTime
.
now
();
String
remark
=
""
;
String
proName
=
""
;
String
goodsValueTotal
=
""
;
String
goodsNumber
=
""
;
String
mailno
=
""
;
String
filterResult
=
""
;
String
cargoTypeCode
=
""
;
String
limitTypeCode
=
""
;
String
expressTypeCode
=
""
;
Integer
orderExpressStatus
=
0
;
if
(
null
==
hashMap
.
get
(
"succ"
)
||
hashMap
.
get
(
"succ"
).
equals
(
"fail"
))
{
if
(
null
==
hashMap
.
get
(
"succ"
)
||
hashMap
.
get
(
"succ"
).
equals
(
"fail"
))
{
String
msg
=
""
;
String
msg
=
""
;
if
(
null
==
hashMap
.
get
(
"succ"
))
{
if
(
null
==
hashMap
.
get
(
"succ"
))
{
...
@@ -412,50 +426,48 @@ public class KylinOrderTicketsRefundServiceImpl {
...
@@ -412,50 +426,48 @@ public class KylinOrderTicketsRefundServiceImpl {
}
else
{
}
else
{
msg
=
(
String
)
hashMap
.
get
(
"msg"
);
msg
=
(
String
)
hashMap
.
get
(
"msg"
);
}
}
orderExpressStatus
=
1
;
}
else
{
// 成功下单记录缓存
}
else
{
// 成功下单记录缓存
// 生成快递单
// 生成快递单
HashMap
hashMapResult
=
(
HashMap
)
hashMap
.
get
(
"result"
);
HashMap
hashMapResult
=
(
HashMap
)
hashMap
.
get
(
"result"
);
LocalDateTime
now
=
LocalDateTime
.
now
();
remark
=
(
String
)
hashMapResult
.
get
(
"remark"
);
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
proName
=
(
String
)
hashMapResult
.
get
(
"proName"
);
sqls
.
add
(
SqlMapping
.
get
(
"kylin_order_refund.refundOrderExpress"
));
goodsValueTotal
=
(
String
)
hashMapResult
.
get
(
"goodsValueTotal"
);
LinkedList
<
Object
[]>
sqlsDataA
=
CollectionUtil
.
linkedListObjectArr
();
goodsNumber
=
(
String
)
hashMapResult
.
get
(
"goodsNumber"
);
String
remark
=
(
String
)
hashMapResult
.
get
(
"remark"
);
mailno
=
(
String
)
hashMapResult
.
get
(
"mailno"
);
String
proName
=
(
String
)
hashMapResult
.
get
(
"proName"
);
filterResult
=
(
String
)
hashMapResult
.
get
(
"filter_result"
);
String
goodsValueTotal
=
(
String
)
hashMapResult
.
get
(
"goodsValueTotal"
);
cargoTypeCode
=
(
String
)
hashMapResult
.
get
(
"cargoTypeCode"
);
String
goodsNumber
=
(
String
)
hashMapResult
.
get
(
"goodsNumber"
);
limitTypeCode
=
(
String
)
hashMapResult
.
get
(
"limitTypeCode"
);
expressTypeCode
=
(
String
)
hashMapResult
.
get
(
"expressTypeCode"
);
remark
=
(
null
==
remark
)
?
""
:
remark
;
remark
=
(
null
==
remark
)
?
""
:
remark
;
proName
=
(
null
==
proName
)
?
""
:
proName
;
proName
=
(
null
==
proName
)
?
""
:
proName
;
goodsValueTotal
=
(
null
==
goodsValueTotal
)
?
""
:
goodsValueTotal
;
goodsValueTotal
=
(
null
==
goodsValueTotal
)
?
""
:
goodsValueTotal
;
goodsNumber
=
(
null
==
goodsNumber
)
?
""
:
goodsNumber
;
goodsNumber
=
(
null
==
goodsNumber
)
?
""
:
goodsNumber
;
String
mailno
=
(
String
)
hashMapResult
.
get
(
"mailno"
);
String
filterResult
=
(
String
)
hashMapResult
.
get
(
"filter_result"
);
String
cargoTypeCode
=
(
String
)
hashMapResult
.
get
(
"cargoTypeCode"
);
String
limitTypeCode
=
(
String
)
hashMapResult
.
get
(
"limitTypeCode"
);
String
expressTypeCode
=
(
String
)
hashMapResult
.
get
(
"expressTypeCode"
);
mailno
=
(
null
==
mailno
)
?
""
:
mailno
;
mailno
=
(
null
==
mailno
)
?
""
:
mailno
;
filterResult
=
(
null
==
filterResult
)
?
""
:
filterResult
;
filterResult
=
(
null
==
filterResult
)
?
""
:
filterResult
;
cargoTypeCode
=
(
null
==
cargoTypeCode
)
?
""
:
cargoTypeCode
;
cargoTypeCode
=
(
null
==
cargoTypeCode
)
?
""
:
cargoTypeCode
;
limitTypeCode
=
(
null
==
limitTypeCode
)
?
""
:
limitTypeCode
;
limitTypeCode
=
(
null
==
limitTypeCode
)
?
""
:
limitTypeCode
;
expressTypeCode
=
(
null
==
expressTypeCode
)
?
""
:
expressTypeCode
;
expressTypeCode
=
(
null
==
expressTypeCode
)
?
""
:
expressTypeCode
;
sqlsDataA
.
add
(
new
Object
[]{
orderExpressStatus
=
2
;
orderExpressId
,
orderTicketVo
.
getPerformanceId
(),
orderTicketVo
.
getOrderTicketsId
(),
orderRefundId
,
OrderExpressCode
,
mailno
,
expressType
,
filterResult
,
remark
,
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS2
,
2
,
sendExpressType
,
expressContacts
,
expressPhone
,
sendExpressAddress
,
appointmentTime
,
proName
,
cargoTypeCode
,
limitTypeCode
,
expressTypeCode
,
goodsValueTotal
,
goodsNumber
,
now
});
queueUtils
.
sendMsgByRedis
(
MQConst
.
KylinQueue
.
SQL_ORDER_REFUND_EXPRESS
.
getKey
(),
SqlMapping
.
gets
(
sqls
,
sqlsDataA
));
KylinOrderExpressVo
kylinOrderExpressVo
=
KylinOrderExpressVo
.
getNew
();
kylinOrderExpressVo
.
setOrderExpressId
(
orderExpressId
);
kylinOrderExpressVo
.
setOrderTicketsId
(
orderTicketVo
.
getOrderTicketsId
());
kylinOrderExpressVo
.
setOrderExpressCode
(
OrderExpressCode
);
kylinOrderExpressVo
.
setMailno
((
String
)
hashMapResult
.
get
(
"mailno"
));
kylinOrderExpressVo
.
setExpressStatus
(
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS2
);
kylinOrderExpressVo
.
setSendExpressType
(
sendExpressType
);
dataUtils
.
setOrderRefundExpressInfo
(
orderTicketVo
.
getOrderTicketsId
(),
kylinOrderExpressVo
);
}
}
sqlsDataA
.
add
(
new
Object
[]{
orderExpressId
,
orderTicketVo
.
getPerformanceId
(),
orderTicketVo
.
getOrderTicketsId
(),
orderRefundId
,
OrderExpressCode
,
mailno
,
expressType
,
filterResult
,
remark
,
orderExpressStatus
,
2
,
sendExpressType
,
expressContacts
,
expressPhone
,
sendExpressAddress
,
appointmentTime
,
proName
,
cargoTypeCode
,
limitTypeCode
,
expressTypeCode
,
goodsValueTotal
,
goodsNumber
,
now
});
queueUtils
.
sendMsgByRedis
(
MQConst
.
KylinQueue
.
SQL_ORDER_REFUND_EXPRESS
.
getKey
(),
SqlMapping
.
gets
(
sqls
,
sqlsDataA
));
KylinOrderExpressVo
kylinOrderExpressVo
=
KylinOrderExpressVo
.
getNew
();
kylinOrderExpressVo
.
setOrderExpressId
(
orderExpressId
);
kylinOrderExpressVo
.
setOrderTicketsId
(
orderTicketVo
.
getOrderTicketsId
());
kylinOrderExpressVo
.
setOrderExpressCode
(
OrderExpressCode
);
kylinOrderExpressVo
.
setMailno
(
mailno
);
kylinOrderExpressVo
.
setExpressStatus
(
orderExpressStatus
);
kylinOrderExpressVo
.
setSendExpressType
(
sendExpressType
);
dataUtils
.
setOrderRefundExpressInfo
(
orderTicketVo
.
getOrderTicketsId
(),
kylinOrderExpressVo
);
}
else
if
(
sendExpressType
==
2
)
{
// 自主发货
}
else
if
(
sendExpressType
==
2
)
{
// 自主发货
// 生成快递单 REDIS 队列入数据库
// 生成快递单 REDIS 队列入数据库
String
orderExpressId
=
IDGenerator
.
nextSnowId
();
String
orderExpressId
=
IDGenerator
.
nextSnowId
();
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinPerformancesServiceImpl.java
View file @
c79d3d22
...
@@ -62,11 +62,11 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
...
@@ -62,11 +62,11 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
private
QueueUtils
queueUtils
;
private
QueueUtils
queueUtils
;
public
HashMap
<
String
,
Object
>
localList
(
public
HashMap
<
String
,
Object
>
localList
(
int
days
,
String
cityName
,
int
type
,
int
days
,
String
cityName
,
String
adCode
,
int
type
,
Integer
isDiscount
,
Integer
isAdvance
,
Integer
isExclusive
,
Integer
isDiscount
,
Integer
isAdvance
,
Integer
isExclusive
,
String
orderBy
,
String
sort
String
orderBy
,
String
sort
)
{
)
{
List
<
KylinPerformanceVo
>
performancesList
=
dataUtils
.
getPerformancesListOfcityName
(
cityNam
e
);
List
<
KylinPerformanceVo
>
performancesList
=
dataUtils
.
getPerformancesListOfcityName
OradCode
(
cityName
,
adCod
e
);
// 是否启用推荐
// 是否启用推荐
Integer
isRecommend
=
1
;
Integer
isRecommend
=
1
;
...
@@ -286,8 +286,8 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
...
@@ -286,8 +286,8 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
return
performanceList
;
return
performanceList
;
}
}
public
List
performanceCalendar
(
String
yearMonth
,
String
cityName
)
{
public
List
performanceCalendar
(
String
yearMonth
,
String
cityName
,
String
adCode
)
{
List
<
KylinPerformanceVo
>
performancesList
=
dataUtils
.
getPerformancesListOfcityName
(
cityNam
e
);
List
<
KylinPerformanceVo
>
performancesList
=
dataUtils
.
getPerformancesListOfcityName
OradCode
(
cityName
,
adCod
e
);
// 获取此月开始结束时间
// 获取此月开始结束时间
String
[]
split
=
yearMonth
.
split
(
"-"
);
String
[]
split
=
yearMonth
.
split
(
"-"
);
...
@@ -314,8 +314,8 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
...
@@ -314,8 +314,8 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
return
newList
;
return
newList
;
}
}
public
List
calendarPerformances
(
String
yearMonthDay
,
String
cityName
)
{
public
List
calendarPerformances
(
String
yearMonthDay
,
String
cityName
,
String
adCode
)
{
List
<
KylinPerformanceVo
>
performancesList
=
dataUtils
.
getPerformancesListOfcityName
(
cityNam
e
);
List
<
KylinPerformanceVo
>
performancesList
=
dataUtils
.
getPerformancesListOfcityName
OradCode
(
cityName
,
adCod
e
);
String
yearMonthDayStart
=
yearMonthDay
.
concat
(
" 00:00:00"
);
String
yearMonthDayStart
=
yearMonthDay
.
concat
(
" 00:00:00"
);
String
yearMonthDayEnd
=
yearMonthDay
.
concat
(
" 23:59:59"
);
String
yearMonthDayEnd
=
yearMonthDay
.
concat
(
" 23:59:59"
);
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/utils/DataUtils.java
View file @
c79d3d22
...
@@ -294,16 +294,25 @@ public class DataUtils {
...
@@ -294,16 +294,25 @@ public class DataUtils {
*
*
* @param cityName
* @param cityName
*/
*/
public
List
<
KylinPerformanceVo
>
getPerformancesListOfcityName
(
String
cityName
)
{
public
List
<
KylinPerformanceVo
>
getPerformancesListOfcityNameOradCode
(
String
cityName
,
String
adCode
)
{
String
redisKey
=
KylinRedisConst
.
PERFORMANCES_LIST_CITYNAME
.
concat
(
cityName
);
String
redisKey
=
""
;
if
(
cityName
.
isEmpty
())
{
redisKey
=
KylinRedisConst
.
PERFORMANCES_LIST_CITY
.
concat
(
adCode
);
}
else
{
redisKey
=
KylinRedisConst
.
PERFORMANCES_LIST_CITYNAME
.
concat
(
cityName
);
}
Object
object
=
redisUtil
.
get
(
redisKey
);
Object
object
=
redisUtil
.
get
(
redisKey
);
if
(
object
==
null
)
{
if
(
object
==
null
)
{
// 固定查询条件
// 固定查询条件
Query
query
=
getCommonWhere
();
Query
query
=
getCommonWhere
();
// 其他条件
// 其他条件
Pattern
cityNameCompile
=
Pattern
.
compile
(
"^.*"
+
cityName
+
".*$"
,
Pattern
.
CASE_INSENSITIVE
);
if
(
cityName
.
isEmpty
())
{
query
.
addCriteria
(
Criteria
.
where
(
"cityName"
).
regex
(
cityNameCompile
));
query
.
addCriteria
(
Criteria
.
where
(
"cityId"
).
is
(
adCode
));
}
else
{
Pattern
cityNameCompile
=
Pattern
.
compile
(
"^.*"
+
cityName
+
".*$"
,
Pattern
.
CASE_INSENSITIVE
);
query
.
addCriteria
(
Criteria
.
where
(
"cityName"
).
regex
(
cityNameCompile
));
}
// 排序
// 排序
Sort
sortName
=
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"timeStart"
);
Sort
sortName
=
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"timeStart"
);
query
.
with
(
sortName
);
query
.
with
(
sortName
);
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/utils/DataUtils.java
View file @
c79d3d22
...
@@ -253,6 +253,7 @@ public class DataUtils {
...
@@ -253,6 +253,7 @@ public class DataUtils {
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES
+
performanceIds
);
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES
+
performanceIds
);
// 大龙相关 演出列表
// 大龙相关 演出列表
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_CITYNAME
+
vo
.
getCityName
());
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_CITYNAME
+
vo
.
getCityName
());
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_CITY
+
vo
.
getCityId
());
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_ROADLIST
+
vo
.
getRoadShowId
());
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_ROADLIST
+
vo
.
getRoadShowId
());
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_SYSTEM_RECOMMEND
);
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_SYSTEM_RECOMMEND
);
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_RECOMMEND
);
redisDataSourceUtil
.
getRedisKylinUtil
().
del
(
KylinRedisConst
.
PERFORMANCES_LIST_RECOMMEND
);
...
...
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