|
@@ -24,6 +24,7 @@ import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
|
import com.zhongzheng.modules.alioss.bo.OssRequest;
|
|
|
import com.zhongzheng.modules.alioss.service.OssService;
|
|
|
import com.zhongzheng.modules.alisms.vo.ResultBean;
|
|
|
+import com.zhongzheng.modules.base.service.ICertificateTpService;
|
|
|
import com.zhongzheng.modules.base.service.IProfileTpService;
|
|
|
import com.zhongzheng.modules.base.vo.ProfileTpVo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseChapterSectionQueryBo;
|
|
@@ -97,6 +98,7 @@ import com.zhongzheng.modules.order.mapper.OrderGoodsMapper;
|
|
|
import com.zhongzheng.modules.order.mapper.OrderMapper;
|
|
|
import com.zhongzheng.modules.order.service.IOrderGoodsService;
|
|
|
import com.zhongzheng.modules.order.service.IOrderService;
|
|
|
+import com.zhongzheng.modules.order.vo.CertificateOrderVo;
|
|
|
import com.zhongzheng.modules.order.vo.OrderGoodsVo;
|
|
|
import com.zhongzheng.modules.order.vo.OrderListVo;
|
|
|
import com.zhongzheng.modules.polyv.bo.PolyvLiveQueryBo;
|
|
@@ -200,6 +202,9 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
@Autowired
|
|
|
private IOrderGoodsService iOrderGoodsService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ICertificateTpService iCertificateTpService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private IGoodsService iGoodsService;
|
|
|
@Autowired
|
|
@@ -2275,6 +2280,24 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void certificateGenerate() {
|
|
|
+ //获取可以生成证书的订单信息(学完审核通过一个月以后)
|
|
|
+ List<CertificateOrderVo> vos = iOrderGoodsService.getCertificateOrder();
|
|
|
+ if (CollectionUtils.isEmpty(vos)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ vos.forEach(item -> {
|
|
|
+ //生成证书
|
|
|
+ ClassGradeUserQueryBo queryBo = new ClassGradeUserQueryBo();
|
|
|
+ queryBo.setOrderGoodsId(item.getOrderGoodsId());
|
|
|
+ queryBo.setGoodsId(item.getGoodsId());
|
|
|
+ queryBo.setGradeId(item.getGradeId());
|
|
|
+ queryBo.setUserId(item.getUserId());
|
|
|
+ iCertificateTpService.makeCertificatePhoto(queryBo);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
private String getWeeks(Long time){
|
|
|
Calendar calendar = Calendar.getInstance();
|