Commit 7935a565 authored by 李驰骋's avatar 李驰骋

版本更新参数设置调整

parent deff2fc1
...@@ -9,6 +9,7 @@ import com.ximai.mes.pro.domain.AppConfig; ...@@ -9,6 +9,7 @@ import com.ximai.mes.pro.domain.AppConfig;
import com.ximai.mes.pro.service.IAppConfigService; import com.ximai.mes.pro.service.IAppConfigService;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -52,9 +53,8 @@ public class AppConfigController extends BaseController { ...@@ -52,9 +53,8 @@ public class AppConfigController extends BaseController {
* 获取作业端配置记录详细信息 * 获取作业端配置记录详细信息
*/ */
@ApiOperation("获取作业端最新版本") @ApiOperation("获取作业端最新版本")
@PreAuthorize("@ss.hasPermi('md:config:query')")
@GetMapping(value = "/getVersion") @GetMapping(value = "/getVersion")
public AjaxResult getVersion(@PathVariable("appName") String appName) { public AjaxResult getVersion(@Param("appName") String appName) {
return AjaxResult.success(appConfigService.selectLastVersion(appName)); return AjaxResult.success(appConfigService.selectLastVersion(appName));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment