|
@@ -441,7 +441,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
studentPaymentOrderDetail4goodsGroup.setPaymentOrderId(studentPaymentOrder.getId());
|
|
studentPaymentOrderDetail4goodsGroup.setPaymentOrderId(studentPaymentOrder.getId());
|
|
studentPaymentOrderDetail4goodsGroup.setKitGroupPurchaseType(goodsGroup.getKitGroupPurchaseType());
|
|
studentPaymentOrderDetail4goodsGroup.setKitGroupPurchaseType(goodsGroup.getKitGroupPurchaseType());
|
|
studentPaymentOrderDetailList.add(studentPaymentOrderDetail4goodsGroup);
|
|
studentPaymentOrderDetailList.add(studentPaymentOrderDetail4goodsGroup);
|
|
- if (OrderDetailTypeEnum.MUSICAL.equals(type) && KitGroupPurchaseTypeEnum.GROUP.equals(goodsGroup.getKitGroupPurchaseType())) {
|
|
|
|
|
|
+ if (OrderDetailTypeEnum.MUSICAL.equals(type)) {
|
|
maintenanceGoodsId = goodsGroup.getGoodsIdList();
|
|
maintenanceGoodsId = goodsGroup.getGoodsIdList();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -467,7 +467,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
}
|
|
}
|
|
if (buyMaintenance) {
|
|
if (buyMaintenance) {
|
|
if ("".equals(maintenanceGoodsId)) {
|
|
if ("".equals(maintenanceGoodsId)) {
|
|
- throw new BizException("团购乐器才能购买乐保,请核查");
|
|
|
|
|
|
+ throw new BizException("有乐器才能购买乐保,请核查");
|
|
}
|
|
}
|
|
BigDecimal maintenancePrice = new BigDecimal(sysConfigDao.findConfigValue("maintenance_price"));
|
|
BigDecimal maintenancePrice = new BigDecimal(sysConfigDao.findConfigValue("maintenance_price"));
|
|
StudentPaymentOrderDetail maintenanceOrderDetail = new StudentPaymentOrderDetail();
|
|
StudentPaymentOrderDetail maintenanceOrderDetail = new StudentPaymentOrderDetail();
|
|
@@ -566,7 +566,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
studentPaymentOrderDetail4goodsGroup.setPaymentOrderId(studentPaymentOrder.getId());
|
|
studentPaymentOrderDetail4goodsGroup.setPaymentOrderId(studentPaymentOrder.getId());
|
|
studentPaymentOrderDetail4goodsGroup.setKitGroupPurchaseType(goodsGroup.getKitGroupPurchaseType());
|
|
studentPaymentOrderDetail4goodsGroup.setKitGroupPurchaseType(goodsGroup.getKitGroupPurchaseType());
|
|
studentPaymentOrderDetailList.add(studentPaymentOrderDetail4goodsGroup);
|
|
studentPaymentOrderDetailList.add(studentPaymentOrderDetail4goodsGroup);
|
|
- if (OrderDetailTypeEnum.MUSICAL.equals(type) && KitGroupPurchaseTypeEnum.GROUP.equals(goodsGroup.getKitGroupPurchaseType())) {
|
|
|
|
|
|
+ if (OrderDetailTypeEnum.MUSICAL.equals(type)) {
|
|
maintenanceGoodsId = goodsGroup.getGoodsIdList();
|
|
maintenanceGoodsId = goodsGroup.getGoodsIdList();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -592,7 +592,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
}
|
|
}
|
|
if (buyMaintenance) {
|
|
if (buyMaintenance) {
|
|
if ("".equals(maintenanceGoodsId)) {
|
|
if ("".equals(maintenanceGoodsId)) {
|
|
- throw new BizException("团购乐器才能购买乐保,请核查");
|
|
|
|
|
|
+ throw new BizException("有乐器才能购买乐保,请核查");
|
|
}
|
|
}
|
|
BigDecimal maintenancePrice = new BigDecimal(sysConfigDao.findConfigValue("maintenance_price"));
|
|
BigDecimal maintenancePrice = new BigDecimal(sysConfigDao.findConfigValue("maintenance_price"));
|
|
StudentPaymentOrderDetail maintenanceOrderDetail = new StudentPaymentOrderDetail();
|
|
StudentPaymentOrderDetail maintenanceOrderDetail = new StudentPaymentOrderDetail();
|