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

Commit 489a309b authored by 胡佳晨's avatar 胡佳晨

不是快递 不是电子

parent 81abb506
...@@ -15,9 +15,9 @@ public class OrderOutLineVo { ...@@ -15,9 +15,9 @@ public class OrderOutLineVo {
private Integer number; private Integer number;
@Excel(name = "票种名称",cellType = Excel.ColumnType.STRING) @Excel(name = "票种名称",cellType = Excel.ColumnType.STRING)
private String ticketTitle; private String ticketTitle;
@Excel(name = "票种适用开始时间",cellType = Excel.ColumnType.STRING,dateFormat = "yyyy-MM-dd") @Excel(name = "票种适用开始时间",cellType = Excel.ColumnType.STRING,dateFormat = "yyyy-MM-dd HH:mm:ss")
private String useStart; private String useStart;
@Excel(name = "票种适用结束时间",cellType = Excel.ColumnType.STRING,dateFormat = "yyyy-MM-dd") @Excel(name = "票种适用结束时间",cellType = Excel.ColumnType.STRING,dateFormat = "yyyy-MM-dd HH:mm:ss")
private String useEnd; private String useEnd;
@Excel(name = "票种类型(电子票,快递票)",cellType = Excel.ColumnType.STRING) @Excel(name = "票种类型(电子票,快递票)",cellType = Excel.ColumnType.STRING)
private String ticketType; private String ticketType;
......
...@@ -154,7 +154,7 @@ public class ImportServiceImpl implements IImportService { ...@@ -154,7 +154,7 @@ public class ImportServiceImpl implements IImportService {
} }
} }
try { try {
order(number, ticketType.equals("express") ? 1 : 0, uid, isMember, performanceData, ticketTimesData, ticketData, enterMobile, enterName, enterIdCode, address); order(number, ticketType.equals("express") ? 1 : 0, adamUserInfoVo, isMember, performanceData, ticketTimesData, ticketData, enterMobile, enterName, enterIdCode, address);
successNum++; successNum++;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
...@@ -171,7 +171,7 @@ public class ImportServiceImpl implements IImportService { ...@@ -171,7 +171,7 @@ public class ImportServiceImpl implements IImportService {
} }
private void order(Integer number, Integer IsExpress, String uid, boolean isMember, private void order(Integer number, Integer IsExpress, AdamUserInfoVo adamUserInfoVo, boolean isMember,
KylinPerformanceVo performanceData, KylinTicketTimesVo ticketTimesVo, KylinTicketVo ticketData, KylinPerformanceVo performanceData, KylinTicketTimesVo ticketTimesVo, KylinTicketVo ticketData,
String enterMobile, String enterName, String enterIdCode, String address) throws Exception { String enterMobile, String enterName, String enterIdCode, String address) throws Exception {
String source = "OUTLINE"; String source = "OUTLINE";
...@@ -181,10 +181,9 @@ public class ImportServiceImpl implements IImportService { ...@@ -181,10 +181,9 @@ public class ImportServiceImpl implements IImportService {
KylinOrderTickets orderTickets = KylinOrderTickets.getNew(); KylinOrderTickets orderTickets = KylinOrderTickets.getNew();
String orderTicketId = IDGenerator.nextSnowId(); String orderTicketId = IDGenerator.nextSnowId();
orderTickets.setOrderTicketsId(orderTicketId); orderTickets.setOrderTicketsId(orderTicketId);
orderTickets.setUserId(uid); orderTickets.setUserId(adamUserInfoVo.getUid());
Map token = CurrentUtil.getTokenClaims(); orderTickets.setUserName(adamUserInfoVo.getNickname());
orderTickets.setUserName(StringUtils.defaultString(((String) token.get("nickname")), "")); orderTickets.setUserMobile(adamUserInfoVo.getMobile());
orderTickets.setUserMobile(StringUtils.defaultString(((String) token.get("mobile")), ""));
orderTickets.setPerformanceTitle(performanceData.getTitle()); orderTickets.setPerformanceTitle(performanceData.getTitle());
orderTickets.setOrderCode(IDGenerator.ticketOrderCode(orderTicketId)); orderTickets.setOrderCode(IDGenerator.ticketOrderCode(orderTicketId));
orderTickets.setPayCode("OUTLINE"); orderTickets.setPayCode("OUTLINE");
...@@ -266,7 +265,7 @@ public class ImportServiceImpl implements IImportService { ...@@ -266,7 +265,7 @@ public class ImportServiceImpl implements IImportService {
String orderTicketEntitiesId = IDGenerator.nextSnowId(); String orderTicketEntitiesId = IDGenerator.nextSnowId();
orderTicketEntities.setOrderTicketEntitiesId(orderTicketEntitiesId); orderTicketEntities.setOrderTicketEntitiesId(orderTicketEntitiesId);
orderTicketEntities.setOrderId(orderTicketId); orderTicketEntities.setOrderId(orderTicketId);
orderTicketEntities.setUserId(uid); orderTicketEntities.setUserId(adamUserInfoVo.getUid());
orderTicketEntities.setTicketId(ticketData.getTicketsId()); orderTicketEntities.setTicketId(ticketData.getTicketsId());
orderTicketEntities.setPerformanceId(performanceData.getPerformancesId()); orderTicketEntities.setPerformanceId(performanceData.getPerformancesId());
orderTicketEntities.setTimeId(ticketTimesVo.getTimeId()); orderTicketEntities.setTimeId(ticketTimesVo.getTimeId());
...@@ -298,7 +297,7 @@ public class ImportServiceImpl implements IImportService { ...@@ -298,7 +297,7 @@ public class ImportServiceImpl implements IImportService {
String orderTicketEntitiesId = IDGenerator.nextSnowId(); String orderTicketEntitiesId = IDGenerator.nextSnowId();
orderTicketEntities.setOrderTicketEntitiesId(orderTicketEntitiesId); orderTicketEntities.setOrderTicketEntitiesId(orderTicketEntitiesId);
orderTicketEntities.setOrderId(orderTicketId); orderTicketEntities.setOrderId(orderTicketId);
orderTicketEntities.setUserId(uid); orderTicketEntities.setUserId(adamUserInfoVo.getUid());
orderTicketEntities.setTicketId(ticketData.getTicketsId()); orderTicketEntities.setTicketId(ticketData.getTicketsId());
orderTicketEntities.setPerformanceId(performanceData.getPerformancesId()); orderTicketEntities.setPerformanceId(performanceData.getPerformancesId());
orderTicketEntities.setTimeId(ticketTimesVo.getTimeId()); orderTicketEntities.setTimeId(ticketTimesVo.getTimeId());
...@@ -341,7 +340,7 @@ public class ImportServiceImpl implements IImportService { ...@@ -341,7 +340,7 @@ public class ImportServiceImpl implements IImportService {
orderTicketVo.setChangeDate(orderTickets.getCreatedAt()); orderTicketVo.setChangeDate(orderTickets.getCreatedAt());
mongoTemplate.insert(orderTicketVo, KylinOrderTicketVo.class.getSimpleName()); mongoTemplate.insert(orderTicketVo, KylinOrderTicketVo.class.getSimpleName());
orderUtils.resetOrderListVo(uid, 1, orderTicketVo.getOrderTicketsId(), orderTicketVo); orderUtils.resetOrderListVo(adamUserInfoVo.getUid(), 1, orderTicketVo.getOrderTicketsId(), orderTicketVo);
} }
} }
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