|
@@ -1127,11 +1127,12 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
if (variablePoints < totalRefundScore) {//下单金额全退
|
|
if (variablePoints < totalRefundScore) {//下单金额全退
|
|
|
npr.setPoints(pointsRecord.getVariablePoints());
|
|
npr.setPoints(pointsRecord.getVariablePoints());
|
|
|
npr.setVariablePoints(BigDecimal.valueOf(0));
|
|
npr.setVariablePoints(BigDecimal.valueOf(0));
|
|
|
-
|
|
|
|
|
|
|
+ npr.setPointsAudit(1);
|
|
|
totalRefundScore -= variablePoints;
|
|
totalRefundScore -= variablePoints;
|
|
|
} else {//574>188,应退188
|
|
} else {//574>188,应退188
|
|
|
npr.setPoints(BigDecimal.valueOf(totalRefundScore));
|
|
npr.setPoints(BigDecimal.valueOf(totalRefundScore));
|
|
|
npr.setVariablePoints(BigDecimal.valueOf(0));
|
|
npr.setVariablePoints(BigDecimal.valueOf(0));
|
|
|
|
|
+ npr.setPointsAudit(2);
|
|
|
totalRefundScore=0;
|
|
totalRefundScore=0;
|
|
|
}
|
|
}
|
|
|
if (pointsRecord.getExpiryStatus()==2){
|
|
if (pointsRecord.getExpiryStatus()==2){
|