|
@@ -6,6 +6,7 @@ import lombok.RequiredArgsConstructor;
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
import jakarta.validation.constraints.*;
|
|
import jakarta.validation.constraints.*;
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
+import org.dromara.common.core.domain.AjaxResult;
|
|
import org.dromara.system.domain.xiake.XiakeConfig;
|
|
import org.dromara.system.domain.xiake.XiakeConfig;
|
|
import org.dromara.system.domain.xiake.bo.XiakeConfigBo;
|
|
import org.dromara.system.domain.xiake.bo.XiakeConfigBo;
|
|
import org.dromara.system.domain.xiake.vo.XiakeConfigVo;
|
|
import org.dromara.system.domain.xiake.vo.XiakeConfigVo;
|
|
@@ -24,6 +25,8 @@ import org.dromara.common.excel.utils.ExcelUtil;
|
|
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
|
|
|
+import static org.dromara.common.core.domain.AjaxResult.success;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 下课时间配置
|
|
* 下课时间配置
|
|
*
|
|
*
|
|
@@ -121,4 +124,16 @@ public class XiakeConfigController extends BaseController {
|
|
@PathVariable Long[] configIds) {
|
|
@PathVariable Long[] configIds) {
|
|
return toAjax(xiakeConfigService.deleteWithValidByIds(List.of(configIds), true));
|
|
return toAjax(xiakeConfigService.deleteWithValidByIds(List.of(configIds), true));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 刷新参数缓存
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+ @Log(title = "参数管理", businessType = BusinessType.CLEAN)
|
|
|
|
+ @DeleteMapping("/refreshCache")
|
|
|
|
+ public AjaxResult refreshCache()
|
|
|
|
+ {
|
|
|
|
+ xiakeConfigService.resetConfigCache();
|
|
|
|
+ return AjaxResult.success();
|
|
|
|
+ }
|
|
}
|
|
}
|