|
|
@@ -39,6 +39,7 @@ import org.jeecg.modules.pay.config.RatiosUtil;
|
|
|
import org.jeecg.modules.pay.config.WechatConstants;
|
|
|
import org.jeecg.modules.pay.config.WechatUrlConstants;
|
|
|
import org.jeecg.modules.rabbitmq.DelayedMessageService;
|
|
|
+import org.jeecg.modules.system.app.dto.ClassGroupingDTO;
|
|
|
import org.jeecg.modules.system.app.dto.receiptPaymentDetails.ReceiptPaymentDetailsInfoVo;
|
|
|
import org.jeecg.modules.system.app.entity.*;
|
|
|
import org.jeecg.modules.system.app.form.PriceChangeForm;
|
|
|
@@ -2434,6 +2435,9 @@ public class OrderServiceImpl extends ServiceImpl<AppOrderMapper, AppOrder> impl
|
|
|
return previewOrderPlaceGymnasiumNoFixation;
|
|
|
}
|
|
|
|
|
|
+ @Resource
|
|
|
+ private AppClassGroupingMapper appClassGroupingMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public AppOrderInfoDTO queryOrderInfo(String orderId) {
|
|
|
|
|
|
@@ -2469,13 +2473,22 @@ public class OrderServiceImpl extends ServiceImpl<AppOrderMapper, AppOrder> impl
|
|
|
|
|
|
//子订单
|
|
|
List<AppOrderProInfo> proInfoList = appOrderProInfoMapper.selectList(Wrappers.<AppOrderProInfo>lambdaQuery().eq(AppOrderProInfo::getOrderId, orderId));
|
|
|
+ List<AppOrderProInfoVO> appOrderProInfoVOList = new ArrayList<>();
|
|
|
for (AppOrderProInfo appOrderProInfo : proInfoList) {
|
|
|
AppOrderProInfoVO appOrderProInfoVO = new AppOrderProInfoVO();
|
|
|
BeanUtil.copyProperties(appOrderProInfo, appOrderProInfoVO);
|
|
|
- //班级、教练名称
|
|
|
-// appOrderProInfoVO.setClassGroupingName().setCoachName();
|
|
|
+ //课程
|
|
|
+ if (appOrderProInfo.getType().equals(CommonConstant.ORDER_PRO_INFO_TYPE_5)){
|
|
|
+ //根据当前用户和课程获取班级名称
|
|
|
+ ClassGroupingDTO classGroupingDTO = appClassGroupingMapper.queryByUserId(appOrderProInfo.getFamilyUserId(), appOrderProInfo.getProductId());
|
|
|
+ //班级、教练名称
|
|
|
+ if (ObjectUtil.isNotEmpty(classGroupingDTO)){
|
|
|
+ appOrderProInfoVO.setClassGroupingName(classGroupingDTO.getClassName()).setCoachName(classGroupingDTO.getCoachUserName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ appOrderProInfoVOList.add(appOrderProInfoVO);
|
|
|
}
|
|
|
- appOrderInfoDTO.setProInfoList(proInfoList);
|
|
|
+ appOrderInfoDTO.setProInfoList(appOrderProInfoVOList);
|
|
|
|
|
|
//学校
|
|
|
if (appOrder.getType().equals(CommonConstant.ORDER_TYPE_0)) {
|