|
|
|
@ -5,6 +5,7 @@ import cn.jlw.Interceptor.SCoreUser;
|
|
|
|
|
import com.ibeetl.admin.core.annotation.Function;
|
|
|
|
|
import com.ibeetl.admin.core.entity.CoreUser;
|
|
|
|
|
import com.ibeetl.admin.core.file.FileService;
|
|
|
|
|
import com.ibeetl.admin.core.service.CorePlatformService;
|
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
|
import com.ibeetl.jlw.entity.CourseInfo;
|
|
|
|
|
import com.ibeetl.jlw.entity.FileEntity;
|
|
|
|
@ -50,6 +51,8 @@ public class CourseInfoController{
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
FileService fileService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private CorePlatformService corePlatformService;
|
|
|
|
|
|
|
|
|
|
//初始化树缓存
|
|
|
|
|
public static void init(CourseInfoService courseInfoService){
|
|
|
|
@ -205,6 +208,7 @@ public class CourseInfoController{
|
|
|
|
|
CourseInfo courseInfo = courseInfoService.add(courseInfoQuery);
|
|
|
|
|
//移除缓存
|
|
|
|
|
courseInfoService.flushCache(courseInfo.getCourseInfoId());
|
|
|
|
|
corePlatformService.clearDictCache();
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -217,6 +221,7 @@ public class CourseInfoController{
|
|
|
|
|
if (success) {
|
|
|
|
|
//移除缓存
|
|
|
|
|
courseInfoService.flushCache(courseInfoQuery.getCourseInfoId());
|
|
|
|
|
corePlatformService.clearDictCache();
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
} else {
|
|
|
|
|
return JsonResult.failMessage("更新失败");
|
|
|
|
@ -243,6 +248,7 @@ public class CourseInfoController{
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JsonResult delete(String ids) {
|
|
|
|
|
courseInfoService.deleteCourseInfo(ids);
|
|
|
|
|
corePlatformService.clearDictCache();
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|