Commit fc76bb6d by 吕明尚

新增消费记录

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