Commit fc76bb6d by 吕明尚

新增消费记录

parent 38018771
......@@ -22,14 +22,16 @@ public class SConsumptionRecords extends BaseEntity
/** 会员用户ID */
private Long consumerId;
/** 会员用户ID */
/**
* 订单ID
*/
private Long orderId;
/** 名称 */
private String name;
/** 满减最小可使用金额 */
@Excel(name = "满减最小可使用金额")
@Excel(name = "实付金额")
private BigDecimal price;
public void setId(Long id)
......
......@@ -78,11 +78,16 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
@Autowired
private DeviceOpService deviceOpService;
@Autowired
private QPService qpService;
@Autowired
private RedisUtil redisUtils;
@Autowired
private ISConsumptionRecordsService sConsumptionRecordsService;
/**
* 查询订单
*
......@@ -496,6 +501,12 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
consumerCouponService.updateById(consumerCoupon);
}
}
SConsumptionRecords sConsumptionRecords = new SConsumptionRecords();
sConsumptionRecords.setConsumerId(sOrder.getConsumerId());
sConsumptionRecords.setOrderId(sOrder.getId());
sConsumptionRecords.setName(sOrder.getPackName());
sConsumptionRecords.setPrice(sOrder.getPayPrice());
sConsumptionRecordsService.insertSConsumptionRecords(sConsumptionRecords);
}
@Override
......
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