feat:修复线上续费订单费用
This commit is contained in:
@@ -240,7 +240,8 @@ public class OrderPayController extends BaseController {
|
|||||||
OrderPay newOrderPay = new OrderPay();
|
OrderPay newOrderPay = new OrderPay();
|
||||||
BeanCopier.create(olderPay, newOrderPay, CopyOptions.create().ignoreNullValue().setIgnoreProperties("id","orderNo")).copy();
|
BeanCopier.create(olderPay, newOrderPay, CopyOptions.create().ignoreNullValue().setIgnoreProperties("id","orderNo")).copy();
|
||||||
|
|
||||||
newOrderPay.setPayPrice(orderPay.getOrderPrice());
|
|
||||||
|
newOrderPay.setOrderPrice(BigDecimal.valueOf(orderPay.getOrderPriceInt()));
|
||||||
newOrderPay.setStartTime(orderPay.getStartTime());
|
newOrderPay.setStartTime(orderPay.getStartTime());
|
||||||
newOrderPay.setPayTime(new Date());
|
newOrderPay.setPayTime(new Date());
|
||||||
newOrderPay.setCreateTime(new Date());
|
newOrderPay.setCreateTime(new Date());
|
||||||
|
|||||||
@@ -220,6 +220,10 @@ public class OrderPay implements Serializable {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String merchantName;
|
private String merchantName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "订单费用")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Integer orderPriceInt;//为了方便转成BigDecimal orderPrice
|
||||||
|
|
||||||
public Long getExpirationDay() {
|
public Long getExpirationDay() {
|
||||||
switch(payStatus){
|
switch(payStatus){
|
||||||
case OrderConstants.PAY_STATUS_NO_PAY:
|
case OrderConstants.PAY_STATUS_NO_PAY:
|
||||||
|
|||||||
Reference in New Issue
Block a user