|
@@ -640,7 +640,22 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
type = OrderDetailTypeEnum.TEACHING;
|
|
type = OrderDetailTypeEnum.TEACHING;
|
|
}
|
|
}
|
|
studentPaymentOrderDetail4goodsGroup.setType(type);
|
|
studentPaymentOrderDetail4goodsGroup.setType(type);
|
|
- studentPaymentOrderDetail4goodsGroup.setPrice(goodsGroup.getPrice());
|
|
|
|
|
|
+
|
|
|
|
+ BigDecimal goodsPrice = new BigDecimal(0);
|
|
|
|
+
|
|
|
|
+ if(studentRegistration.getOrganId() == 55 && (newCourses == null || newCourses.size() == 0) && !(buyCloudTeacher || buyCloudTeacherPlus)){
|
|
|
|
+ //取商品零售价
|
|
|
|
+ if (StringUtils.isNotBlank(goodsGroup.getGoodsIdList())) {
|
|
|
|
+ List<Goods> goodsList = goodsDao.findGoodsByIds(goodsGroup.getGoodsIdList());
|
|
|
|
+ for(Goods goods : goodsList){
|
|
|
|
+ goodsPrice = goodsPrice.add(goods.getMarketPrice());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ goodsPrice = goodsGroup.getPrice();
|
|
|
|
+ }
|
|
|
|
+ studentPaymentOrderDetail4goodsGroup.setPrice(goodsPrice);
|
|
|
|
+
|
|
studentPaymentOrderDetail4goodsGroup.setGoodsIdList(goodsGroup.getGoodsIdList());
|
|
studentPaymentOrderDetail4goodsGroup.setGoodsIdList(goodsGroup.getGoodsIdList());
|
|
studentPaymentOrderDetail4goodsGroup.setCreateTime(date);
|
|
studentPaymentOrderDetail4goodsGroup.setCreateTime(date);
|
|
studentPaymentOrderDetail4goodsGroup.setUpdateTime(date);
|
|
studentPaymentOrderDetail4goodsGroup.setUpdateTime(date);
|