记得上下班打卡 | git大法好,push需谨慎

Commit 49b02ea6 authored by 胡佳晨's avatar 胡佳晨

注释 pvuv

parent 7e373ee0
...@@ -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);
......
...@@ -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) {
//
} // }
} // }
} }
...@@ -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) {
......
...@@ -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) {
//
} // }
} // }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment