feat:修复线上续费订单费用

This commit is contained in:
yangqingyuan
2024-08-21 16:40:16 +08:00
parent cdadf240ff
commit 22a26a9236
2 changed files with 6 additions and 1 deletions

View File

@@ -240,7 +240,8 @@ public class OrderPayController extends BaseController {
OrderPay newOrderPay = new OrderPay();
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.setPayTime(new Date());
newOrderPay.setCreateTime(new Date());

View File

@@ -220,6 +220,10 @@ public class OrderPay implements Serializable {
@TableField(exist = false)
private String merchantName;
@ApiModelProperty(value = "订单费用")
@TableField(exist = false)
private Integer orderPriceInt;//为了方便转成BigDecimal orderPrice
public Long getExpirationDay() {
switch(payStatus){
case OrderConstants.PAY_STATUS_NO_PAY: