|
|
@@ -10,6 +10,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
@@ -28,6 +29,12 @@ import com.zhongzheng.common.utils.polyv.PolyvUtils;
|
|
|
import com.zhongzheng.common.utils.wxpay.*;
|
|
|
import com.zhongzheng.modules.base.service.IShoppingCartService;
|
|
|
import com.zhongzheng.modules.course.domain.Course;
|
|
|
+import com.zhongzheng.modules.course.domain.CourseBusiness;
|
|
|
+import com.zhongzheng.modules.course.domain.CourseEducationType;
|
|
|
+import com.zhongzheng.modules.course.domain.CourseProjectType;
|
|
|
+import com.zhongzheng.modules.course.service.ICourseBusinessService;
|
|
|
+import com.zhongzheng.modules.course.service.ICourseEducationTypeService;
|
|
|
+import com.zhongzheng.modules.course.service.ICourseProjectTypeService;
|
|
|
import com.zhongzheng.modules.course.service.ICourseService;
|
|
|
import com.zhongzheng.modules.exam.domain.ExamNumber;
|
|
|
import com.zhongzheng.modules.exam.service.IExamNoteService;
|
|
|
@@ -177,6 +184,15 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
@Autowired
|
|
|
private IOrderShareMoneyService iOrderShareMoneyService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ICourseEducationTypeService iCourseEducationTypeService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ICourseProjectTypeService iCourseProjectTypeService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ICourseBusinessService iCourseBusinessService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private ISysConfigService configService;
|
|
|
|
|
|
@@ -511,11 +527,24 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
vo.setRealname(user.getRealname());
|
|
|
vo.setTelphone(user.getTelphone());
|
|
|
vo.setIdCard(user.getIdCard());
|
|
|
+ vo.setTenantId(order.getTenantId().toString());
|
|
|
List<OrderShareGoodsVo> shareGoodsVoList = new ArrayList<>();
|
|
|
for(OrderGoods goods : goodsList){
|
|
|
GoodsVo goodsVo = iGoodsService.queryById(goods.getGoodsId());
|
|
|
OrderShareGoodsVo shareGoodsVo = BeanUtil.toBean(goodsVo, OrderShareGoodsVo.class);
|
|
|
shareGoodsVo.setEducationId(goodsVo.getEducationTypeId());
|
|
|
+ CourseEducationType type = iCourseEducationTypeService.getById(goodsVo.getEducationTypeId());
|
|
|
+ if (ObjectUtils.isNotNull(type)){
|
|
|
+ shareGoodsVo.setEducationName(type.getEducationName());
|
|
|
+ }
|
|
|
+ CourseProjectType projectType = iCourseProjectTypeService.getById(goodsVo.getProjectId());
|
|
|
+ if (ObjectUtils.isNotNull(projectType)){
|
|
|
+ shareGoodsVo.setProjectName(projectType.getProjectName());
|
|
|
+ }
|
|
|
+ CourseBusiness business = iCourseBusinessService.getById(goodsVo.getBusinessId());
|
|
|
+ if (ObjectUtils.isNotNull(business)){
|
|
|
+ shareGoodsVo.setBusinessName(business.getBusinessName());
|
|
|
+ }
|
|
|
shareGoodsVoList.add(shareGoodsVo);
|
|
|
}
|
|
|
vo.setGoodsList(shareGoodsVoList);
|