zoujiajian 1 год назад
Родитель
Сommit
714dea681b

+ 4 - 0
netflix-service/src/main/java/com/cyksj/service/order/impl/VipOrderDonServiceImpl.java

@@ -556,6 +556,10 @@ public class VipOrderDonServiceImpl extends ServiceImpl<VipOrderDonMapper, VipOr
 				orderDonGalaxyCoinRecord.setDeductMoney(thisDeductMoney);
 				orderDonGalaxyCoinRecord.setIsVip(Boolean.TRUE);
 				orderDonGalaxyCoinRecordMapper.insert(orderDonGalaxyCoinRecord);
+				orderDon.setMoney(orderMoney.subtract(thisDeductMoney));
+				if (orderDon.getMoney().compareTo(BigDecimal.ZERO) == 0) {
+					orderDon.setType(VipOrderDon.Type.GALAXY_COIN);
+				}
 			}
 		}
 	}