|
|
|
@ -92,11 +92,22 @@ public class CarbonOrderPayload extends RequestPayload implements IApiRequest { |
|
|
|
|
return mileage; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setMileage(String mileage) { |
|
|
|
|
|
|
|
|
|
public void setMileage(double mileage) { |
|
|
|
|
double v = mileage * 1000; |
|
|
|
|
this.setMileage(String.valueOf((int) v)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setMileage(String mileage) { |
|
|
|
|
this.mileage = mileage; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setMileage(double mileage) { |
|
|
|
|
/** |
|
|
|
|
* 里程 (单位:m) |
|
|
|
|
* |
|
|
|
|
* @param mileage |
|
|
|
|
*/ |
|
|
|
|
public void setMileage(int mileage) { |
|
|
|
|
this.setMileage(String.valueOf(mileage)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -104,14 +115,21 @@ public class CarbonOrderPayload extends RequestPayload implements IApiRequest { |
|
|
|
|
return orderPay; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setOrderPay(String orderPay) { |
|
|
|
|
public void setOrderPay(double orderPay) { |
|
|
|
|
double v = orderPay * 100; |
|
|
|
|
this.setOrderPay(String.valueOf((int) v)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setOrderPay(String orderPay) { |
|
|
|
|
this.orderPay = orderPay; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 订单金额 (单位:分) |
|
|
|
|
* |
|
|
|
|
* @param orderPay |
|
|
|
|
*/ |
|
|
|
|
public void setOrderPay(double orderPay) { |
|
|
|
|
public void setOrderPay(int orderPay) { |
|
|
|
|
this.setOrderPay(String.valueOf(orderPay)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|