|
@@ -102,4 +102,17 @@ public class CourseBusinessServiceImpl extends ServiceImpl<CourseBusinessMapper,
|
|
|
}
|
|
|
return this.removeByIds(ids);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean editModel(CourseBusinessEditBo bo) {
|
|
|
+ for (Long businessId : bo.getBusinessIds()) {
|
|
|
+ CourseBusiness update =new CourseBusiness();
|
|
|
+ update.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ update.setId(businessId);
|
|
|
+ update.setTemplateStatus(bo.getTemplateStatus());
|
|
|
+ this.updateById(update);
|
|
|
+ }
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|