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

Commit 6b964ed5 authored by 胡佳晨's avatar 胡佳晨

修改 同步大麦

parent 1758c4df
...@@ -86,9 +86,9 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl ...@@ -86,9 +86,9 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl
obj1.setPicUrl(performanceData.getImgPoster()); obj1.setPicUrl(performanceData.getImgPoster());
long performanceKey = 0l; long performanceKey = 0l;
if(performanceData.getPerformancesId().length()<13){ if (performanceData.getPerformancesId().length() < 13) {
performanceKey = Long.valueOf(performanceData.getPerformancesId()); performanceKey = Long.valueOf(performanceData.getPerformancesId());
}else { } else {
performanceKey = Long.valueOf(performanceData.getPerformancesId().substring(0, 5).concat(performanceData.getPerformancesId().substring(7, 12))); performanceKey = Long.valueOf(performanceData.getPerformancesId().substring(0, 5).concat(performanceData.getPerformancesId().substring(7, 12)));
} }
obj1.setProjectId(performanceKey); obj1.setProjectId(performanceKey);
...@@ -128,9 +128,9 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl ...@@ -128,9 +128,9 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl
obj1.setEndTime(StringUtils.parseDateTime(timesData.getUseEnd().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")))); obj1.setEndTime(StringUtils.parseDateTime(timesData.getUseEnd().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))));
long ticketTimesKey = 0l; long ticketTimesKey = 0l;
if(timesData.getTicketTimesId().length()>13){ if (timesData.getTicketTimesId().length() > 13) {
ticketTimesKey=Long.valueOf(timesData.getTicketTimesId().substring(0, 5).concat(timesData.getTicketTimesId().substring(7, 12))); ticketTimesKey = Long.valueOf(timesData.getTicketTimesId().substring(0, 5).concat(timesData.getTicketTimesId().substring(7, 12)));
}else{ } else {
ticketTimesKey = Long.valueOf(timesData.getTicketTimesId()); ticketTimesKey = Long.valueOf(timesData.getTicketTimesId());
} }
...@@ -171,9 +171,9 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl ...@@ -171,9 +171,9 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl
PushTicketItemPushOpenParam obj1 = new PushTicketItemPushOpenParam(); PushTicketItemPushOpenParam obj1 = new PushTicketItemPushOpenParam();
long ticketIdKey = 0l; long ticketIdKey = 0l;
if(ticketsData.getTicketsId().length()>13){ if (ticketsData.getTicketsId().length() > 13) {
ticketIdKey=Long.valueOf(ticketsData.getTicketsId().substring(0, 5).concat(ticketsData.getTicketsId().substring(7, 12))); ticketIdKey = Long.valueOf(ticketsData.getTicketsId().substring(0, 5).concat(ticketsData.getTicketsId().substring(7, 12)));
}else{ } else {
ticketIdKey = Long.valueOf(ticketsData.getTicketsId()); ticketIdKey = Long.valueOf(ticketsData.getTicketsId());
} }
obj1.setItemId(ticketIdKey); obj1.setItemId(ticketIdKey);
...@@ -218,19 +218,23 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl ...@@ -218,19 +218,23 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl
obj3.setCertificateType(item.getEnterType().longValue());//证件内容 入场人证件type obj3.setCertificateType(item.getEnterType().longValue());//证件内容 入场人证件type
obj3.setPayTime(DateUtils.parseDate(item.getTimePay()));//支付时间 obj3.setPayTime(DateUtils.parseDate(item.getTimePay()));//支付时间
obj3.setPerformId(timemId);//场次id obj3.setPerformId(timemId);//场次id
// obj3.setTicketItemId(ticketsmId); obj3.setTicketItemId(ticketsmId);
obj3.setOrderId(Long.parseLong(item.getOrderTicketsId()));//订单id orderId
if (item.getIsMember() == 1) { if (item.getIsMember() == 1) {
obj3.setTicketItemId(Long.parseLong(ticketsmId + "010"));//票品id ticketId+01会员 ticketId+0非会员 if (item.getOrderTicketEntitiesId().length() > 13) {
obj3.setVoucherId(Long.valueOf(item.getOrderTicketEntitiesId().substring(0, 5).concat(item.getOrderTicketEntitiesId().substring(7, 12))+"010"));//票单号 入场人id
} else { } else {
obj3.setTicketItemId(Long.parseLong(ticketsmId + "020")); obj3.setVoucherId(Long.valueOf(item.getOrderTicketEntitiesId()+"010"));//票单号 入场人id
} }
} else {
obj3.setOrderId(Long.parseLong(item.getOrderTicketsId()));//订单id orderId if (item.getOrderTicketEntitiesId().length() > 13) {
if(item.getOrderTicketEntitiesId().length()>13){ obj3.setVoucherId(Long.valueOf(item.getOrderTicketEntitiesId().substring(0, 5).concat(item.getOrderTicketEntitiesId().substring(7, 12)+"020")));//票单号 入场人id
obj3.setVoucherId(Long.valueOf(item.getOrderTicketEntitiesId().substring(0, 5).concat(item.getOrderTicketEntitiesId().substring(7, 12))));//票单号 入场人id } else {
}else{ obj3.setVoucherId(Long.valueOf(item.getOrderTicketEntitiesId()+"020"));//票单号 入场人id
obj3.setVoucherId(Long.valueOf(item.getOrderTicketEntitiesId()));//票单号 入场人id
} }
}
obj3.setMediumType(item.getGetTicketType().equals("express") ? 1L : 2L);//票类型 快递 电子 obj3.setMediumType(item.getGetTicketType().equals("express") ? 1L : 2L);//票类型 快递 电子
obj3.setSupplierSecret(taobaoTicketUtils.getSupplierSecret()); obj3.setSupplierSecret(taobaoTicketUtils.getSupplierSecret());
......
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