|
@@ -170,12 +170,13 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
//获取章列表
|
|
|
List<CourseChapterVo> chapterList = iClassGradeUserService.findChapterList(bo);
|
|
|
UserVo userVo = iUserService.queryById(bo.getUserId());
|
|
|
- if(Validator.isNotEmpty(goodsVo.getCertificateIds())){
|
|
|
- String[] s = goodsVo.getCertificateIds().split(",");
|
|
|
+ if(Validator.isNotEmpty(goodsVo.getCertificateTpId())){
|
|
|
+ // String[] s = goodsVo.getCertificateIds().split(",");
|
|
|
List<Long> tpIds = new ArrayList<>();
|
|
|
- for(String each : s) {
|
|
|
+ /* for(String each : s) {
|
|
|
tpIds.add(Long.valueOf(each));
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ tpIds.add(goodsVo.getCertificateTpId());
|
|
|
CertificateTpQueryBo queryBo = new CertificateTpQueryBo();
|
|
|
queryBo.setTpIds(tpIds);
|
|
|
queryBo.setStatus(new ArrayList<Integer>(Arrays.asList(1)));
|