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

Commit 05cb543d authored by 胡佳晨's avatar 胡佳晨

Merge branch 'hjc_阶段退票' into 阶梯退票_羊毛券_合并分支

parents df73c44a a167a365
...@@ -104,7 +104,7 @@ public class KylinRefundsStatusServiceImpl { ...@@ -104,7 +104,7 @@ public class KylinRefundsStatusServiceImpl {
kylinOrderRefunds.setOrderTicketsId(orderInfo.getOrderTicketsId()); kylinOrderRefunds.setOrderTicketsId(orderInfo.getOrderTicketsId());
String orderRefundCode = orderInfo.getOrderCode(); String orderRefundCode = orderInfo.getOrderCode();
String codeNum = StringUtils.leftPad(String.valueOf(refundCount), 3, "0"); String codeNum = StringUtils.leftPad(String.valueOf(refundCount), 3, "0");
kylinOrderRefunds.setOrderRefundCode(orderRefundCode.concat(codeNum)); kylinOrderRefunds.setOrderRefundCode(orderRefundCode.concat(codeNum).concat(RandomUtil.getRandomInt(1,9)+""));
kylinOrderRefunds.setPrice(refundPrice); kylinOrderRefunds.setPrice(refundPrice);
kylinOrderRefunds.setPriceExpress(priceExpress); kylinOrderRefunds.setPriceExpress(priceExpress);
kylinOrderRefunds.setPriceCharges(priceCharges); kylinOrderRefunds.setPriceCharges(priceCharges);
...@@ -262,7 +262,7 @@ public class KylinRefundsStatusServiceImpl { ...@@ -262,7 +262,7 @@ public class KylinRefundsStatusServiceImpl {
kylinOrderRefunds.setOrderTicketsId(orderInfo.getOrderTicketsId()); kylinOrderRefunds.setOrderTicketsId(orderInfo.getOrderTicketsId());
String orderRefundCode = orderInfo.getOrderCode(); String orderRefundCode = orderInfo.getOrderCode();
String codeNum = StringUtils.leftPad(String.valueOf(refundCount), 3, "0"); String codeNum = StringUtils.leftPad(String.valueOf(refundCount), 3, "0");
kylinOrderRefunds.setOrderRefundCode(orderRefundCode.concat(codeNum)); kylinOrderRefunds.setOrderRefundCode(orderRefundCode.concat(codeNum)+RandomUtil.getRandomInt(1,9));
kylinOrderRefunds.setPrice(BigDecimal.valueOf(refundPrice)); kylinOrderRefunds.setPrice(BigDecimal.valueOf(refundPrice));
kylinOrderRefunds.setPriceExpress(orderInfo.getPriceExpress()); kylinOrderRefunds.setPriceExpress(orderInfo.getPriceExpress());
kylinOrderRefunds.setStatus(KylinTableStatusConst.ORDER_REFUND_STATUS_APPLY); kylinOrderRefunds.setStatus(KylinTableStatusConst.ORDER_REFUND_STATUS_APPLY);
......
package com.liquidnet.service.order.service.impl; package com.liquidnet.service.order.service.impl;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.liquidnet.commons.lang.util.CollectionUtil; import com.liquidnet.commons.lang.util.*;
import com.liquidnet.commons.lang.util.DateUtil;
import com.liquidnet.commons.lang.util.IDGenerator;
import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.service.base.SqlMapping; import com.liquidnet.service.base.SqlMapping;
import com.liquidnet.service.base.constant.MQConst; import com.liquidnet.service.base.constant.MQConst;
import com.liquidnet.service.kylin.constant.KylinTableStatusConst; import com.liquidnet.service.kylin.constant.KylinTableStatusConst;
...@@ -125,7 +122,7 @@ public class KylinRefundsStatusServiceImpl { ...@@ -125,7 +122,7 @@ public class KylinRefundsStatusServiceImpl {
kylinOrderRefunds.setOrderTicketsId(orderTicketsId); kylinOrderRefunds.setOrderTicketsId(orderTicketsId);
String orderRefundCode = orderInfo.getOrderCode(); String orderRefundCode = orderInfo.getOrderCode();
String codeNum = StringUtils.leftPad(String.valueOf(5), 3, "0"); String codeNum = StringUtils.leftPad(String.valueOf(5), 3, "0");
kylinOrderRefunds.setOrderRefundCode(orderRefundCode.concat(codeNum)); kylinOrderRefunds.setOrderRefundCode(orderRefundCode.concat(codeNum)+ RandomUtil.getRandomInt(1,9));
kylinOrderRefunds.setPrice(entitiesPriceSum); kylinOrderRefunds.setPrice(entitiesPriceSum);
kylinOrderRefunds.setPriceExpress(RefundPriceExpress); kylinOrderRefunds.setPriceExpress(RefundPriceExpress);
kylinOrderRefunds.setStatus(KylinTableStatusConst.ORDER_REFUND_STATUS_APPLY); kylinOrderRefunds.setStatus(KylinTableStatusConst.ORDER_REFUND_STATUS_APPLY);
......
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