|
@@ -15,10 +15,13 @@ import com.zhongzheng.modules.base.service.ICertificateTpService;
|
|
import com.zhongzheng.modules.base.vo.CertificatePhotoVo;
|
|
import com.zhongzheng.modules.base.vo.CertificatePhotoVo;
|
|
import com.zhongzheng.modules.base.vo.CertificateTpVo;
|
|
import com.zhongzheng.modules.base.vo.CertificateTpVo;
|
|
import com.zhongzheng.modules.course.domain.CourseBusiness;
|
|
import com.zhongzheng.modules.course.domain.CourseBusiness;
|
|
|
|
+import com.zhongzheng.modules.course.vo.CourseChapterVo;
|
|
|
|
+import com.zhongzheng.modules.course.vo.CourseUserEducationTypeVo;
|
|
import com.zhongzheng.modules.goods.service.IGoodsAttachedService;
|
|
import com.zhongzheng.modules.goods.service.IGoodsAttachedService;
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
import com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo;
|
|
import com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo;
|
|
|
|
+import com.zhongzheng.modules.grade.service.IClassGradeUserService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -49,6 +52,8 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IGoodsService iGoodsService;
|
|
private IGoodsService iGoodsService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private IClassGradeUserService iClassGradeUserService;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public CertificateTpVo queryById(Long tpId){
|
|
public CertificateTpVo queryById(Long tpId){
|
|
@@ -113,6 +118,7 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
@Override
|
|
@Override
|
|
public String makeCertificatePhoto(ClassGradeUserQueryBo bo) {
|
|
public String makeCertificatePhoto(ClassGradeUserQueryBo bo) {
|
|
GoodsVo goodsVo = iGoodsService.selectDetail(bo.getGoodsId());
|
|
GoodsVo goodsVo = iGoodsService.selectDetail(bo.getGoodsId());
|
|
|
|
+ List<CourseChapterVo> chapterList = iClassGradeUserService.findChapterList(bo);
|
|
if(Validator.isNotEmpty(goodsVo.getCertificateIds())){
|
|
if(Validator.isNotEmpty(goodsVo.getCertificateIds())){
|
|
String[] s = goodsVo.getCertificateIds().split(",");
|
|
String[] s = goodsVo.getCertificateIds().split(",");
|
|
List<Long> tpIds = new ArrayList<>();
|
|
List<Long> tpIds = new ArrayList<>();
|