Authored by chenchao

fix

1 package com.yohoufo.dal.order.model; 1 package com.yohoufo.dal.order.model;
2 2
3 -<<<<<<< HEAD  
4 -import lombok.AllArgsConstructor;  
5 -import lombok.Builder;  
6 -import lombok.Data;  
7 -import lombok.NoArgsConstructor;  
8 -  
9 -import java.math.BigDecimal;  
10 -@Data  
11 -@Builder  
12 -@AllArgsConstructor  
13 -@NoArgsConstructor  
14 -=======  
15 import lombok.*; 3 import lombok.*;
16 4
17 import java.math.BigDecimal; 5 import java.math.BigDecimal;
18 6
  7 +
19 @ToString 8 @ToString
20 @Builder 9 @Builder
21 @NoArgsConstructor 10 @NoArgsConstructor
22 @AllArgsConstructor 11 @AllArgsConstructor
23 @Data 12 @Data
24 ->>>>>>> 29a6b426327bd250bc44215372289fe1e345c46e  
25 public class DepositOrder { 13 public class DepositOrder {
26 private Integer id; 14 private Integer id;
27 15
@@ -31,11 +19,7 @@ public class DepositOrder { @@ -31,11 +19,7 @@ public class DepositOrder {
31 19
32 private String depositCode; 20 private String depositCode;
33 21
34 -<<<<<<< HEAD  
35 private BigDecimal amount; 22 private BigDecimal amount;
36 -=======  
37 - private BigDecimal amount; // 总费用  
38 ->>>>>>> 29a6b426327bd250bc44215372289fe1e345c46e  
39 23
40 private Integer payment; 24 private Integer payment;
41 25
@@ -49,13 +33,9 @@ public class DepositOrder { @@ -49,13 +33,9 @@ public class DepositOrder {
49 33
50 private Integer updateTime; 34 private Integer updateTime;
51 35
52 -<<<<<<< HEAD  
53 -  
54 -=======  
55 - private BigDecimal contractFee; //违约费用 36 + private BigDecimal contractFee;
56 37
57 - private BigDecimal shipFee; //运费 38 + private BigDecimal shipFee;
58 39
59 - private Integer initStatus; // 修改状态之前应该的状态  
60 ->>>>>>> 29a6b426327bd250bc44215372289fe1e345c46e 40 + private Integer initStatus;
61 } 41 }
@@ -113,7 +113,9 @@ public class DepositOrderService { @@ -113,7 +113,9 @@ public class DepositOrderService {
113 DepositOrderComputeResp.PriceInfo priceInfo = getFeeInfo(orderCode); 113 DepositOrderComputeResp.PriceInfo priceInfo = getFeeInfo(orderCode);
114 114
115 DepositOrder depositOrder = DepositOrder.builder().uid(uid).amount(priceInfo.getAmount()) 115 DepositOrder depositOrder = DepositOrder.builder().uid(uid).amount(priceInfo.getAmount())
116 - .contractFee(priceInfo.getContractFee()).shipFee(priceInfo.getShipFee()).createTime(now).depositCode(req.getDepositCode()) 116 + .contractFee(priceInfo.getContractFee())
  117 + .shipFee(priceInfo.getShipFee())
  118 + .createTime(now).depositCode(req.getDepositCode())
117 .eventType(DepositEventTypeEnum.DEPOSIT_RECALL_FEE.getCode()).orderCode(orderCode).payment(0).status(0).updateTime(now).build(); 119 .eventType(DepositEventTypeEnum.DEPOSIT_RECALL_FEE.getCode()).orderCode(orderCode).payment(0).status(0).updateTime(now).build();
118 120
119 LOG.info("enter publishDepositOrder begin save depositOrder {} ",depositOrder); 121 LOG.info("enter publishDepositOrder begin save depositOrder {} ",depositOrder);
@@ -21,7 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired; @@ -21,7 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired;
21 import org.springframework.stereotype.Service; 21 import org.springframework.stereotype.Service;
22 22
23 @Service 23 @Service
24 -public class DeposiOrderPaymentService extends AbstractOrderPaymentService { 24 +public class DepositOrderPaymentService extends AbstractOrderPaymentService {
25 private final Logger logger = LoggerFactory.getLogger(getClass()); 25 private final Logger logger = LoggerFactory.getLogger(getClass());
26 26
27 @Autowired 27 @Autowired
@@ -103,7 +103,7 @@ public class PaymentServiceImpl implements IPaymentService { @@ -103,7 +103,7 @@ public class PaymentServiceImpl implements IPaymentService {
103 MerchantOrderPaymentService merchantOrderPaymentService; 103 MerchantOrderPaymentService merchantOrderPaymentService;
104 104
105 @Autowired 105 @Autowired
106 - private DeposiOrderPaymentService deposiOrderPaymentService; 106 + private DepositOrderPaymentService deposiOrderPaymentService;
107 107
108 @Autowired 108 @Autowired
109 OrderCodeGenerator orderCodeGenerator; 109 OrderCodeGenerator orderCodeGenerator;