|
|
@@ -67,7 +67,8 @@ public class NwVersionController extends JeecgController<NwVersion, INwVersionSe
|
|
|
private INwVersionService nwVersionService;
|
|
|
@Value(value = "${jeecg.path.upload}")
|
|
|
private String uploadpath;
|
|
|
-
|
|
|
+ @Value("${server.path}")
|
|
|
+ private String path;
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
*
|
|
|
@@ -192,19 +193,20 @@ public class NwVersionController extends JeecgController<NwVersion, INwVersionSe
|
|
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
|
return super.importExcel(request, response, NwVersion.class);
|
|
|
}
|
|
|
-
|
|
|
+ @ApiOperation(value = "nw更新-安装包", notes = "nw更新-安装包")
|
|
|
@GetMapping(value = "/downLoadPackage")
|
|
|
public Result<String> downLoadPackage(HttpServletRequest request, HttpServletResponse response) {
|
|
|
-
|
|
|
NwVersion one = nwVersionService.lambdaQuery().orderByDesc(NwVersion::getCreateTime).last("limit 1").one();
|
|
|
- return Result.OK(one.getPath());
|
|
|
+ return Result.OK(path+one.getPath());
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "nw更新-JSON文件", notes = "nw更新-JSON文件")
|
|
|
+
|
|
|
@GetMapping(value = "/downLoadJson")
|
|
|
public Result<String> getJson(HttpServletRequest request, HttpServletResponse response) {
|
|
|
NwVersion one = nwVersionService.lambdaQuery().orderByDesc(NwVersion::getCreateTime).last("limit 1").one();
|
|
|
- return Result.OK(one.getJsonPath());
|
|
|
+ return Result.OK(path+one.getJsonPath());
|
|
|
|
|
|
}
|
|
|
}
|