zoujiajian 1 년 전
부모
커밋
714dea681b
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      netflix-service/src/main/java/com/cyksj/service/order/impl/VipOrderDonServiceImpl.java

+ 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);
+				}
 			}
 		}
 	}