记得上下班打卡 | 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
49b02ea6
Commit
49b02ea6
authored
Nov 26, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释 pvuv
parent
7e373ee0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
37 deletions
+37
-37
KylinPerformancesServiceImpl.java
...vice/kylin/service/impl/KylinPerformancesServiceImpl.java
+2
-2
QueueUtils.java
...in/java/com/liquidnet/service/kylin/utils/QueueUtils.java
+17
-17
KylinOrderTicketsServiceImpl.java
...vice/order/service/impl/KylinOrderTicketsServiceImpl.java
+1
-1
QueueUtils.java
...in/java/com/liquidnet/service/order/utils/QueueUtils.java
+17
-17
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinPerformancesServiceImpl.java
View file @
49b02ea6
...
@@ -226,7 +226,7 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
...
@@ -226,7 +226,7 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
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
);
vo
=
checkAppStatusInfo
(
vo
);
vo
=
checkAppStatusInfo
(
vo
);
queueUtils
.
pushPvUv
(
CurrentUtil
.
getCurrentUid
(),
KylinTableStatusConst
.
PvUv
.
TK_TICKET
.
getKey
(),
performancesId
,
null
,
null
,
CurrentUtil
.
getCliIpAddr
());
//
queueUtils.pushPvUv(CurrentUtil.getCurrentUid(), KylinTableStatusConst.PvUv.TK_TICKET.getKey(), performancesId, null, null, CurrentUtil.getCliIpAddr());
List
<
KylinTicketTimesVo
>
ticketTimesList
=
vo
.
getTicketTimeList
();
List
<
KylinTicketTimesVo
>
ticketTimesList
=
vo
.
getTicketTimeList
();
if
(
null
!=
ticketTimesList
)
{
if
(
null
!=
ticketTimesList
)
{
...
@@ -396,7 +396,7 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
...
@@ -396,7 +396,7 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
KylinTicketVo
ticketVo
=
null
;
KylinTicketVo
ticketVo
=
null
;
KylinPerformanceVo
performancesInfo
=
dataUtils
.
getPerformanceVo
(
performancesId
);
KylinPerformanceVo
performancesInfo
=
dataUtils
.
getPerformanceVo
(
performancesId
);
performancesInfo
=
checkAppStatusInfo
(
performancesInfo
);
performancesInfo
=
checkAppStatusInfo
(
performancesInfo
);
queueUtils
.
pushPvUv
(
CurrentUtil
.
getCurrentUid
(),
KylinTableStatusConst
.
PvUv
.
TK_ORDER
.
getKey
(),
performancesId
,
null
,
null
,
CurrentUtil
.
getCliIpAddr
());
//
queueUtils.pushPvUv(CurrentUtil.getCurrentUid(), KylinTableStatusConst.PvUv.TK_ORDER.getKey(), performancesId, null, null, CurrentUtil.getCliIpAddr());
for
(
int
i
=
0
;
i
<
performancesInfo
.
getTicketTimeList
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
performancesInfo
.
getTicketTimeList
().
size
();
i
++)
{
for
(
int
x
=
0
;
x
<
performancesInfo
.
getTicketTimeList
().
get
(
i
).
getTicketList
().
size
();
x
++)
{
for
(
int
x
=
0
;
x
<
performancesInfo
.
getTicketTimeList
().
get
(
i
).
getTicketList
().
size
();
x
++)
{
KylinTicketVo
ticketItem
=
performancesInfo
.
getTicketTimeList
().
get
(
i
).
getTicketList
().
get
(
x
);
KylinTicketVo
ticketItem
=
performancesInfo
.
getTicketTimeList
().
get
(
i
).
getTicketList
().
get
(
x
);
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/utils/QueueUtils.java
View file @
49b02ea6
...
@@ -45,21 +45,21 @@ public class QueueUtils {
...
@@ -45,21 +45,21 @@ public class QueueUtils {
stringRedisTemplate
.
opsForStream
().
add
(
StreamRecords
.
mapBacked
(
map
).
withStreamKey
(
streamKey
));
stringRedisTemplate
.
opsForStream
().
add
(
StreamRecords
.
mapBacked
(
map
).
withStreamKey
(
streamKey
));
}
}
public
void
pushPvUv
(
String
uid
,
String
accessType
,
String
performanceId
,
String
orderId
,
String
orderCode
,
String
ipAddress
)
{
//
public void pushPvUv(String uid, String accessType, String performanceId, String orderId, String orderCode, String ipAddress) {
try
{
//
try {
KylinIpAreaVo
vo
=
dataUtils
.
getKylinIpAreaVo
(
ipAddress
);
//
KylinIpAreaVo vo = dataUtils.getKylinIpAreaVo(ipAddress);
String
area
=
vo
.
getArea
();
//
String area = vo.getArea();
String
areaProvince
=
vo
.
getProvince
();
//
String areaProvince = vo.getProvince();
String
areaCity
=
vo
.
getCity
();
//
String areaCity = vo.getCity();
String
areaCounty
=
vo
.
getCounty
();
//
String areaCounty = vo.getCounty();
sendMsgByRedis
(
MQConst
.
KylinQueue
.
SQL_PERFORMANCE_LACK
.
getKey
(),
//
sendMsgByRedis(MQConst.KylinQueue.SQL_PERFORMANCE_LACK.getKey(),
SqlMapping
.
get
(
"bi_ticket_access_records.insert"
,
new
Object
[]{
//
SqlMapping.get("bi_ticket_access_records.insert", new Object[]{
uid
,
accessType
,
performanceId
,
orderId
,
orderCode
,
//
uid, accessType, performanceId, orderId, orderCode,
ipAddress
,
area
,
areaProvince
,
areaCity
,
areaCounty
,
//
ipAddress, area, areaProvince, areaCity, areaCounty,
LocalDateTime
.
now
(),
//
LocalDateTime.now(),
}));
//
}));
}
catch
(
Exception
e
)
{
//
} catch (Exception e) {
//
}
//
}
}
//
}
}
}
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/KylinOrderTicketsServiceImpl.java
View file @
49b02ea6
...
@@ -103,7 +103,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
...
@@ -103,7 +103,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
try
{
try
{
String
orderTicketId
=
IDGenerator
.
nextSnowId
();
String
orderTicketId
=
IDGenerator
.
nextSnowId
();
String
orderCode
=
IDGenerator
.
ticketOrderCode
(
orderTicketId
);
String
orderCode
=
IDGenerator
.
ticketOrderCode
(
orderTicketId
);
queueUtils
.
pushPvUv
(
uid
,
KylinTableStatusConst
.
PvUv
.
TK_PAY
.
getKey
(),
payOrderParam
.
getPerformanceId
(),
orderTicketId
,
orderCode
,
CurrentUtil
.
getCliIpAddr
());
//
queueUtils.pushPvUv(uid, KylinTableStatusConst.PvUv.TK_PAY.getKey(), payOrderParam.getPerformanceId(), orderTicketId, orderCode, CurrentUtil.getCliIpAddr());
if
(
payOrderParam
.
getVoucherType
()
!=
null
&&
payOrderParam
.
getVoucherType
().
equals
(
3
))
{
if
(
payOrderParam
.
getVoucherType
()
!=
null
&&
payOrderParam
.
getVoucherType
().
equals
(
3
))
{
isPay
=
false
;
isPay
=
false
;
if
(
payOrderParam
.
getNumber
()
>
1
)
{
if
(
payOrderParam
.
getNumber
()
>
1
)
{
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/QueueUtils.java
View file @
49b02ea6
...
@@ -44,21 +44,21 @@ public class QueueUtils {
...
@@ -44,21 +44,21 @@ public class QueueUtils {
stringRedisTemplate
.
opsForStream
().
add
(
StreamRecords
.
mapBacked
(
map
).
withStreamKey
(
streamKey
));
stringRedisTemplate
.
opsForStream
().
add
(
StreamRecords
.
mapBacked
(
map
).
withStreamKey
(
streamKey
));
}
}
public
void
pushPvUv
(
String
uid
,
String
accessType
,
String
performanceId
,
String
orderId
,
String
orderCode
,
String
ipAddress
)
{
//
public void pushPvUv(String uid, String accessType, String performanceId, String orderId, String orderCode, String ipAddress) {
try
{
//
try {
KylinIpAreaVo
vo
=
dataUtils
.
getKylinIpAreaVo
(
ipAddress
);
//
KylinIpAreaVo vo = dataUtils.getKylinIpAreaVo(ipAddress);
String
area
=
vo
.
getArea
();
//
String area = vo.getArea();
String
areaProvince
=
vo
.
getProvince
();
//
String areaProvince = vo.getProvince();
String
areaCity
=
vo
.
getCity
();
//
String areaCity = vo.getCity();
String
areaCounty
=
vo
.
getCounty
();
//
String areaCounty = vo.getCounty();
sendMsgByRedis
(
MQConst
.
KylinQueue
.
SQL_PERFORMANCE_LACK
.
getKey
(),
//
sendMsgByRedis(MQConst.KylinQueue.SQL_PERFORMANCE_LACK.getKey(),
SqlMapping
.
get
(
"bi_ticket_access_records.insert"
,
new
Object
[]{
//
SqlMapping.get("bi_ticket_access_records.insert", new Object[]{
uid
,
accessType
,
performanceId
,
orderId
,
orderCode
,
//
uid, accessType, performanceId, orderId, orderCode,
ipAddress
,
area
,
areaProvince
,
areaCity
,
areaCounty
,
//
ipAddress, area, areaProvince, areaCity, areaCounty,
LocalDateTime
.
now
(),
//
LocalDateTime.now(),
}));
//
}));
}
catch
(
Exception
e
)
{
//
} catch (Exception e) {
//
}
//
}
}
//
}
}
}
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