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

Commit 98ff5df9 authored by 胡佳晨's avatar 胡佳晨

修改下单

parent b8eadb5a
......@@ -907,11 +907,14 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
@Override
public OrderDetailsVo orderDetails(String orderId) {
Long currentTime = System.currentTimeMillis();
OrderDetailsVo vo = new OrderDetailsVo();
try {
String uid = CurrentUtil.getCurrentUid();
// checkOrderTime(uid);
KylinOrderTicketVo orderTicketVo = dataUtils.getOrderTicketVo(orderId);
currentTime = System.currentTimeMillis() - currentTime;
log.debug("获取订单详情 -> time:" + (currentTime) + "毫秒");
if (!orderTicketVo.getUserId().equals(uid)) {
return null;
}
......@@ -919,6 +922,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
//TODO 顺丰快递
Object expresses = null;
KylinPerformanceVo performanceVo = dataUtils.getPerformanceVo(orderTicketVo.getPerformanceId());
currentTime = System.currentTimeMillis() - currentTime;
log.debug("获取演出详情 -> time:" + (currentTime) + "毫秒");
List<KylinOrderTicketEntitiesVo> kylinOrderTicketEntitiesVoList = orderTicketVo.getEntitiesVoList();
KylinTicketVo ticketVo = null;
......@@ -933,6 +938,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
}
}
}
currentTime = System.currentTimeMillis() - currentTime;
log.debug("巡演票数据 -> time:" + (currentTime) + "毫秒");
orderTicketVo.setIsTrueName(ticketVo.getIsTrueName());
orderTicketVo.setNoticeImage(performanceVo.getNoticeImage());
......@@ -949,6 +956,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
} else {
orderTicketVo.setQrCode("");
}
currentTime = System.currentTimeMillis() - currentTime;
log.debug("获取二维码 -> time:" + (currentTime) + "毫秒");
// 数据脱敏
for (KylinOrderTicketEntitiesVo item : kylinOrderTicketEntitiesVoList) {
......@@ -959,6 +968,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
item.setEnterMobile(item.getEnterMobile().substring(0, 3) + "****" + item.getEnterMobile().substring(7));
}
}
currentTime = System.currentTimeMillis() - currentTime;
log.debug("入场人加密 -> time:" + (currentTime) + "毫秒");
//计算 倒计时
Date nowDate = DateUtil.parse(DateUtil.getNowTime(), "yyyy-MM-dd HH:mm:ss");
if (orderTicketVo.getStatus().equals(KylinTableStatusConst.ORDER_STATUS0)) {
......@@ -972,6 +983,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
} else {
vo.setRestTime(0L);
}
currentTime = System.currentTimeMillis() - currentTime;
log.debug("获取倒计时 -> time:" + (currentTime) + "毫秒");
//快递
if (null != expresses) {
vo.setExpress_number("");//expresses.getNumber()
......@@ -994,9 +1007,13 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
} else {
vo.setIsCanRefund(0);
}
currentTime = System.currentTimeMillis() - currentTime;
log.debug("是否支持退款 -> time:" + (currentTime) + "毫秒");
List<KylinOrderRefundsOrderCodeVo> orderRefundsVoBaseList = new ArrayList<>();
List<KylinOrderRefundsVo> orderRefundsVoList = dataUtils.getOrderRefundVoByOrderId(orderId);
currentTime = System.currentTimeMillis() - currentTime;
log.debug("获取退款详情 -> time:" + (currentTime) + "毫秒");
for (KylinOrderRefundsVo item : orderRefundsVoList) {
KylinOrderRefundsOrderCodeVo data = new KylinOrderRefundsOrderCodeVo();
data.setOrderRefundsId(item.getOrderRefundsId());
......@@ -1012,6 +1029,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
data.setStatus(item.getStatus());
orderRefundListVos.add(data);
}
currentTime = System.currentTimeMillis() - currentTime;
log.debug("循环退款详情 -> time:" + (currentTime) + "毫秒");
orderTicketVo.setOrderRefundListVos(orderRefundListVos);
orderTicketVo.setOrderCode(orderTicketVo.getOrderCode().substring(orderTicketVo.getOrderCode().length() - 10));
vo.setOrderRefundsVoList(orderRefundsVoBaseList);
......
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