|
@@ -1519,11 +1519,12 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
}
|
|
}
|
|
|
|
|
|
//讲义
|
|
//讲义
|
|
- /* if (ObjectUtil.isNotNull(goods.getHandoutsId())){
|
|
|
|
|
|
+ if (ObjectUtil.isNotNull(goods.getHandoutsId())){
|
|
CourseHandouts courseHandouts = iCourseHandoutsService.getById(goods.getHandoutsId());
|
|
CourseHandouts courseHandouts = iCourseHandoutsService.getById(goods.getHandoutsId());
|
|
if (ObjectUtil.isNotNull(courseHandouts)){
|
|
if (ObjectUtil.isNotNull(courseHandouts)){
|
|
Long oid = courseHandouts.getHandoutsId();
|
|
Long oid = courseHandouts.getHandoutsId();
|
|
- Long newId = getNewIdByTenant(oid, GoodsCopyEnum.COURSE_HANDOUTS.getType(),newTenantId);
|
|
|
|
|
|
+// Long newId = getNewIdByTenant(oid, GoodsCopyEnum.COURSE_HANDOUTS.getType(),newTenantId);
|
|
|
|
+ Long newId = baseMapper.getNewHandoutsId(courseHandouts.getHandoutsName(),courseHandouts.getEncoder(),newTenantId);
|
|
if (ObjectUtil.isNull(newId)){
|
|
if (ObjectUtil.isNull(newId)){
|
|
//讲义业务层次
|
|
//讲义业务层次
|
|
List<CourseHandoutsBusiness> handoutsBusinessList = iCourseHandoutsBusinessService
|
|
List<CourseHandoutsBusiness> handoutsBusinessList = iCourseHandoutsBusinessService
|
|
@@ -1561,7 +1562,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
handleCourseFile(courseFileList,newId,newTenantId);
|
|
handleCourseFile(courseFileList,newId,newTenantId);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
|
|
|
|
//科目ID,拼接
|
|
//科目ID,拼接
|
|
if (StringUtils.isNotBlank(goods.getSubjectIds())){
|
|
if (StringUtils.isNotBlank(goods.getSubjectIds())){
|