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

Commit 5f0d35a0 authored by 胡佳晨's avatar 胡佳晨

增加日志

parent 63d451a8
...@@ -10,6 +10,7 @@ import com.liquidnet.service.kylin.dto.vo.express.KylinOrderExpressVo; ...@@ -10,6 +10,7 @@ import com.liquidnet.service.kylin.dto.vo.express.KylinOrderExpressVo;
import com.liquidnet.service.kylin.dto.vo.mongo.*; import com.liquidnet.service.kylin.dto.vo.mongo.*;
import com.liquidnet.service.kylin.dto.vo.returns.KylinOrderListVo; import com.liquidnet.service.kylin.dto.vo.returns.KylinOrderListVo;
import com.liquidnet.service.kylin.dto.vo.returns.KylinOrderRefundsVo; import com.liquidnet.service.kylin.dto.vo.returns.KylinOrderRefundsVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
...@@ -25,6 +26,7 @@ import java.util.*; ...@@ -25,6 +26,7 @@ import java.util.*;
import java.util.regex.Pattern; import java.util.regex.Pattern;
@Component @Component
@Slf4j
public class DataUtils { public class DataUtils {
@Autowired @Autowired
...@@ -449,6 +451,7 @@ public class DataUtils { ...@@ -449,6 +451,7 @@ public class DataUtils {
public BigDecimal getCanRefundOrderEntitiesPrice(KylinOrderTicketVo orderTicketVo, List<KylinOrderRefundsVo> kylinOrderRefundsVoBaseList, String orderTicketEntitiesId) { public BigDecimal getCanRefundOrderEntitiesPrice(KylinOrderTicketVo orderTicketVo, List<KylinOrderRefundsVo> kylinOrderRefundsVoBaseList, String orderTicketEntitiesId) {
//单票实付价格 //单票实付价格
BigDecimal singlePrice = orderTicketVo.getPriceActual().subtract(orderTicketVo.getPriceExpress()).divide(BigDecimal.valueOf(orderTicketVo.getNumber())); BigDecimal singlePrice = orderTicketVo.getPriceActual().subtract(orderTicketVo.getPriceExpress()).divide(BigDecimal.valueOf(orderTicketVo.getNumber()));
log.info("singlePrice = "+singlePrice);
//单票剩余未退款金额 //单票剩余未退款金额
BigDecimal canRefundSinglePrice = new BigDecimal("0.00"); BigDecimal canRefundSinglePrice = new BigDecimal("0.00");
for (KylinOrderTicketEntitiesVo item : orderTicketVo.getEntitiesVoList()) { for (KylinOrderTicketEntitiesVo item : orderTicketVo.getEntitiesVoList()) {
...@@ -456,6 +459,7 @@ public class DataUtils { ...@@ -456,6 +459,7 @@ public class DataUtils {
canRefundSinglePrice = singlePrice.subtract(item.getRefundPrice() == null ? BigDecimal.valueOf(0.00) : item.getRefundPrice()); canRefundSinglePrice = singlePrice.subtract(item.getRefundPrice() == null ? BigDecimal.valueOf(0.00) : item.getRefundPrice());
} }
} }
log.info("canRefundSinglePrice = "+canRefundSinglePrice);
//订单锁定金额 //订单锁定金额
BigDecimal orderLockPrice = new BigDecimal("0.00"); BigDecimal orderLockPrice = new BigDecimal("0.00");
for (KylinOrderRefundsVo refundVo : kylinOrderRefundsVoBaseList) { for (KylinOrderRefundsVo refundVo : kylinOrderRefundsVoBaseList) {
...@@ -469,6 +473,7 @@ public class DataUtils { ...@@ -469,6 +473,7 @@ public class DataUtils {
} }
} }
} }
log.info("orderLockPrice = "+orderLockPrice);
//订单可退金额 //订单可退金额
BigDecimal refundSinglePrice = canRefundSinglePrice.subtract(orderLockPrice); BigDecimal refundSinglePrice = canRefundSinglePrice.subtract(orderLockPrice);
//是否包含快递费 //是否包含快递费
......
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