|
@@ -128,7 +128,13 @@ public class UserTopUpConsumptionPointsOrderServiceImpl implements UserTopUpCons
|
|
|
// 转换金额
|
|
|
createReqVO.setPayPrice(createReqVO.getPayPrice() * DistriConstants.ONE_HUNDRED);
|
|
|
createReqVO.setTopUpConsumptionPoints(createReqVO.getPayPrice() * DistriConstants.PERCENT);
|
|
|
+
|
|
|
+ // 根据充值金额计算实际到账金额
|
|
|
+ if(createReqVO.getTopUpConsumptionPoints() >= Double.parseDouble(orderPercentageDO.getTriggerMagnificationPoints()) * DistriConstants.INTEGRAL_PAGE2DB){
|
|
|
createReqVO.setPracticalConsumptionPoints((long) (createReqVO.getTopUpConsumptionPoints() * Double.parseDouble(orderPercentageDO.getConsumptionMagnification())));
|
|
|
+ } else {
|
|
|
+ createReqVO.setPracticalConsumptionPoints(createReqVO.getTopUpConsumptionPoints().longValue());
|
|
|
+ }
|
|
|
createReqVO.setPercentTemplate(JSON.toJSONString(orderPercentageDO));
|
|
|
}
|
|
|
|