|
|
@ -244,7 +244,7 @@ public class AcitveProductInfoServiceImpl extends BaseServiceImpl<AcitveProductI |
|
|
// 效验可用积分是否足够兑换。 并且扣除积分
|
|
|
// 效验可用积分是否足够兑换。 并且扣除积分
|
|
|
AcitveProductInfoEntity acitveProductInfoEntity = baseDao.selectById(formDTO.getProductId()); |
|
|
AcitveProductInfoEntity acitveProductInfoEntity = baseDao.selectById(formDTO.getProductId()); |
|
|
UserPointsFormDTO userPointsFormDTO = new UserPointsFormDTO(); |
|
|
UserPointsFormDTO userPointsFormDTO = new UserPointsFormDTO(); |
|
|
userPointsFormDTO.setPoints(acitveProductInfoEntity.getPoints()); |
|
|
userPointsFormDTO.setPoints(-acitveProductInfoEntity.getPoints()); |
|
|
userPointsFormDTO.setUserId(formDTO.getUserId()); |
|
|
userPointsFormDTO.setUserId(formDTO.getUserId()); |
|
|
userPointsFeignClient.updataUserPoint(userPointsFormDTO); |
|
|
userPointsFeignClient.updataUserPoint(userPointsFormDTO); |
|
|
|
|
|
|
|
|
|