13693261870
7 天以前 b8d62de41ff7e1e0549061308aa11f68cf881ed9
修改所有的controller
已修改55个文件
已删除3个文件
4140 ■■■■■ 文件已修改
se-publish/src/main/java/com/terra/publish/controller/TestController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/pom.xml 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/SeSystemApp.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/aspect/LogAspect.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/config/SwaggerConfig.java 76 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/config/WebConfig.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/all/BaseQueryController.java 226 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/all/CrdsController.java 164 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/all/FmeItController.java 290 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/all/PermsController.java 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/all/SignController.java 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/DataCountController.java 88 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/DataQueryController.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/DictController.java 93 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/DirController.java 73 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/DomainController.java 109 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/MetaController.java 161 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/ProjectController.java 57 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/PublishController.java 96 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/StyleController.java 97 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/TaskController.java 73 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/VerController.java 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/WmtsController.java 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/upload/CheckController.java 70 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/upload/QueryController.java 80 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/upload/UploadController.java 70 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/ApplyController.java 71 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/ComprehensiveController.java 93 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/DataLibController.java 65 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/ExportController.java 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/InquiryController.java 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/MarkController.java 61 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/ModelController.java 67 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/ArgsController.java 81 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/AuthController.java 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/BlacklistController.java 87 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/CtrlController.java 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/DepController.java 61 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/DownlogController.java 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/LayerController.java 65 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/LoginController.java 94 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/MenuAuthController.java 97 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/MenuController.java 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/OperateController.java 94 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/ReportController.java 59 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/ResController.java 98 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/ResLogController.java 55 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/ResOpController.java 94 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/RoleController.java 82 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/RoleLayerController.java 69 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/RoleMenuAuthController.java 93 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/RoleResController.java 69 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/RoleUserController.java 81 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/TokenController.java 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/UserController.java 118 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/entity/all/StaticData.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/service/data/UploadService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/resources/bootstrap.yml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-publish/src/main/java/com/terra/publish/controller/TestController.java
@@ -12,7 +12,7 @@
public class TestController extends BaseController {
    public static final SimpleDateFormat YMDHMS_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    @GetMapping(value = "/test")
    @GetMapping(value = "/testp")
    public ResponseMsg<Object> test() {
        try {
            String date = YMDHMS_FORMAT.format(new Date());
se-system/pom.xml
@@ -113,21 +113,11 @@
            <version>1.1</version>
        </dependency>
        <!--swagger-->
        <!-- SpringDoc webmvc -->
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger2</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger-ui</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>27.0-jre</version>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-ui</artifactId>
            <version>${springdoc.version}</version>
        </dependency>
        <!--httpclient-->
se-system/src/main/java/com/terra/system/SeSystemApp.java
@@ -4,7 +4,6 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
 * ç³»ç»Ÿæ¨¡å—
@@ -14,7 +13,6 @@
 * @author admin
 */
@EnableAsync
@EnableSwagger2
@EnableAspectJAutoProxy(exposeProxy = true)
@SpringBootApplication(scanBasePackages = {"com.terra.system.*"})
public class SeSystemApp
se-system/src/main/java/com/terra/system/aspect/LogAspect.java
@@ -6,7 +6,7 @@
import com.terra.system.helper.WebHelper;
import com.terra.system.service.sys.OperateService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.ProceedingJoinPoint;
@@ -93,9 +93,9 @@
            oe.setExec(time);
            // è®¾ç½®æ¨¡å—
            Api api = clazz.getAnnotation(Api.class);
            if (api != null) {
                String[] strs = api.tags()[0].split(SPLIT);
            Tag tag = clazz.getAnnotation(Tag.class);
            if (tag != null) {
                String[] strs = tag.name().split(SPLIT);
                oe.setModular1(strs[0]);
                oe.setModular2(strs[1]);
            }
se-system/src/main/java/com/terra/system/config/SwaggerConfig.java
ÎļþÒÑɾ³ý
se-system/src/main/java/com/terra/system/config/WebConfig.java
@@ -8,12 +8,14 @@
import javax.annotation.Resource;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.util.AntPathMatcher;
import org.springframework.web.servlet.config.annotation.*;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.List;
/**
@@ -107,6 +109,9 @@
        converter.setFastJsonConfig(config);
        converter.setDefaultCharset(StandardCharsets.UTF_8);
        converter.setSupportedMediaTypes(Collections.singletonList(
                MediaType.APPLICATION_JSON
        ));
        converters.add(converter);
    }
}
se-system/src/main/java/com/terra/system/controller/all/BaseQueryController.java
@@ -30,11 +30,14 @@
import com.terra.system.service.sys.DepService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -77,11 +80,11 @@
    DictService dictService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "filter", value = "过滤条件", dataType = "String", paramType = "query", example = "gid >= 50 and name like '县' and objectid < 5000.0"),
            @ApiImplicitParam(name = "wkt", value = "WKT(著名文本)", dataType = "String", paramType = "query", example = "gAPpDbZ53XfoQfvT8dj/uhBWX5os8kBJQ1LrNvH3VX7byFQdUJMPiEr8Fkj0q2i1pw+L8KFrvR0MLXq2xaO21nlQQXmEPofJxpDQZwEWUIFZsToXo1kLRD3t6WQezxWB8YTzXHM20Ba73x/ZuuezVhOFOq1U8HKf1dXQdv7gBzEB6fWMmFDc3FuH8GDDHv3LfT86Gio9VgMO6ohlrUdf3ZKtTHeLSuzGF4t0RZuX97YBNo25IIzpeTfRTXBxfdxA")
    @Operation(description = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", example = "dlgagnp"),
            @Parameter(name = "filter", description = "过滤条件", example = "gid >= 50 and name like '县' and objectid < 5000.0"),
            @Parameter(name = "wkt", description = "WKT(著名文本)", example = "gAPpDbZ53XfoQfvT8dj/uhBWX5os8kBJQ1LrNvH3VX7byFQdUJMPiEr8Fkj0q2i1pw+L8KFrvR0MLXq2xaO21nlQQXmEPofJxpDQZwEWUIFZsToXo1kLRD3t6WQezxWB8YTzXHM20Ba73x/ZuuezVhOFOq1U8HKf1dXQdv7gBzEB6fWMmFDc3FuH8GDDHv3LfT86Gio9VgMO6ohlrUdf3ZKtTHeLSuzGF4t0RZuX97YBNo25IIzpeTfRTXBxfdxA")
    })
    @GetMapping(value = "/selectCount")
    @PostMapping(value = "/selectCount")
@@ -105,17 +108,16 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "dirs", value = "目录编码", dataType = "String", paramType = "query", example = "00,01"),
            @ApiImplicitParam(name = "filter", value = "过滤条件", dataType = "String", paramType = "query", example = "gid >= 50 and name like '县' and objectid < 5000.0"),
            @ApiImplicitParam(name = "wkt", value = "WKT(著名文本)", dataType = "String", paramType = "query", example = ""),
            //@ApiImplicitParam(name = "srid", value = "空间引用标识符", dataType = "Integer", paramType = "query", example = "4326"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "hasGeom", value = "是/否包含空间信息", dataType = "Integer", paramType = "query", example = "1")
    @Operation(description = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp"),
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "dirs", description = "目录编码", in = ParameterIn.QUERY, example = "00,01"),
            @Parameter(name = "filter", description = "过滤条件", in = ParameterIn.QUERY, example = "gid >= 50 and name like '县' and objectid < 5000.0"),
            @Parameter(name = "wkt", description = "WKT(著名文本)", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "hasGeom", description = "是/否包含空间信息", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    @PostMapping(value = "/selectByPage")
@@ -187,12 +189,12 @@
    }
    @SysLog()
    @ApiOperation(value = "缓冲区查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "wkt", value = "WKT(著名文本)", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "buffer", value = "缓冲区大小", dataType = "Double", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "limit", value = "限制条数", dataType = "Integer", paramType = "query", example = "20")
    @Operation(description = "缓冲区查询")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp"),
            @Parameter(name = "wkt", description = "WKT(著名文本)", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "buffer", description = "缓冲区大小", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "limit", description = "限制条数", in = ParameterIn.QUERY, example = "20")
    })
    @GetMapping(value = "/selectByBuffer")
    public ResponseMsg<List<?>> selectByBuffer(String name, String wkt, Double buffer, Integer limit) {
@@ -226,12 +228,12 @@
    }
    @SysLog()
    @ApiOperation(value = "根据父ID分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "metaid", value = "父ID", dataType = "String", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(description = "根据父ID分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "metaid", description = "父ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPageAndCountByPid")
    public ResponseMsg<List<MetaEntity>> selectPageAndCountByPid(Integer metaid, String name, Integer pageSize, Integer pageIndex) {
@@ -257,10 +259,10 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询WKT")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "gid", value = "GID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(description = "根据ID查询WKT")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp"),
            @Parameter(name = "gid", description = "GID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectWktById")
    public ResponseMsg<String> selectWktById(String name, Integer gid) {
@@ -287,10 +289,10 @@
    }
    @SysLog()
    @ApiOperation(value = "根据GID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "gid", value = "GID", dataType = "int", paramType = "query", example = "1")
    @Operation(description = "根据GID查询")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp"),
            @Parameter(name = "gid", description = "GID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByGid")
    public ResponseMsg<Object> selectByGid(String name, int gid) {
@@ -316,9 +318,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据实体名查询表名")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp")
    @Operation(description = "根据实体名查询表名")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp")
    })
    @GetMapping(value = "/selectTabByEntity")
    public ResponseMsg<Object> selectTabByEntity(String name) {
@@ -337,11 +339,11 @@
    }
    @SysLog()
    @ApiOperation(value = "模糊搜索字段")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "field", value = "字段", dataType = "String", paramType = "query", example = "name"),
            @ApiImplicitParam(name = "value", value = "值", dataType = "String", paramType = "query", example = "'县'")
    @Operation(description = "模糊搜索字段")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp"),
            @Parameter(name = "field", description = "字段", in = ParameterIn.QUERY, example = "name"),
            @Parameter(name = "value", description = "值", in = ParameterIn.QUERY, example = "'县'")
    })
    @GetMapping(value = "/selectFieldFuzzy")
    public ResponseMsg<List<String>> selectFieldFuzzy(String name, String field, String value) {
@@ -369,9 +371,9 @@
    }
    @SysLog()
    @ApiOperation(value = "模糊搜索用户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "用户名", dataType = "String", paramType = "query", example = "室")
    @Operation(description = "模糊搜索用户")
    @Parameters({
            @Parameter(name = "name", description = "用户名", in = ParameterIn.QUERY, example = "室")
    })
    @GetMapping(value = "/selectUserFuzzy")
    public ResponseMsg<List<IdNameEntity>> selectUserFuzzy(String name) {
@@ -385,9 +387,9 @@
    }
    @SysLog()
    @ApiOperation(value = "模糊搜索单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "单位名", dataType = "String", paramType = "query", example = "司")
    @Operation(description = "模糊搜索单位")
    @Parameters({
            @Parameter(name = "name", description = "单位名", in = ParameterIn.QUERY, example = "司")
    })
    @GetMapping(value = "/selectDepFuzzy")
    public ResponseMsg<List<IdNameEntity>> selectDepFuzzy(String name) {
@@ -401,10 +403,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "点"),
            @ApiImplicitParam(name = "hasGeom", value = "含有Geom字段", dataType = "Boolean", paramType = "query", example = "false")
    @Operation(description = "查询所有表")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "点"),
            @Parameter(name = "hasGeom", description = "含有Geom字段", in = ParameterIn.QUERY, example = "false")
    })
    @GetMapping(value = "/selectTabs")
    public ResponseMsg<List<TabEntity>> selectTabs(String name, Boolean hasGeom) {
@@ -418,16 +420,16 @@
    }
    @SysLog()
    @ApiOperation(value = "根据表名分页查询表")
    @Operation(description = "根据表名分页查询表")
    @GetMapping(value = "/selectTabsByPage")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "dirs", value = "目录编码", dataType = "String", paramType = "query", example = "00,01"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_"),
            @ApiImplicitParam(name = "types", value = "类别", dataType = "String", paramType = "query", example = "测绘(ESV)"),
            @ApiImplicitParam(name = "hasGeom", value = "含有Geom字段", dataType = "Boolean", paramType = "query", example = "false"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Parameters({
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "dirs", description = "目录编码", in = ParameterIn.QUERY, example = "00,01"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_"),
            @Parameter(name = "types", description = "类别", in = ParameterIn.QUERY, example = "测绘(ESV)"),
            @Parameter(name = "hasGeom", description = "含有Geom字段", in = ParameterIn.QUERY, example = "false"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    public ResponseMsg<Object> selectTabsByPage(String depcode, String dirs, String tab, String types, Boolean hasGeom, Integer pageSize, Integer pageIndex) {
        try {
@@ -505,9 +507,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字段信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlg25wAanp")
    @Operation(description = "查询字段信息")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlg25wAanp")
    })
    @GetMapping(value = "/selectFields")
    public ResponseMsg<List<DictEntity>> selectFields(String name) {
@@ -532,10 +534,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字段信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg25wAanp")
    @Operation(description = "查询字段信息")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg25wAanp")
    })
    @GetMapping(value = "/selectTabFields")
    public ResponseMsg<List<DictEntity>> selectTabFields(String ns, String tab) {
@@ -553,9 +555,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询值域信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlg25wAanp")
    @Operation(description = "查询值域信息")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlg25wAanp")
    })
    @GetMapping(value = "/selectDomains")
    public ResponseMsg<List<DomainEntity>> selectDomains(String name) {
@@ -580,10 +582,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tabName", value = "表名", dataType = "String", paramType = "query", example = "lf.sys_style"),
            @ApiImplicitParam(name = "eventid", value = "主键", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    @Operation(description = "查询文件")
    @Parameters({
            @Parameter(name = "tabName", description = "表名", in = ParameterIn.QUERY, example = "lf.sys_style"),
            @Parameter(name = "eventid", description = "主键", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    })
    @GetMapping(value = "/selectFiles")
    public ResponseMsg<List<AttachEntity>> selectFiles(String tabName, String eventid) {
@@ -601,9 +603,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(description = "删除文件")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deleteFiles(@RequestParam List<Integer> ids) {
@@ -621,9 +623,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询元数据中溢出的单位ID")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "reqEntity", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(description = "查询元数据中溢出的单位ID")
    @Parameters({
            @Parameter(name = "reqEntity", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/selectMetaOverflowDep")
@@ -647,9 +649,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询DB中溢出的单位ID")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "reqEntity", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(description = "查询DB中溢出的单位ID")
    @Parameters({
            @Parameter(name = "reqEntity", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/selectDbOverflowDep")
@@ -676,9 +678,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据单位编码数组查询单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "codes", value = "单位编码数组", dataType = "String", paramType = "query", allowMultiple = true, example = "00,0001")
    @Operation(description = "根据单位编码数组查询单位")
    @Parameters({
            @Parameter(name = "codes", description = "单位编码数组", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "00,0001")
    })
    @GetMapping(value = "/selectDepsByCodes")
    public ResponseMsg<Object> selectDepsByCodes(String[] codes) {
@@ -696,9 +698,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载DB数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dr", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(description = "下载DB数据")
    @Parameters({
            @Parameter(name = "dr", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/downloadDbData")
@@ -730,9 +732,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查看文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(description = "查看文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/downloadForView")
    public void downloadForView(String guid, HttpServletResponse res) {
@@ -740,11 +742,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(description = "分页查询下载文件")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPageCountForDownload")
    public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -771,9 +773,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询目录类别")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "D")
    @Operation(description = "查询目录类别")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "D")
    })
    @GetMapping(value = "/selectDirTypes")
    public ResponseMsg<Object> selectDirTypes(String name) {
@@ -787,9 +789,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询项目名称")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "西")
    @Operation(description = "查询项目名称")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "西")
    })
    @GetMapping(value = "/selectProject")
    public ResponseMsg<Object> selectProject(String name) {
@@ -803,9 +805,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据元数据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(description = "根据元数据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectMetaById")
    public ResponseMsg<MetaEntity> selectMetaById(int id) {
se-system/src/main/java/com/terra/system/controller/all/CrdsController.java
ÎļþÒÑɾ³ý
se-system/src/main/java/com/terra/system/controller/all/FmeItController.java
ÎļþÒÑɾ³ý
se-system/src/main/java/com/terra/system/controller/all/PermsController.java
@@ -10,12 +10,13 @@
import com.terra.system.service.sys.LayerService;
import com.terra.system.service.sys.MenuService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -24,7 +25,7 @@
 * æŽˆæƒæŽ§åˆ¶å™¨
 * @author WWW
 */
@Api(tags = "运维管理\\授权管理")
@Tag(name = "运维管理\\授权管理")
@RestController
@RequestMapping("/perms")
public class PermsController extends BaseController {
@@ -41,7 +42,7 @@
    LayerService layerService;
    @SysLog()
    @ApiOperation(value = "查询当前用户的图层授权")
    @Operation(summary = "查询当前用户的图层授权")
    @GetMapping(value = "/selectLayers")
    public ResponseMsg<Object> selectLayers(HttpServletRequest req) {
        try {
@@ -60,7 +61,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询当前用户的投影图层授权")
    @Operation(summary = "查询当前用户的投影图层授权")
    @GetMapping(value = "/selectProjectLayers")
    public ResponseMsg<Object> selectProjectLayers(HttpServletRequest req) {
        try {
@@ -79,7 +80,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询当前用户的资源授权")
    @Operation(summary = "查询当前用户的资源授权")
    @GetMapping(value = "/selectRes")
    public ResponseMsg<Object> selectRes(HttpServletRequest req) {
        try {
@@ -98,7 +99,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询当前用户的菜单授权")
    @Operation(summary = "查询当前用户的菜单授权")
    @GetMapping(value = "/selectMenus")
    public ResponseMsg<List<MenusAuthEntity>> selectMenus(HttpServletRequest req) {
        try {
@@ -117,7 +118,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询当前用户的权限授权")
    @Operation(summary = "查询当前用户的权限授权")
    @GetMapping(value = "/selectPerms")
    public ResponseMsg<List<String>> selectPerms(HttpServletRequest req) {
        try {
@@ -136,7 +137,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询当前用户的权限授权实体集合")
    @Operation(summary = "查询当前用户的权限授权实体集合")
    @GetMapping(value = "/selectPermsEntity")
    public ResponseMsg<List<PermsAuthEntity>> selectPermsEntity(HttpServletRequest req) {
        try {
@@ -155,7 +156,7 @@
    }
    @SysLog()
    @ApiOperation(value = "清空授权缓存")
    @Operation(summary = "清空授权缓存")
    @GetMapping(value = "/deletePermsCache")
    public ResponseMsg<Boolean> deletePermsCache() {
        try {
@@ -168,7 +169,7 @@
    }
    @SysLog()
    @ApiOperation(value = "清空所有缓存")
    @Operation(summary = "清空所有缓存")
    @GetMapping(value = "/deleteAllCache")
    public ResponseMsg<Boolean> deleteAllCache() {
        try {
@@ -181,7 +182,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询用户角色")
    @Operation(summary = "查询用户角色")
    @GetMapping("/selectRoles")
    public ResponseMsg<Object> selectRoles(HttpServletRequest req) {
        try {
@@ -199,9 +200,9 @@
    }
    @SysLog()
    @ApiOperation(value = "递归查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "菜单ID", dataType = "Integer", paramType = "query", example = "14")
    @Operation(summary = "递归查询")
    @Parameters({
            @Parameter(name = "id", description = "菜单ID", in = ParameterIn.QUERY, example = "14")
    })
    @GetMapping(value = "/selectMenuRecursive")
    public ResponseMsg<Object> selectMenuRecursive(int id, HttpServletRequest req) {
se-system/src/main/java/com/terra/system/controller/all/SignController.java
@@ -16,11 +16,12 @@
import com.terra.system.service.sys.OperateService;
import com.terra.system.service.sys.TokenService;
import com.terra.system.service.sys.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
@@ -32,7 +33,7 @@
 * @author WWW
 * @date   2022-09-21
 */
@Api(tags = "运维管理\\签名管理")
@Tag(name = "运维管理\\签名管理")
@RestController
@RequestMapping("/sign")
public class SignController extends BaseController {
@@ -58,7 +59,7 @@
    private ScheduleService scheduleService;
    @SysLog()
    @ApiOperation(value = "跳转首页")
    @Operation(summary = "跳转首页")
    @GetMapping({"/", "/toIndex"})
    public ModelAndView toIndex(ModelAndView mv, HttpServletRequest req) {
        mv.setViewName("index");
@@ -72,7 +73,7 @@
    }
    @SysLog()
    @ApiOperation(value = "跳转登录页")
    @Operation(summary = "跳转登录页")
    @GetMapping("/toLogin")
    public ModelAndView toLogin(ModelAndView mv) {
        mv.setViewName("login");
@@ -81,7 +82,7 @@
    }
    @SysLog()
    @ApiOperation(value = "数据库监控")
    @Operation(summary = "数据库监控")
    @GetMapping(value = "/toDruid")
    public ModelAndView toDruid(HttpServletRequest req, HttpServletResponse res) {
        ModelAndView mv = new ModelAndView();
@@ -103,7 +104,7 @@
    }
    @SysLog()
    @ApiOperation(value = "资源监控")
    @Operation(summary = "资源监控")
    @GetMapping(value = "/toMonitor")
    public ModelAndView toMonitor(ModelAndView mv, HttpServletRequest req, HttpServletResponse res) {
        try {
@@ -121,9 +122,9 @@
    }
    @SysLog()
    @ApiOperation(value = "登录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "user", value = "用戶名", dataType = "UsersEntity", paramType = "body", example = "")
    @Operation(summary = "登录")
    @Parameters({
            @Parameter(name = "user", description = "用戶名", example = "")
    })
    @PostMapping(value = "/login", produces = "application/json; charset=UTF-8")
    public ResponseMsg<TokenEntity> login(@RequestBody UserEntity user, HttpServletRequest req, HttpServletResponse res) {
@@ -168,7 +169,7 @@
    }
    @SysLog()
    @ApiOperation(value = "登出")
    @Operation(summary = "登出")
    @GetMapping(value = "/logout")
    public ResponseMsg<Boolean> logout(HttpServletRequest req, HttpServletResponse res) {
        try {
@@ -186,7 +187,7 @@
    }
    @SysLog()
    @ApiOperation(value = "检查是/否登录")
    @Operation(summary = "检查是/否登录")
    @GetMapping("/check")
    public ResponseMsg<Boolean> check(HttpServletRequest req, HttpServletResponse res) {
        try {
@@ -205,7 +206,7 @@
    }
    @SysLog()
    @ApiOperation(value = "获取当前用户")
    @Operation(summary = "获取当前用户")
    @GetMapping("/getCurrentUser")
    public ResponseMsg<UserEntity> getCurrentUser(HttpServletRequest req) {
        try {
@@ -221,7 +222,7 @@
    }
    @SysLog()
    @ApiOperation(value = "获取RSA加密公钥")
    @Operation(summary = "获取RSA加密公钥")
    @GetMapping("/getPublicKey")
    public ResponseMsg<String> getPublicKey() {
        try {
@@ -233,7 +234,7 @@
        }
    }
    @ApiOperation(value = "插入操作日志")
    @Operation(summary = "插入操作日志")
    @GetMapping("/insertOpLog")
    public ResponseMsg<Object> insertOpLog(String m1, String m2, HttpServletRequest req) {
        try {
se-system/src/main/java/com/terra/system/controller/data/DataCountController.java
@@ -10,12 +10,14 @@
import com.terra.system.service.all.UploadAttachService;
import com.terra.system.service.sys.ReportService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -25,7 +27,7 @@
 * æ•°æ®ç»Ÿè®¡
 * @author WWW
 */
@Api(tags = "数据管理\\数据统计")
@Tag(name = "数据管理\\数据统计")
@RestController
@RequestMapping("/dataCount")
public class DataCountController extends BaseController {
@@ -39,12 +41,12 @@
    UploadAttachService uploadAttachService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "code", value = "编码", dataType = "String", paramType = "query", example = "countOperates"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "code", description = "编码", in = ParameterIn.QUERY, example = "countOperates"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ReportEntity>> selectByPageAndCount(String name, String code, Integer pageSize, Integer pageIndex) {
@@ -67,7 +69,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询数据量统计")
    @Operation(summary = "查询数据量统计")
    @GetMapping(value = "/selectCountSizes")
    public ResponseMsg<Object> selectCountSizes() {
        try {
@@ -80,7 +82,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按文件类型统计")
    @Operation(summary = "按文件类型统计")
    @GetMapping(value = "/countSizesByType")
    public ResponseMsg<Object> countSizesByType() {
        try {
@@ -93,7 +95,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询服务调用量统计")
    @Operation(summary = "查询服务调用量统计")
    @GetMapping(value = "/selectCountServices")
    public ResponseMsg<Object> selectCountServices() {
        try {
@@ -106,7 +108,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询用户流量统计")
    @Operation(summary = "查询用户流量统计")
    @GetMapping(value = "/selectCountOperates")
    public ResponseMsg<Object> selectCountOperates() {
        try {
@@ -119,7 +121,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数据")
    @Operation(summary = "按项目统计数据")
    @GetMapping(value = "/countSizesByPrj")
    public ResponseMsg<Object> countSizesByPrj() {
        try {
@@ -132,7 +134,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计钻孔数据")
    @Operation(summary = "按项目统计钻孔数据")
    @GetMapping(value = "/countExplorationPoints")
    public ResponseMsg<Object> countExplorationPoints() {
        try {
@@ -145,10 +147,10 @@
    }
    @SysLog()
    @ApiOperation(value = "下载报告")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "报告ID", dataType = "Integer", paramType = "query", example = "18"),
            @ApiImplicitParam(name = "code", value = "目录编码", dataType = "String", paramType = "query", example = "00"),
    @Operation(summary = "下载报告")
    @Parameters({
            @Parameter(name = "id", description = "报告ID", in = ParameterIn.QUERY, example = "18"),
            @Parameter(name = "code", description = "目录编码", in = ParameterIn.QUERY, example = "00"),
    })
    @GetMapping(value = "/downloadReport")
    public void downloadReport(Integer id, String code, HttpServletRequest req, HttpServletResponse res) {
@@ -171,7 +173,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数字高程模型面积")
    @Operation(summary = "按项目统计数字高程模型面积")
    @GetMapping(value = "/countDemAreaByPrj")
    public ResponseMsg<Object> countDemAreaByPrj() {
        try {
@@ -184,7 +186,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计三维地形模型面积")
    @Operation(summary = "按项目统计三维地形模型面积")
    @GetMapping(value = "/countMptAreaByPrj")
    public ResponseMsg<Object> countMptAreaByPrj() {
        try {
@@ -197,7 +199,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计倾斜摄影模型面积")
    @Operation(summary = "按项目统计倾斜摄影模型面积")
    @GetMapping(value = "/countOsgbAreaByPrj")
    public ResponseMsg<Object> countOsgbAreaByPrj() {
        try {
@@ -210,7 +212,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计激光点云模型面积")
    @Operation(summary = "按项目统计激光点云模型面积")
    @GetMapping(value = "/countLasAreaByPrj")
    public ResponseMsg<Object> countLasAreaByPrj() {
        try {
@@ -223,7 +225,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计勘察工点个数")
    @Operation(summary = "按项目统计勘察工点个数")
    @GetMapping(value = "/countSurveyWorksiteByPrj")
    public ResponseMsg<Object> countSurveyWorksiteByPrj() {
        try {
@@ -236,7 +238,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计勘察报告个数")
    @Operation(summary = "按项目统计勘察报告个数")
    @GetMapping(value = "/countExplorationReportByPrj")
    public ResponseMsg<Object> countExplorationReportByPrj() {
        try {
@@ -249,7 +251,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计崩塌个数")
    @Operation(summary = "按项目统计崩塌个数")
    @GetMapping(value = "/countCollapseByPrj")
    public ResponseMsg<Object> countCollapseByPrj() {
        try {
@@ -262,7 +264,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计泥石流个数")
    @Operation(summary = "按项目统计泥石流个数")
    @GetMapping(value = "/countDebrisFlowByPrj")
    public ResponseMsg<Object> countDebrisFlowByPrj() {
        try {
@@ -275,7 +277,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计地面塌陷个数")
    @Operation(summary = "按项目统计地面塌陷个数")
    @GetMapping(value = "/countGroundCollapseByPrj")
    public ResponseMsg<Object> countGroundCollapseByPrj() {
        try {
@@ -288,7 +290,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计高陡边坡个数")
    @Operation(summary = "按项目统计高陡边坡个数")
    @GetMapping(value = "/countHighSteepSlopeByPrj")
    public ResponseMsg<Object> countHighSteepSlopeByPrj() {
        try {
@@ -301,7 +303,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计滑坡个数")
    @Operation(summary = "按项目统计滑坡个数")
    @GetMapping(value = "/countLandSlideByPrj")
    public ResponseMsg<Object> countLandSlideByPrj() {
        try {
@@ -314,7 +316,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计不稳定斜坡个数")
    @Operation(summary = "按项目统计不稳定斜坡个数")
    @GetMapping(value = "/countUnstableSlopeByPrj")
    public ResponseMsg<Object> countUnstableSlopeByPrj() {
        try {
@@ -327,7 +329,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计水毁个数")
    @Operation(summary = "按项目统计水毁个数")
    @GetMapping(value = "/countWaterDamageByPrj")
    public ResponseMsg<Object> countWaterDamageByPrj() {
        try {
@@ -340,7 +342,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数字线划图面积")
    @Operation(summary = "按项目统计数字线划图面积")
    @GetMapping(value = "/countDlgAreaByPrj")
    public ResponseMsg<Object> countDlgAreaByPrj() {
        try {
@@ -353,7 +355,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数字正射影像图面积")
    @Operation(summary = "按项目统计数字正射影像图面积")
    @GetMapping(value = "/countDomAreaByPrj")
    public ResponseMsg<Object> countDomAreaByPrj() {
        try {
@@ -366,7 +368,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计管线长度")
    @Operation(summary = "按项目统计管线长度")
    @GetMapping(value = "/countLineLength")
    public ResponseMsg<Object> countLineLength() {
        try {
@@ -379,7 +381,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计勘探点个数")
    @Operation(summary = "按项目统计勘探点个数")
    @GetMapping(value = "/countExplorationPointByPrj")
    public ResponseMsg<Object> countExplorationPointByPrj() {
        try {
@@ -392,7 +394,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计三维地质模型面积")
    @Operation(summary = "按项目统计三维地质模型面积")
    @GetMapping(value = "/countGeoModelAreaByPrj")
    public ResponseMsg<Object> countGeoModelAreaByPrj() {
        try {
@@ -405,7 +407,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计地灾点个数")
    @Operation(summary = "按项目统计地灾点个数")
    @GetMapping(value = "/countGeologicHazardByPrj")
    public ResponseMsg<Object> countGeologicHazardByPrj() {
        try {
@@ -418,9 +420,9 @@
    }
    @SysLog()
    @ApiOperation(value = "项目数据分类统计")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "code", value = "项目编码", dataType = "String", paramType = "query", example = "0B")
    @Operation(summary = "项目数据分类统计")
    @Parameters({
            @Parameter(name = "code", description = "项目编码", in = ParameterIn.QUERY, example = "0B")
    })
    @GetMapping(value = "/countVariousDataByPrj")
    public ResponseMsg<Object> countVariousDataByPrj(String code) {
se-system/src/main/java/com/terra/system/controller/data/DataQueryController.java
@@ -7,11 +7,13 @@
import com.terra.system.helper.StringHelper;
import com.terra.system.service.data.DataQueryService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.*;
@@ -21,7 +23,7 @@
 * æ•°æ®æ£€ç´¢
 * @author WWW
 */
@Api(tags = "数据管理\\数据查询")
@Tag(name = "数据管理\\数据查询")
@RestController
@RequestMapping("/dataQuery")
public class DataQueryController extends BaseQueryController {
@@ -32,11 +34,11 @@
    DataQueryService dataQueryService;
    @SysLog()
    @ApiOperation(value = "上传文件")
    @Operation(summary = "上传文件")
    @ResponseBody
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tabName", value = "表名", dataType = "String", paramType = "query", example = "lf.sys_style"),
            @ApiImplicitParam(name = "eventid", value = "主键", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    @Parameters({
            @Parameter(name = "tabName", description = "表名", in = ParameterIn.QUERY, example = "lf.sys_style"),
            @Parameter(name = "eventid", description = "主键", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    })
    @PostMapping(value = "/uploadFiles")
    public ResponseMsg<Integer> uploadFiles(String tabName, String eventid, @RequestParam("file") MultipartFile[] files, HttpServletRequest req) {
se-system/src/main/java/com/terra/system/controller/data/DictController.java
@@ -8,12 +8,13 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.data.DictService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +23,7 @@
 * å­—典管理
 * @author WWW
 */
@Api(tags = "数据管理\\字典管理")
@Tag(name = "数据管理\\字典管理")
@RestController
@RequestMapping("/dict")
public class DictController extends BaseController {
@@ -33,10 +34,10 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "表空间", dataType = "String", paramType = "query", required = false, example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_25w_hyda")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "ns", description = "表空间", in = ParameterIn.QUERY, required = false, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_25w_hyda")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String ns, String tab) {
@@ -50,12 +51,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "表空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_25w_hyda"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "ns", description = "表空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_25w_hyda"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<DictEntity>> selectByPage(String ns, String tab, Integer pageSize, Integer pageIndex) {
@@ -73,12 +74,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "表空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_25w_hyda"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "ns", description = "表空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_25w_hyda"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<DictEntity>> selectByPageAndCount(String ns, String tab, Integer pageSize, Integer pageIndex) {
@@ -101,9 +102,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<DictEntity> selectById(int id) {
@@ -117,10 +118,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字典表结构")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "点"),
            @ApiImplicitParam(name = "hasGeom", value = "含有Geom字段", dataType = "Boolean", paramType = "query", example = "false")
    @Operation(summary = "查询字典表结构")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "点"),
            @Parameter(name = "hasGeom", description = "含有Geom字段", in = ParameterIn.QUERY, example = "false")
    })
    @GetMapping(value = "/selectDictTab")
    public ResponseMsg<List<TabEntity>> selectDictTab(String name, Boolean hasGeom) {
@@ -134,9 +135,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody DictEntity entity, HttpServletRequest req) {
@@ -155,9 +156,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<DictEntity> list, HttpServletRequest req) {
@@ -178,9 +179,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -194,9 +195,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -214,9 +215,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -236,9 +237,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/data/DirController.java
@@ -8,12 +8,13 @@
import com.terra.system.helper.WebHelper;
import com.terra.system.service.data.DirService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -24,7 +25,7 @@
 * @author sws
 * @date   2022-09-22
 */
@Api(tags = "数据管理\\目录管理")
@Tag(name = "数据管理\\目录管理")
@RestController
@RequestMapping("/dir")
public class DirController extends BaseController {
@@ -35,9 +36,9 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DirEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertDir", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDir(@RequestBody DirEntity entity, HttpServletRequest req) {
@@ -56,9 +57,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DirEntity", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @PostMapping(value = "/insertDirs", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDirs(@RequestBody List<DirEntity> list, HttpServletRequest req) {
@@ -77,9 +78,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteDir")
    public ResponseMsg<Integer> deleteDir(int id) {
@@ -93,9 +94,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "DirEntity", paramType = "body", example = "")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", example = "")
    })
    @GetMapping(value = "/deleteDirs")
    public ResponseMsg<Integer> deleteDirs(@RequestParam List<Integer> ids) {
@@ -113,9 +114,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DictEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateDir", produces = "application/json; charset=UTF-8")
@@ -135,9 +136,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DirEntity", paramType = "body", example = "")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateDirs", produces = "application/json; charset=UTF-8")
@@ -159,9 +160,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询数据")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectDir")
    public ResponseMsg<DirEntity> selectDir(int id) {
@@ -175,7 +176,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有数据")
    @Operation(summary = "查询所有数据")
    @GetMapping(value = "/selectDirAll")
    public ResponseMsg<List<DirEntity>> selectDirAll() {
        try {
@@ -187,9 +188,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载目录结构")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "目录ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "下载目录结构")
    @Parameters({
            @Parameter(name = "id", description = "目录ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/downloadDir")
    public void downloadDir(int id, HttpServletResponse res) {
@@ -211,9 +212,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询项目")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "西")
    @Operation(summary = "查询项目")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "西")
    })
    @GetMapping(value = "/selectProject")
    public ResponseMsg<List<DirEntity>> selectProject(String name) {
@@ -227,9 +228,9 @@
    }
    @SysLog()
    @ApiOperation(value = "递归查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pid", value = "父ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "递归查询")
    @Parameters({
            @Parameter(name = "pid", description = "父ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPid")
    public ResponseMsg<List<DirEntity>> selectByPid(int pid) {
se-system/src/main/java/com/terra/system/controller/data/DomainController.java
@@ -11,12 +11,13 @@
import com.terra.system.service.data.DictService;
import com.terra.system.service.data.DomainService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -25,7 +26,7 @@
 * å€¼åŸŸ
 * @author WWW
 */
@Api(tags = "数据管理\\值域")
@Tag(name = "数据管理\\值域")
@RestController
@RequestMapping("/domain")
public class DomainController extends BaseController {
@@ -42,11 +43,11 @@
    DictService dictService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_25w_aanp"),
            @ApiImplicitParam(name = "code", value = "编码", dataType = "String", paramType = "query", example = "210")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_25w_aanp"),
            @Parameter(name = "code", description = "编码", in = ParameterIn.QUERY, example = "210")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String ns, String tab, String code) {
@@ -60,13 +61,13 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_25w_aanp"),
            @ApiImplicitParam(name = "code", value = "编码", dataType = "String", paramType = "query", example = "210"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_25w_aanp"),
            @Parameter(name = "code", description = "编码", in = ParameterIn.QUERY, example = "210"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<DomainEntity>> selectByPage(String ns, String tab, String code, Integer pageSize, Integer pageIndex) {
@@ -84,13 +85,13 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "b_hy20w_s23"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "等级"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "b_hy20w_s23"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "等级"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<DomainEntity>> selectByPageAndCount(String ns, String tab, String name, Integer pageSize, Integer pageIndex) {
@@ -113,7 +114,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<DomainEntity>> selectAll() {
        try {
@@ -126,10 +127,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询值域表集合")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "b_"),
            @ApiImplicitParam(name = "hasGeom", value = "含有Geom字段", dataType = "Boolean", paramType = "query", example = "false")
    @Operation(summary = "查询值域表集合")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "b_"),
            @Parameter(name = "hasGeom", description = "含有Geom字段", in = ParameterIn.QUERY, example = "false")
    })
    @GetMapping(value = "/selectDomainTabs")
    public ResponseMsg<List<TabEntity>> selectDomainTabs(String name, Boolean hasGeom) {
@@ -143,10 +144,10 @@
    }
    @SysLog()
    @ApiOperation(value = "根据表名查询值域名称")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "b_hy20w_s23")
    @Operation(summary = "根据表名查询值域名称")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "b_hy20w_s23")
    })
    @GetMapping(value = "/selectDomainNames")
    public ResponseMsg<List<String>> selectDomainNames(String ns, String tab) {
@@ -164,9 +165,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<DomainEntity> selectById(int id) {
@@ -180,9 +181,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DomainEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody DomainEntity entity, HttpServletRequest req) {
@@ -201,9 +202,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DomainEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<DomainEntity> list, HttpServletRequest req) {
@@ -224,9 +225,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -240,9 +241,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -260,9 +261,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DomainEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -282,9 +283,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DomainEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/data/MetaController.java
@@ -26,8 +26,13 @@
import com.terra.system.service.sys.DepService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.*;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@@ -42,7 +47,7 @@
 * å…ƒæ•°æ®
 * @author WWW
 */
@Api(tags = "数据管理\\信息管理")
@Tag(name = "数据管理\\信息管理")
@RestController
@RequestMapping("/meta")
public class MetaController extends BaseController {
@@ -71,14 +76,14 @@
    CadService cadService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "dircode", value = "目录编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "verid", value = "版本ID", dataType = "Integer", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "dircode", description = "目录编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "verid", description = "版本ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<MetaEntity>> selectByPageAndCount(String depcode, String dircode, Integer verid, String name, Integer pageSize, Integer pageIndex) {
@@ -101,9 +106,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据GUID查询GDB")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "GUID", dataType = "String", paramType = "query", example = "d58e66d9606a4b85e7c8ab43b3db0b55")
    @Operation(summary = "根据GUID查询GDB")
    @Parameters({
            @Parameter(name = "guid", description = "GUID", in = ParameterIn.QUERY, example = "d58e66d9606a4b85e7c8ab43b3db0b55")
    })
    @GetMapping(value = "/selectGdbByGuid")
    public ResponseMsg<Object> selectGdbByGuid(String guid) {
@@ -121,12 +126,12 @@
    }
    @SysLog()
    @ApiOperation(value = "根据父ID分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "metaid", value = "父ID", dataType = "String", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据父ID分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "metaid", description = "父ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPageAndCountByPid")
    public ResponseMsg<List<MetaEntity>> selectPageAndCountByPid(Integer metaid, String name, Integer pageSize, Integer pageIndex) {
@@ -152,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据目录ID查询版本列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query")
    @Operation(summary = "根据目录ID查询版本列表")
    @Parameters({
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectVerByDirid")
    public ResponseMsg<List<VerEntity>> selectVerByDirid(Integer dirid) {
@@ -175,9 +180,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<MetaEntity> selectById(int id) {
@@ -191,11 +196,11 @@
    }
    @SysLog()
    @ApiOperation(value = "查询表中数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10")
    @Operation(summary = "查询表中数据")
    @Parameters({
            @Parameter(name = "id", description = "元数据ID", in = ParameterIn.QUERY, example = "115"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10")
    })
    @GetMapping(value = "/selectDbData")
    public ResponseMsg<Object> selectDbData(Integer id, Integer pageIndex, Integer pageSize) {
@@ -230,10 +235,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字段信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg25wAanp")
    @Operation(summary = "查询字段信息")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg25wAanp")
    })
    @GetMapping(value = "/selectTabFields")
    public ResponseMsg<List<DictEntity>> selectTabFields(String ns, String tab) {
@@ -251,10 +256,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询Dwg转换")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "int", paramType = "query", example = "7715"),
            @ApiImplicitParam(name = "isAttach", value = "是否为附件", dataType = "Boolean", paramType = "query", example = "false")
    @Operation(summary = "查询Dwg转换")
    @Parameters({
            @Parameter(name = "id", description = "元数据ID", in = ParameterIn.QUERY, example = "7715"),
            @Parameter(name = "isAttach", description = "是否为附件", in = ParameterIn.QUERY, example = "false")
    })
    @GetMapping(value = "/selectConvertToDwg")
    public ResponseMsg<Object> selectConvertToDwg(int id, Boolean isAttach) {
@@ -268,9 +273,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MetaEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody MetaEntity entity, HttpServletRequest req) {
@@ -290,9 +295,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MetaEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<MetaEntity> list, HttpServletRequest req) {
@@ -313,9 +318,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "1")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -333,9 +338,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MetaEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -355,9 +360,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MetaEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
@@ -379,11 +384,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询下载文件")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPageCountForDownload")
    public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -410,9 +415,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询元数据中溢出的单位ID")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "reqEntity", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(summary = "查询元数据中溢出的单位ID")
    @Parameters({
            @Parameter(name = "reqEntity", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/selectMetaOverflowDep")
@@ -436,9 +441,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据单位编码数组查询单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "codes", value = "单位编码数组", dataType = "String", paramType = "query", allowMultiple = true, example = "00,0001")
    @Operation(summary = "根据单位编码数组查询单位")
    @Parameters({
            @Parameter(name = "codes", description = "单位编码数组", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "00,0001")
    })
    @GetMapping(value = "/selectDepsByCodes")
    public ResponseMsg<Object> selectDepsByCodes(String[] codes) {
@@ -456,9 +461,9 @@
    }
    @SysLog()
    @ApiOperation(value = "请求元数据下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dr", value = "请求下载实体类", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(summary = "请求元数据下载")
    @Parameters({
            @Parameter(name = "dr", description = "请求下载实体类")
    })
    @ResponseBody
    @PostMapping(value = "/downloadReq")
@@ -487,10 +492,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "pwd", value = "密码", dataType = "String", paramType = "query")
    @Operation(summary = "查询下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY),
            @Parameter(name = "pwd", description = "密码", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectDownloadFile")
    public ResponseMsg<Boolean> selectDownloadFile(String guid, String pwd) {
@@ -525,10 +530,10 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "pwd", value = "密码", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY),
            @Parameter(name = "pwd", description = "密码", in = ParameterIn.QUERY)
    })
    @ResponseBody
    @GetMapping(value = "/downloadFile")
@@ -566,9 +571,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查看文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "查看文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/downloadForView")
    public void downloadForView(String guid, HttpServletResponse res) {
se-system/src/main/java/com/terra/system/controller/data/ProjectController.java
@@ -19,12 +19,13 @@
import com.terra.system.service.data.DirService;
import com.terra.system.service.sys.DepService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
@@ -34,7 +35,7 @@
 * é¡¹ç›®ç®¡ç†
 * @author WWW
 */
@Api(tags = "数据管理\\项目管理")
@Tag(name = "数据管理\\项目管理")
@RestController
@RequestMapping("/project")
public class ProjectController extends BaseController {
@@ -54,7 +55,7 @@
    BaseQueryService baseQueryService;
    @SysLog()
    @ApiOperation(value = "查询所有单位数据")
    @Operation(summary = "查询所有单位数据")
    @GetMapping(value = "/selectDepAll")
    public ResponseMsg<List<DepEntity>> selectDepAll() {
        try {
@@ -66,9 +67,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询项目")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "西")
    @Operation(summary = "查询项目")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "西")
    })
    @GetMapping(value = "/selectProject")
    public ResponseMsg<List<DirEntity>> selectProject(String name) {
@@ -82,11 +83,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "String", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<Object> selectByPageAndCount(String dirid, Integer pageSize, Integer pageIndex) {
@@ -108,7 +109,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字段信息")
    @Operation(summary = "查询字段信息")
    @GetMapping(value = "/selectFields")
    public ResponseMsg<List<DictEntity>> selectFields() {
        try {
@@ -127,10 +128,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询位置")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "x", value = "X", dataType = "Double", paramType = "query", example = "114.178955"),
            @ApiImplicitParam(name = "y", value = "Y", dataType = "Double", paramType = "query", example = "38.991743")
    @Operation(summary = "查询位置")
    @Parameters({
            @Parameter(name = "x", description = "X", in = ParameterIn.QUERY, example = "114.178955"),
            @Parameter(name = "y", description = "Y", in = ParameterIn.QUERY, example = "38.991743")
    })
    @GetMapping(value = "/selectLocation")
    public ResponseMsg<Object> selectLocation(double x, double y) {
@@ -145,9 +146,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "gid", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "gid", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int gid) {
@@ -161,9 +162,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody BsprojectEntity entity, HttpServletRequest req) {
@@ -190,9 +191,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/data/PublishController.java
@@ -16,11 +16,13 @@
import com.terra.system.service.data.RasterService;
import com.terra.system.service.sys.LayerService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@@ -33,7 +35,7 @@
 * æ•°æ®å‘布
 * @author WWW
 */
@Api(tags = "数据管理\\发布管理")
@Tag(name = "数据管理\\发布管理")
@RestController
@RequestMapping("/publish")
public class PublishController extends BaseController {
@@ -55,9 +57,9 @@
    @Resource
    PathHelper pathHelper;
    @ApiOperation(value = "测试查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "seconds", value = "秒", dataType = "Integer", paramType = "query", example = "30")
    @Operation(summary = "测试查询")
    @Parameters({
            @Parameter(name = "seconds", description = "秒", in = ParameterIn.QUERY, example = "30")
    })
    @GetMapping(value = "/selectForTest")
    public ResponseMsg<Object> selectForTest(Integer seconds) {
@@ -75,15 +77,15 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询元数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "dircode", value = "目录编码", dataType = "String", paramType = "query", example = "01"),
            @ApiImplicitParam(name = "verid", value = "版本ID", dataType = "Integer", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "type", value = "类别", dataType = "String", paramType = "query", example = "DOM"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询元数据")
    @Parameters({
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "dircode", description = "目录编码", in = ParameterIn.QUERY, example = "01"),
            @Parameter(name = "verid", description = "版本ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "type", description = "类别", in = ParameterIn.QUERY, example = "DOM"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectMetasByPage")
    public ResponseMsg<Object> selectMetasByPage(String depcode, String dircode, Integer verid, String type, String name, Integer pageSize, Integer pageIndex) {
@@ -164,13 +166,13 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "dircode", value = "目录", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "type", value = "类别", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "dircode", description = "目录", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "type", description = "类别", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<PublishEntity>> selectByPageAndCount(String name, String dircode, String type, Integer pageSize, Integer pageIndex) {
@@ -224,9 +226,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<PublishEntity> selectById(int id) {
@@ -240,9 +242,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询Las文件坐标系ID")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "元数据ID集合", dataType = "Integer[]", paramType = "query", example = "10483,10481,10456,10285")
    @Operation(summary = "查询Las文件坐标系ID")
    @Parameters({
            @Parameter(name = "ids", description = "元数据ID集合", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "10483,10481,10456,10285")
    })
    @GetMapping(value = "/selectLasCs")
    public ResponseMsg<Object> selectLasCs(Integer[] ids, HttpServletRequest req) {
@@ -265,9 +267,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询栅格数据的坐标系ID")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "元数据ID集合", dataType = "Integer[]", paramType = "query", example = "10531,10527,10526")
    @Operation(summary = "查询栅格数据的坐标系ID")
    @Parameters({
            @Parameter(name = "ids", description = "元数据ID集合", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "10531,10527,10526")
    })
    @GetMapping(value = "/selectRasterCs")
    public ResponseMsg<Object> selectRasterCs(Integer[] ids, HttpServletRequest req) {
@@ -313,11 +315,11 @@
    }
    @SysLog()
    @ApiOperation(value = "查询坐标转换")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "x", value = "X坐标", dataType = "double", paramType = "query", example = "400925.079"),
            @ApiImplicitParam(name = "y", value = "Y坐标", dataType = "double", paramType = "query", example = "2541768.173"),
            @ApiImplicitParam(name = "epsg", value = "EPSG编码", dataType = "int", paramType = "query", example = "4548")
    @Operation(summary = "查询坐标转换")
    @Parameters({
            @Parameter(name = "x", description = "X坐标", in = ParameterIn.QUERY, example = "400925.079"),
            @Parameter(name = "y", description = "Y坐标", in = ParameterIn.QUERY, example = "2541768.173"),
            @Parameter(name = "epsg", description = "EPSG编码", in = ParameterIn.QUERY, example = "4548")
    })
    @GetMapping(value = "/selectCsTransform")
    public Object selectCsTransform(double x, double y, int epsg) {
@@ -329,9 +331,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入发布数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "PubEntity", paramType = "body")
    @Operation(summary = "插入发布数据")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insertForPub", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Object> insertForPub(@RequestBody PubEntity entity, HttpServletRequest req) {
@@ -384,9 +386,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "1")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids, HttpServletRequest req) {
@@ -414,9 +416,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "PublishEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/data/StyleController.java
@@ -14,11 +14,14 @@
import com.terra.system.service.data.StyleService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.*;
@@ -31,7 +34,7 @@
 * @author sws
 * @date 2022-09.26
 */
@Api(tags = "数据管理\\样式管理")
@Tag(name = "数据管理\\样式管理")
@RestController
@RequestMapping("/style")
public class StyleController extends BaseController {
@@ -53,9 +56,9 @@
    private final static String TAB_NAME = "lf.sys_style";
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", required = false, example = "a")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, required = false, example = "a")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String name) {
@@ -69,11 +72,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", required = false, example = "a"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, required = false, example = "a"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<StyleEntity>> selectByPage(String name, Integer pageSize, Integer pageIndex) {
@@ -92,11 +95,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "a"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "a"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<StyleEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) {
@@ -119,9 +122,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "StyleEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertStyle", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertStyle(@RequestBody StyleEntity entity, HttpServletRequest req) {
@@ -140,9 +143,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "StyleEntity", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @PostMapping(value = "/insertStyles", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertStyles(@RequestBody List<StyleEntity> list, HttpServletRequest req) {
@@ -163,9 +166,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteStyle")
    public ResponseMsg<Integer> deleteStyle(int id) {
@@ -179,9 +182,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteStyles")
    public ResponseMsg<Integer> deleteStyles(@RequestParam List<Integer> ids) {
@@ -199,9 +202,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "StyleEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateStyle", produces = "application/json; charset=UTF-8")
@@ -221,9 +224,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectStyle")
    public ResponseMsg<StyleEntity> selectStyle(int id) {
@@ -237,7 +240,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectStyleAll")
    public ResponseMsg<List<StyleEntity>> selectStyleAll() {
@@ -250,7 +253,7 @@
    }
    @SysLog()
    @ApiOperation(value = "上传文件")
    @Operation(summary = "上传文件")
    @ResponseBody
    @PostMapping(value = "/upload")
    public ResponseMsg<String> upload(@RequestParam("file") MultipartFile file, HttpServletRequest req) {
@@ -260,9 +263,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/download")
    public void download(String guid, HttpServletResponse res) {
@@ -270,9 +273,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY)
    })
    @RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
    public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) {
@@ -298,9 +301,9 @@
    }
    @SysLog()
    @ApiOperation(value = "请求下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guids", value = "附件Guid数组", dataType = "String", paramType = "body", allowMultiple = true, example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c")
    @Operation(summary = "请求下载")
    @Parameters({
            @Parameter(name = "guids", description = "附件Guid数组", schema = @Schema(type = "array"), example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c")
    })
    @ResponseBody
    @PostMapping(value = "/downloadReqForGuids")
se-system/src/main/java/com/terra/system/controller/data/TaskController.java
@@ -10,11 +10,12 @@
import com.terra.system.service.data.PublishService;
import com.terra.system.service.data.TaskService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@@ -25,7 +26,7 @@
 * ä»»åŠ¡
 * @author WWW
 */
@Api(tags = "数据管理\\任务管理")
@Tag(name = "数据管理\\任务管理")
@RestController
@RequestMapping("/task")
public class TaskController extends BaseController {
@@ -39,13 +40,13 @@
    PublishService publishService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "任务名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "status", value = "任务状态", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "type", value = "任务类别", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "任务名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "status", description = "任务状态", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "type", description = "任务类别", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<TaskEntity>> selectByPageAndCount(String name, Integer status, String type, Integer pageSize, Integer pageIndex) {
@@ -68,9 +69,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<TaskEntity> selectById(int id) {
@@ -84,9 +85,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "TaskEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody TaskEntity entity, HttpServletRequest req) {
@@ -105,9 +106,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "TaskEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<TaskEntity> list, HttpServletRequest req) {
@@ -128,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -144,9 +145,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -164,9 +165,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除任务")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除任务")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteTask")
    public ResponseMsg<Object> deleteTask(int id, HttpServletRequest req) {
@@ -198,9 +199,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "TaskEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -220,9 +221,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "TaskEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/data/VerController.java
@@ -7,12 +7,14 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.data.VerService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +24,7 @@
 * @author SWS
 * @date 2022-09.29
 */
@Api(tags = "数据管理\\版本管理")
@Tag(name = "数据管理\\版本管理")
@RestController
@RequestMapping("/ver")
public class VerController extends BaseController {
@@ -33,12 +35,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<VerEntity>> selectByPageAndCount(Integer dirid, String name, Integer pageSize, Integer pageIndex) {
@@ -61,9 +63,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "VersionEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertVersion", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertVersion(@RequestBody VerEntity entity, HttpServletRequest req) {
@@ -82,9 +84,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<VersionEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertVersions", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertVersions(@RequestParam List<VerEntity> list, HttpServletRequest req) {
@@ -105,9 +107,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteVersion")
    public ResponseMsg<Integer> deleteVersion(int id) {
@@ -121,9 +123,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteVersions")
    public ResponseMsg<Integer> deleteVersions(@RequestParam List<Integer> ids) {
@@ -139,9 +141,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "VersionEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateVersion", produces = "application/json; charset=UTF-8")
@@ -161,9 +163,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectVersion")
    public ResponseMsg<VerEntity> selectVersion(int id) {
@@ -177,7 +179,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectVersionAll")
    public ResponseMsg<List<VerEntity>> selectVersionAll() {
        try {
se-system/src/main/java/com/terra/system/controller/data/WmtsController.java
@@ -4,10 +4,11 @@
import com.terra.system.config.PropertiesConfig;
import com.terra.system.helper.StringHelper;
import com.terra.system.helper.WebHelper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.annotation.Resource;
@@ -36,7 +37,7 @@
 * WMTS服务
 * @author WWW
 */
@Api(tags = "数据管理\\WMTS服务")
@Tag(name = "数据管理\\WMTS服务")
@RestController
@RequestMapping("/wmts")
public class WmtsController {
@@ -46,9 +47,9 @@
    private final static Log log = LogFactory.getLog(WmtsController.class);
    @SysLog()
    @ApiOperation(value = "获取WMTS元数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌", required = true, dataType = "String", defaultValue = "token", paramType = "path")
    @Operation(summary = "获取WMTS元数据")
    @Parameters({
            @Parameter(name = "token", description = "令牌", required = true, example = "token", in = ParameterIn.PATH)
    })
    @GetMapping("select/{token}/WMTSCapabilities.xml")
    public void selectWmtsCapabilities(@PathVariable(name = "token") String token, HttpServletRequest req, HttpServletResponse res) {
@@ -78,13 +79,13 @@
        }
    }
    @ApiOperation(value = "获取WMTS瓦片")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌", required = true, dataType = "String", defaultValue = "token", paramType = "path"),
            @ApiImplicitParam(name = "layer", value = "图层类型", required = true, dataType = "String", defaultValue = "img"),
            @ApiImplicitParam(name = "tilematrix", value = "层级", required = true, dataType = "Integer"),
            @ApiImplicitParam(name = "tilerow", value = "行号", required = true, dataType = "Integer"),
            @ApiImplicitParam(name = "tilecol", value = "列号", required = true, dataType = "Integer")
    @Operation(summary = "获取WMTS瓦片")
    @Parameters({
            @Parameter(name = "token", description = "令牌", required = true, example = "token", in = ParameterIn.PATH),
            @Parameter(name = "layer", description = "图层类型", required = true, example = "img"),
            @Parameter(name = "tilematrix", description = "层级", required = true),
            @Parameter(name = "tilerow", description = "行号", required = true),
            @Parameter(name = "tilecol", description = "列号", required = true)
    })
    @GetMapping("select/{token}/tile")
    public void selectWmtsTile(@PathVariable(name = "token") String token, HttpServletRequest req, HttpServletResponse res) {
se-system/src/main/java/com/terra/system/controller/data/upload/CheckController.java
@@ -10,10 +10,12 @@
import com.terra.system.helper.PathHelper;
import com.terra.system.helper.StringHelper;
import com.terra.system.service.data.FmeService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -38,9 +40,9 @@
    protected FmeService fmeService;
    @SysLog()
    @ApiOperation(value = "查询任务状态")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "任务ID", dataType = "String", paramType = "query", example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4")
    @Operation(summary = "查询任务状态")
    @Parameters({
            @Parameter(name = "id", description = "任务ID", in = ParameterIn.QUERY, example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4")
    })
    @GetMapping(value = "/selectTaskStatus")
    public Object selectTaskStatus(String id, HttpServletRequest req) {
@@ -56,9 +58,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载质检结果")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "任务ID", dataType = "String", paramType = "query", example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4")
    @Operation(summary = "下载质检结果")
    @Parameters({
            @Parameter(name = "id", description = "任务ID", in = ParameterIn.QUERY, example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4")
    })
    @GetMapping(value = "/downloadResult")
    public void downloadResult(String id, HttpServletRequest req, HttpServletResponse res) {
@@ -76,9 +78,9 @@
    }
    @SysLog()
    @ApiOperation(value = "提交数据质检")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "FME请求实体类", dataType = "FmeReqEntity", paramType = "body")
    @Operation(summary = "提交数据质检")
    @Parameters({
            @Parameter(name = "entity", description = "FME请求实体类")
    })
    @ResponseBody
    @PostMapping(value = "/uploadChecks")
@@ -167,7 +169,7 @@
    }
    /*@SysLog()
    @ApiOperation(value = "查询OSGB检查")
    @Operation(summary = "查询OSGB检查")
    @GetMapping(value = "/selectCheckOsgb")
    public ResponseMsg<Object> selectCheckOsgb(HttpServletRequest req) {
        try {
@@ -188,7 +190,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询表格数据检查")
    @Operation(summary = "查询表格数据检查")
    @GetMapping(value = "/selectCheckXls")
    public ResponseMsg<Object> selectCheckXls(HttpServletRequest req) {
        try {
@@ -209,7 +211,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询点云检查")
    @Operation(summary = "查询点云检查")
    @GetMapping(value = "/selectCheckLaz")
    public ResponseMsg<Object> selectCheckLaz(HttpServletRequest req) {
        try {
@@ -230,7 +232,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询高程检查")
    @Operation(summary = "查询高程检查")
    @GetMapping(value = "/selectCheckDem")
    public ResponseMsg<Object> selectCheckDem(HttpServletRequest req) {
        try {
@@ -252,7 +254,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询属性检查")
    @Operation(summary = "查询属性检查")
    @GetMapping(value = "/selectCheckAttrs")
    public ResponseMsg<Object> selectCheckAttrs(HttpServletRequest req) {
        try {
@@ -273,7 +275,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询拓扑检查")
    @Operation(summary = "查询拓扑检查")
    @GetMapping(value = "/selectCheckTopology")
    public ResponseMsg<Object> selectCheckTopology(HttpServletRequest req) {
        try {
@@ -300,7 +302,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询图面整饰检查")
    @Operation(summary = "查询图面整饰检查")
    @GetMapping(value = "/selectCheckDecorate")
    public ResponseMsg<Object> selectCheckDecorate(HttpServletRequest req) {
        try {
@@ -321,7 +323,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询原点检查")
    @Operation(summary = "查询原点检查")
    @GetMapping(value = "/selectCheckOrigin")
    public ResponseMsg<Object> selectCheckOrigin(HttpServletRequest req) {
        try {
@@ -341,7 +343,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询栅格检查")
    @Operation(summary = "查询栅格检查")
    @GetMapping(value = "/selectCheckDom")
    public ResponseMsg<Object> selectCheckDom(HttpServletRequest req) {
        try {
@@ -364,7 +366,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询数学基础检查")
    @Operation(summary = "查询数学基础检查")
    @GetMapping(value = "/selectCheckMath")
    public ResponseMsg<Object> selectCheckMath(HttpServletRequest req) {
        try {
@@ -385,7 +387,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询元数据检查")
    @Operation(summary = "查询元数据检查")
    @GetMapping(value = "/selectCheckMeta")
    public ResponseMsg<Object> selectCheckMeta(HttpServletRequest req) {
        try {
@@ -406,7 +408,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询总质检")
    @Operation(summary = "查询总质检")
    @GetMapping(value = "/selectCheckMain")
    public ResponseMsg<Object> selectCheckMain(HttpServletRequest req) {
        try {
@@ -430,7 +432,7 @@
    }
    @SysLog()
    @ApiOperation(value = "逻辑一致性检查")
    @Operation(summary = "逻辑一致性检查")
    @GetMapping(value = "/checkLogical")
    public ResponseMsg<Object> checkLogical(HttpServletRequest req) {
        try {
@@ -451,7 +453,7 @@
    }
    @SysLog()
    @ApiOperation(value = "单项成果完整性检查")
    @Operation(summary = "单项成果完整性检查")
    @GetMapping(value = "/checkSingleIntegrity")
    public ResponseMsg<Object> checkSingleIntegrity(HttpServletRequest req) {
        try {
@@ -473,7 +475,7 @@
    }*/
    @SysLog()
    @ApiOperation(value = "服务注册")
    @Operation(summary = "服务注册")
    @GetMapping(value = "/selectServerRegister")
    public ResponseMsg<Object> selectServerRegister(HttpServletRequest req) {
        try {
@@ -489,10 +491,10 @@
    }
    @SysLog()
    @ApiOperation(value = "服务申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "服务ID", dataType = "String", paramType = "query", example = "195f77eb-19dd-4e34-afc1-fcff8f758f7b"),
            @ApiImplicitParam(name = "pubid", value = "发布ID", dataType = "Integer", paramType = "query", example = "1"),
    @Operation(summary = "服务申请")
    @Parameters({
            @Parameter(name = "id", description = "服务ID", in = ParameterIn.QUERY, example = "195f77eb-19dd-4e34-afc1-fcff8f758f7b"),
            @Parameter(name = "pubid", description = "发布ID", in = ParameterIn.QUERY, example = "1"),
    })
    @GetMapping(value = "/selectServerApply")
    public ResponseMsg<Object> selectServerApply(String id, Integer pubid, HttpServletRequest req) {
@@ -506,9 +508,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除资源")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "服务ID", dataType = "String", paramType = "query", example = "6f4b6783-4b98-4d46-a0d9-43cdb5f339dc")
    @Operation(summary = "删除资源")
    @Parameters({
            @Parameter(name = "id", description = "服务ID", in = ParameterIn.QUERY, example = "6f4b6783-4b98-4d46-a0d9-43cdb5f339dc")
    })
    @GetMapping(value = "/selectDeleteRes")
    public ResponseMsg<Object> selectDeleteRes(String id, HttpServletRequest req) {
se-system/src/main/java/com/terra/system/controller/data/upload/QueryController.java
@@ -18,10 +18,12 @@
import com.terra.system.service.data.*;
import com.terra.system.service.sys.DepService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import org.springframework.web.bind.annotation.GetMapping;
import javax.servlet.http.HttpServletRequest;
@@ -57,12 +59,12 @@
    DictService dictService;
    @SysLog()
    @ApiOperation(value = "根据父ID分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "metaid", value = "父ID", dataType = "String", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据父ID分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "metaid", description = "父ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPageAndCountByPid")
    public ResponseMsg<List<MetaEntity>> selectPageAndCountByPid(Integer metaid, String name, Integer pageSize, Integer pageIndex) {
@@ -88,7 +90,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有单位")
    @Operation(summary = "查询所有单位")
    @GetMapping(value = "/selectDepAll")
    public ResponseMsg<List<DepEntity>> selectDepAll() {
        try {
@@ -101,7 +103,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有目录")
    @Operation(summary = "查询所有目录")
    @GetMapping(value = "/selectDirAll")
    public ResponseMsg<List<DirEntity>> selectDirAll() {
        try {
@@ -114,9 +116,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据目录ID查询版本列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query")
    @Operation(summary = "根据目录ID查询版本列表")
    @Parameters({
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectVerByDirid")
    public ResponseMsg<List<VerEntity>> selectVerByDirid(Integer dirid) {
@@ -137,9 +139,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询坐标系")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "zoning", value = "带号", dataType = "String", paramType = "query", example = "6度有带号")
    @Operation(summary = "查询坐标系")
    @Parameters({
            @Parameter(name = "zoning", description = "带号", in = ParameterIn.QUERY, example = "6度有带号")
    })
    @GetMapping(value = "/selectCoords")
    public ResponseMsg<Object> selectCoords(String zoning) {
@@ -153,7 +155,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询项目名称")
    @Operation(summary = "查询项目名称")
    @GetMapping(value = "/selectProject")
    public ResponseMsg<Object> selectProject() {
        try {
@@ -166,10 +168,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "点"),
            @ApiImplicitParam(name = "hasGeom", value = "含有Geom字段", dataType = "Boolean", paramType = "query", example = "false")
    @Operation(summary = "查询所有表")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "点"),
            @Parameter(name = "hasGeom", description = "含有Geom字段", in = ParameterIn.QUERY, example = "false")
    })
    @GetMapping(value = "/selectTabs")
    public ResponseMsg<List<TabEntity>> selectTabs(String name, Boolean hasGeom) {
@@ -183,10 +185,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字段信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg25wAanp")
    @Operation(summary = "查询字段信息")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg25wAanp")
    })
    @GetMapping(value = "/selectFields")
    public ResponseMsg<List<DictEntity>> selectFields(String ns, String tab) {
@@ -204,11 +206,11 @@
    }
    @SysLog()
    @ApiOperation(value = "查询表中数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10")
    @Operation(summary = "查询表中数据")
    @Parameters({
            @Parameter(name = "id", description = "元数据ID", in = ParameterIn.QUERY, example = "115"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10")
    })
    @GetMapping(value = "/selectDbData")
    public ResponseMsg<Object> selectDbData(Integer id, Integer pageIndex, Integer pageSize) {
@@ -243,11 +245,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询上传数据并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询上传数据并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForUpload")
    public ResponseMsg<Object> selectByPageForUpload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -272,9 +274,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据元数据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据元数据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectMetaById")
    public ResponseMsg<MetaEntity> selectMetaById(int id) {
se-system/src/main/java/com/terra/system/controller/data/upload/UploadController.java
@@ -11,12 +11,14 @@
import com.terra.system.helper.StringHelper;
import com.terra.system.service.all.UploadAttachService;
import com.terra.system.service.data.UploadService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -26,7 +28,7 @@
 * æ•°æ®å…¥åº“
 * @author WWW
 */
@Api(tags = "数据管理\\数据上传")
@Tag(name = "数据管理\\数据上传")
@RestController
@RequestMapping("/dataUpload")
public class UploadController extends QueryController {
@@ -37,7 +39,7 @@
    UploadAttachService uploadAttachService;
    @SysLog()
    @ApiOperation(value = "查询路径")
    @Operation(summary = "查询路径")
    @GetMapping(value = "/selectPath")
    public ResponseMsg<String> selectPath() {
        try {
@@ -51,9 +53,9 @@
    }
    @SysLog()
    @ApiOperation(value = "上传文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query")
    @Operation(summary = "上传文件")
    @Parameters({
            @Parameter(name = "path", description = "路径", in = ParameterIn.QUERY)
    })
    @ResponseBody
    @PostMapping(value = "/uploadFiles")
@@ -79,10 +81,10 @@
     *          formData.append("ids", 1209); formData.append("ids", 1180); formData.append("ids", 1387);
     */
    @SysLog()
    @ApiOperation(value = "上传Excel附件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "ids", value = "元数据集合", dataType = "Integer", allowMultiple = true, paramType = "query")
    @Operation(summary = "上传Excel附件")
    @Parameters({
            @Parameter(name = "path", description = "路径", in = ParameterIn.QUERY),
            @Parameter(name = "ids", description = "元数据集合", schema = @Schema(type = "array"), in = ParameterIn.QUERY)
    })
    @ResponseBody
    @PostMapping(value = "/uploadXlsAnnex")
@@ -118,9 +120,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query")
    @Operation(summary = "查询文件")
    @Parameters({
            @Parameter(name = "path", description = "路径", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectFiles")
    public ResponseMsg<List<MetaFileEntity>> selectFiles(String path) {
@@ -134,9 +136,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MetaEntity", paramType = "body")
    @Operation(summary = "删除文件")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/deleteFiles")
@@ -159,12 +161,12 @@
    }
    @SysLog()
    @ApiOperation(value = "查询映射")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query", example = "20230722"),
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "verid", value = "版本ID", dataType = "Integer", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "epsgCode", value = "坐标编码", dataType = "String", paramType = "query", example = "EPSG:4490")
    @Operation(summary = "查询映射")
    @Parameters({
            @Parameter(name = "path", description = "路径", in = ParameterIn.QUERY, example = "20230722"),
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "verid", description = "版本ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "epsgCode", description = "坐标编码", in = ParameterIn.QUERY, example = "EPSG:4490")
    })
    @GetMapping(value = "/selectMappers")
    public ResponseMsg<Object> selectMappers(String path, Integer dirid, Integer verid, String epsgCode, HttpServletRequest req) {
@@ -194,9 +196,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "元数据文件集合", dataType = "MetaFileEntity", paramType = "body")
    @Operation(summary = "插入文件")
    @Parameters({
            @Parameter(name = "list", description = "元数据文件集合")
    })
    @ResponseBody
    @PostMapping(value = "/insertFiles")
@@ -219,9 +221,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入KML文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "元数据文件集合", dataType = "MetaFileEntity", paramType = "body")
    @Operation(summary = "插入KML文件")
    @Parameters({
            @Parameter(name = "list", description = "元数据文件集合")
    })
    @ResponseBody
    @PostMapping(value = "/insertKml")
@@ -244,9 +246,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除元数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1")
    @Operation(summary = "删除元数据")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "1")
    })
    @GetMapping(value = "/deleteMetas")
    public ResponseMsg<Integer> deleteMetas(@RequestParam List<Integer> ids) {
se-system/src/main/java/com/terra/system/controller/show/ApplyController.java
@@ -19,12 +19,13 @@
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import com.terra.system.service.sys.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -35,7 +36,7 @@
 * æ•°æ®ç”³è¯·
 * @author WWW
 */
@Api(tags = "综合展示\\数据申请")
@Tag(name = "综合展示\\数据申请")
@RestController
@RequestMapping("/apply")
public class ApplyController extends BaseController {
@@ -58,9 +59,9 @@
    DownloadService downloadService;
    @SysLog()
    @ApiOperation(value = "插入数据申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dr", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(summary = "插入数据申请")
    @Parameters({
            @Parameter(name = "dr", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/insertApply")
@@ -96,14 +97,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "员"),
            @ApiImplicitParam(name = "status", value = "状态", dataType = "Integer", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-12-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-12-31 23:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询申请")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "员"),
            @Parameter(name = "status", description = "状态", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-12-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-12-31 23:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<Object> selectByPage(String uname, Integer status, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -127,7 +128,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询待审核数")
    @Operation(summary = "查询待审核数")
    @GetMapping(value = "/selectSubmits")
    public ResponseMsg<Object> selectSubmits(HttpServletRequest req) {
        try {
@@ -141,9 +142,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询流程")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "applyid", value = "数据申请ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "查询流程")
    @Parameters({
            @Parameter(name = "applyid", description = "数据申请ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectFlows")
    public ResponseMsg<Object> selectFlows(Integer applyid) {
@@ -157,9 +158,9 @@
    }
    @SysLog()
    @ApiOperation(value = "废弃申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "applyid", value = "数据申请ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "废弃申请")
    @Parameters({
            @Parameter(name = "applyid", description = "数据申请ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/updateForDiscard")
    public ResponseMsg<Object> updateForDiscard(Integer applyid, HttpServletRequest req) {
@@ -182,9 +183,9 @@
    }
    @SysLog()
    @ApiOperation(value = "重新提交")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "applyid", value = "数据申请ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "重新提交")
    @Parameters({
            @Parameter(name = "applyid", description = "数据申请ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/updateForResubmit")
    public ResponseMsg<Object> updateForResubmit(Integer applyid, HttpServletRequest req) {
@@ -207,9 +208,9 @@
    }
    @SysLog()
    @ApiOperation(value = "提交流程")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "flowId", value = "申请流程ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "提交流程")
    @Parameters({
            @Parameter(name = "flowId", description = "申请流程ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/updateForSubmit")
    public ResponseMsg<Object> updateForSubmit(Integer flowId, HttpServletRequest req) {
@@ -246,9 +247,9 @@
    }
    @SysLog()
    @ApiOperation(value = "打回流程")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "flowId", value = "申请流程ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "打回流程")
    @Parameters({
            @Parameter(name = "flowId", description = "申请流程ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/updateForReject")
    public ResponseMsg<Object> updateForReject(Integer flowId, HttpServletRequest req) {
@@ -279,9 +280,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY)
    })
    @ResponseBody
    @GetMapping(value = "/downloadFile")
se-system/src/main/java/com/terra/system/controller/show/ComprehensiveController.java
@@ -25,11 +25,14 @@
import com.terra.system.service.sys.AttachService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.*;
@@ -41,7 +44,7 @@
 * ç»¼åˆå±•示
 * @author WWW
 */
@Api(tags = "综合展示\\首页")
@Tag(name = "综合展示\\首页")
@RestController
@RequestMapping("/comprehensive")
public class ComprehensiveController extends ModelController {
@@ -79,9 +82,9 @@
    UploadAttachService uploadAttachService;
    @SysLog()
    @ApiOperation(value = "根据ID查询发布清单")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询发布清单")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPubById")
    public ResponseMsg<PublishEntity> selectPubById(int id) {
@@ -95,9 +98,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询管线")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "西气东输"),
    @Operation(summary = "查询管线")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "西气东输"),
    })
    @GetMapping(value = "/selectPipelines")
    public ResponseMsg<Object> selectPipelines(String name) {
@@ -111,12 +114,12 @@
    }
    @SysLog()
    @ApiOperation(value = "查询路网")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "x1", value = "X1", dataType = "Double", paramType = "query", example = "116.78999"),
            @ApiImplicitParam(name = "y1", value = "Y1", dataType = "Double", paramType = "query", example = "39.9468"),
            @ApiImplicitParam(name = "x2", value = "X2", dataType = "Double", paramType = "query", example = "116.80458"),
            @ApiImplicitParam(name = "y2", value = "Y2", dataType = "Double", paramType = "query", example = "39.94758")
    @Operation(summary = "查询路网")
    @Parameters({
            @Parameter(name = "x1", description = "X1", in = ParameterIn.QUERY, example = "116.78999"),
            @Parameter(name = "y1", description = "Y1", in = ParameterIn.QUERY, example = "39.9468"),
            @Parameter(name = "x2", description = "X2", in = ParameterIn.QUERY, example = "116.80458"),
            @Parameter(name = "y2", description = "Y2", in = ParameterIn.QUERY, example = "39.94758")
    })
    @GetMapping(value = "/selectRoute")
    public ResponseMsg<Object> selectRoute(double x1, double y1, double x2, double y2) {
@@ -130,7 +133,7 @@
    }
    @SysLog()
    @ApiOperation(value = "上传ShapeFile文件")
    @Operation(summary = "上传ShapeFile文件")
    @ResponseBody
    @PostMapping(value = "/uploadShp", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Object> uploadShp(HttpServletRequest req, HttpServletResponse res) {
@@ -154,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载ShapeFile文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "标绘JSON实体类集合", dataType = "MarkJsonEntity", paramType = "body")
    @Operation(summary = "下载ShapeFile文件")
    @Parameters({
            @Parameter(name = "list", description = "标绘JSON实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/downloadShp", produces = "application/json; charset=UTF-8")
@@ -182,11 +185,11 @@
    }
    @SysLog()
    @ApiOperation(value = "上传文件")
    @Operation(summary = "上传文件")
    @ResponseBody
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tabName", value = "表名", dataType = "String", paramType = "query", example = "lf.sys_style"),
            @ApiImplicitParam(name = "eventid", value = "主键", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    @Parameters({
            @Parameter(name = "tabName", description = "表名", in = ParameterIn.QUERY, example = "lf.sys_style"),
            @Parameter(name = "eventid", description = "主键", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    })
    @PostMapping(value = "/uploadFiles")
    public ResponseMsg<Integer> uploadFiles(String tabName, String eventid, @RequestParam("file") MultipartFile[] files, HttpServletRequest req) {
@@ -208,9 +211,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY)
    })
    @RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
    public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) {
@@ -236,9 +239,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查看文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "查看文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/downloadForView")
    public void downloadForView(String guid, HttpServletResponse res) {
@@ -246,9 +249,9 @@
    }
    @SysLog()
    @ApiOperation(value = "请求下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guids", value = "附件Guid数组", dataType = "String", paramType = "body", allowMultiple = true, example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c")
    @Operation(summary = "请求下载")
    @Parameters({
            @Parameter(name = "guids", description = "附件Guid数组", schema = @Schema(type = "array"), example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c")
    })
    @ResponseBody
    @PostMapping(value = "/downloadReqForGuids")
@@ -268,10 +271,10 @@
    }
    @SysLog()
    @ApiOperation(value = "请求下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "body", example = "bd.b_borehole"),
            @ApiImplicitParam(name = "guids", value = "附件Guid数组", dataType = "String", paramType = "body", allowMultiple = true, example = "08e5b4ad-93b8-46f6-adaa-46a6274af4ce,6f94f4f8-6e8d-44e7-8803-3d068d34983f")
    @Operation(summary = "请求下载")
    @Parameters({
            @Parameter(name = "tab", description = "表名", example = "bd.b_borehole"),
            @Parameter(name = "guids", description = "附件Guid数组", schema = @Schema(type = "array"), example = "08e5b4ad-93b8-46f6-adaa-46a6274af4ce,6f94f4f8-6e8d-44e7-8803-3d068d34983f")
    })
    @ResponseBody
    @PostMapping(value = "/downloadReqForTabGuids")
@@ -294,10 +297,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tabName", value = "表名", dataType = "String", paramType = "query", example = "lf.sys_style"),
            @ApiImplicitParam(name = "eventid", value = "主键", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    @Operation(summary = "查询文件")
    @Parameters({
            @Parameter(name = "tabName", description = "表名", in = ParameterIn.QUERY, example = "lf.sys_style"),
            @Parameter(name = "eventid", description = "主键", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    })
    @GetMapping(value = "/selectFiles")
    public ResponseMsg<List<AttachEntity>> selectFiles(String tabName, String eventid) {
@@ -315,9 +318,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除文件")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deleteFiles(@RequestParam List<Integer> ids) {
se-system/src/main/java/com/terra/system/controller/show/DataLibController.java
@@ -22,12 +22,13 @@
import com.terra.system.service.data.VerService;
import com.terra.system.service.show.DataLibService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -40,7 +41,7 @@
 * èµ„料馆
 * @author WWW
 */
@Api(tags = "综合展示\\资料馆")
@Tag(name = "综合展示\\资料馆")
@RestController
@RequestMapping("/dataLib")
public class DataLibController extends BaseQueryController {
@@ -60,9 +61,9 @@
    VerService verService;
    @SysLog()
    @ApiOperation(value = "根据目录ID查询版本列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query")
    @Operation(summary = "根据目录ID查询版本列表")
    @Parameters({
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectVerByDirid")
    public ResponseMsg<List<VerEntity>> selectVerByDirid(Integer dirid) {
@@ -83,14 +84,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询元数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "types", value = "资料类别", dataType = "String", paramType = "query", example = "基础测绘,基础地灾,基础勘察,合规数据,管理数据,测绘(ESV),勘察(EGE),地灾(EGD),洞库(EGD)"),
            @ApiImplicitParam(name = "dirs", value = "项目编码", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询元数据")
    @Parameters({
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "types", description = "资料类别", in = ParameterIn.QUERY, example = "基础测绘,基础地灾,基础勘察,合规数据,管理数据,测绘(ESV),勘察(EGE),地灾(EGD),洞库(EGD)"),
            @Parameter(name = "dirs", description = "项目编码", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectMetasForPage")
    public ResponseMsg<Object> selectMetasForPage(String depcode, String types, String dirs, String name, Integer pageSize, Integer pageIndex) {
@@ -115,11 +116,11 @@
    }
    @SysLog()
    @ApiOperation(value = "查询表中数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10")
    @Operation(summary = "查询表中数据")
    @Parameters({
            @Parameter(name = "id", description = "元数据ID", in = ParameterIn.QUERY, example = "115"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10")
    })
    @GetMapping(value = "/selectDbData")
    public ResponseMsg<Object> selectDbData(Integer id, Integer pageIndex, Integer pageSize) {
@@ -154,9 +155,9 @@
    }
    @SysLog()
    @ApiOperation(value = "请求元数据下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dr", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(summary = "请求元数据下载")
    @Parameters({
            @Parameter(name = "dr", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/downloadReq")
@@ -185,10 +186,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "pwd", value = "密码", dataType = "String", paramType = "query")
    @Operation(summary = "查询下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY),
            @Parameter(name = "pwd", description = "密码", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectDownloadFile")
    public ResponseMsg<Boolean> selectDownloadFile(String guid, String pwd) {
@@ -223,10 +224,10 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "pwd", value = "密码", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY),
            @Parameter(name = "pwd", description = "密码", in = ParameterIn.QUERY)
    })
    @ResponseBody
    @GetMapping(value = "/downloadFile")
se-system/src/main/java/com/terra/system/controller/show/ExportController.java
@@ -13,12 +13,13 @@
import com.terra.system.service.show.ExportService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -28,7 +29,7 @@
 * åœ¨çº¿åˆ¶å›¾
 * @author WWW
 */
@Api(tags = "综合展示\\在线制图")
@Tag(name = "综合展示\\在线制图")
@RestController
@RequestMapping("/export")
public class ExportController  extends BaseController {
@@ -45,11 +46,11 @@
    DownloadService downloadService;
    @SysLog()
    @ApiOperation(value = "分页查询下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询下载文件")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -76,9 +77,9 @@
    }
    @SysLog()
    @ApiOperation(value = "新建出图")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "在线制图实体类", dataType = "ExportEntity", paramType = "body")
    @Operation(summary = "新建出图")
    @Parameters({
            @Parameter(name = "entity", description = "在线制图实体类")
    })
    @ResponseBody
    @PostMapping(value = "/insertMap", produces = "application/json; charset=UTF-8")
@@ -106,9 +107,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载出图")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query")
    @Operation(summary = "下载出图")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY)
    })
    @RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
    public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) {
se-system/src/main/java/com/terra/system/controller/show/InquiryController.java
@@ -19,12 +19,13 @@
import com.terra.system.service.data.PublishService;
import com.terra.system.service.show.InquiryService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -34,7 +35,7 @@
 * æŸ¥è¯¢
 * @author WWW
 */
@Api(tags = "综合展示\\查询")
@Tag(name = "综合展示\\查询")
@RestController
@RequestMapping("/inquiry")
public class InquiryController extends BaseQueryController {
@@ -51,7 +52,7 @@
    PublishService publishService;
    @SysLog()
    @ApiOperation(value = "上传Shp文件读取第一条记录的WKT")
    @Operation(summary = "上传Shp文件读取第一条记录的WKT")
    @ResponseBody
    @PostMapping(value = "/uploadShp")
    public ResponseMsg<ShpRecordEntity> uploadShp(HttpServletRequest req, HttpServletResponse res) {
@@ -78,9 +79,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载瓦片")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dt", value = "下载瓦片实体类", dataType = "DownloadTileEntity", paramType = "body")
    @Operation(summary = "下载瓦片")
    @Parameters({
            @Parameter(name = "dt", description = "下载瓦片实体类")
    })
    @ResponseBody
    @PostMapping(value = "/downloadTiles")
@@ -115,9 +116,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY)
    })
    @ResponseBody
    @GetMapping(value = "/downloadFile")
se-system/src/main/java/com/terra/system/controller/show/MarkController.java
@@ -10,12 +10,13 @@
import com.terra.system.service.show.MarkService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -24,7 +25,7 @@
 * æ ‡ç»˜
 * @author WWW
 */
@Api(tags = "综合展示\\标绘")
@Tag(name = "综合展示\\标绘")
@RestController
@RequestMapping("/mark")
public class MarkController extends BaseController {
@@ -44,10 +45,10 @@
    DownloadService downloadService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<MarkEntity>> selectByPageAndCount(Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -74,9 +75,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<MarkEntity> selectById(int id) {
@@ -90,9 +91,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MarkEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody MarkEntity entity, HttpServletRequest req) {
@@ -111,9 +112,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MarkEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<MarkEntity> list, HttpServletRequest req) {
@@ -134,9 +135,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -150,9 +151,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -170,9 +171,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MarkEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -192,9 +193,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MarkEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/show/ModelController.java
@@ -8,11 +8,12 @@
import com.terra.system.helper.StringHelper;
import com.terra.system.service.show.ModelService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -29,11 +30,11 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "分页查询模型并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "layerid", value = "图层ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询模型并返回记录数")
    @Parameters({
            @Parameter(name = "layerid", description = "图层ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectModelByPageAndCount")
    public ResponseMsg<List<ModelEntity>> selectModelByPageAndCount(Integer layerid, Integer pageSize, Integer pageIndex) {
@@ -56,9 +57,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询模型")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectModelById")
    public ResponseMsg<ModelEntity> selectModelById(int id) {
@@ -72,10 +73,10 @@
    }
    @SysLog()
    @ApiOperation(value = "根据Guid查询模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "layerid", value = "图层ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "modelid", value = "模型ID", dataType = "String", paramType = "query", example = "")
    @Operation(summary = "根据Guid查询模型")
    @Parameters({
            @Parameter(name = "layerid", description = "图层ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "modelid", description = "模型ID", in = ParameterIn.QUERY, example = "")
    })
    @GetMapping(value = "/selectModelByGuid")
    public ResponseMsg<ModelEntity> selectModelByGuid(Integer layerid, String modelid) {
@@ -93,9 +94,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ModelEntity", paramType = "body")
    @Operation(summary = "插入一个模型")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insertModel", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertModel(@RequestBody ModelEntity entity, HttpServletRequest req) {
@@ -114,9 +115,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ModelEntity", paramType = "body")
    @Operation(summary = "插入多个模型")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/insertModels", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertModels(@RequestBody List<ModelEntity> list, HttpServletRequest req) {
@@ -137,9 +138,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一个模型")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteModel")
    public ResponseMsg<Integer> deleteModel(int id) {
@@ -153,9 +154,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多个模型")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteModels")
    public ResponseMsg<Integer> deleteModels(@RequestParam List<Integer> ids) {
@@ -173,9 +174,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ModelEntity", paramType = "body")
    @Operation(summary = "更新一个模型")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/updateModel", produces = "application/json; charset=UTF-8")
@@ -195,9 +196,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ModelEntity", paramType = "body")
    @Operation(summary = "更新多个模型")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updateModels", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/ArgsController.java
@@ -7,12 +7,13 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.ArgsService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -21,7 +22,7 @@
 * å‚数设置
 * @author WWW
 */
@Api(tags = "运维管理\\系统配置")
@Tag(name = "运维管理\\系统配置")
@RestController
@RequestMapping("/args")
public class ArgsController extends BaseController {
@@ -32,9 +33,9 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", required = false, example = "有效期")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, required = false, example = "有效期")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String name) {
@@ -48,11 +49,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "有效期"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "有效期"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<ArgsEntity>> selectByPage(String name, Integer pageSize, Integer pageIndex) {
@@ -70,11 +71,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "有效期"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "有效期"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ArgsEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) {
@@ -95,7 +96,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<ArgsEntity>> selectAll() {
        try {
@@ -108,9 +109,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<ArgsEntity> selectById(int id) {
@@ -124,9 +125,9 @@
    }
    /*@SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ArgsEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", dataType = "ArgsEntity")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody ArgsEntity entity, HttpServletRequest req) {
@@ -145,9 +146,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ArgsEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", dataType = "ArgsEntity")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<ArgsEntity> list, HttpServletRequest req) {
@@ -168,9 +169,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -184,9 +185,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -204,9 +205,9 @@
    }*/
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ArgsEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -238,9 +239,9 @@
    }
    /*@SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ArgsEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", dataType = "ArgsEntity")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/AuthController.java
@@ -8,12 +8,14 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.AuthService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -23,7 +25,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\权限管理")
@Tag(name = "运维管理\\权限管理")
@RestController
@RequestMapping("/auth")
public class AuthController extends BaseController {
@@ -37,9 +39,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", required = false, example = "sys_auth")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, required = false, example = "sys_auth")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String name) {
@@ -53,11 +55,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "sys_auth"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "sys_auth"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<AuthEntity>> selectByPage(String name, Integer pageSize, Integer pageIndex) {
@@ -73,11 +75,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<AuthEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) {
@@ -100,11 +102,11 @@
    }
    @SysLog()
    @ApiOperation(value = "根据菜单分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据菜单分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForMenu")
    public ResponseMsg<List<AuthEntity>> selectByPageForMenu(Integer menuid, Integer pageSize, Integer pageIndex) {
@@ -127,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "AuthEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertAuth", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertAuth(@RequestBody AuthEntity entity, HttpServletRequest req) {
@@ -151,9 +153,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<AuthEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertAuths", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertAuths(@RequestBody List<AuthEntity> list, HttpServletRequest req) {
@@ -177,9 +179,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteAuth")
    public ResponseMsg<Integer> deleteAuth(int id) {
@@ -196,9 +198,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteAuths")
    public ResponseMsg<Integer> deleteAuths(@RequestParam List<Integer> ids) {
@@ -219,9 +221,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "LoginEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", schema = @Schema(type = "array"), example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateAuth", produces = "application/json; charset=UTF-8")
@@ -244,9 +246,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectAuth")
    public ResponseMsg<AuthEntity> selectAuth(int id) {
@@ -260,7 +262,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAuthAll")
    public ResponseMsg<List<AuthEntity>> selectAuthAll() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/BlacklistController.java
@@ -7,12 +7,13 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.BlacklistService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -21,7 +22,7 @@
 * é»‘名单
 * @author WWW
 */
@Api(tags = "运维管理\\黑名单")
@Tag(name = "运维管理\\黑名单")
@RestController
@RequestMapping("/blacklist")
public class BlacklistController extends BaseController {
@@ -32,10 +33,10 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ip", value = "IP地址", dataType = "String", paramType = "query", required = false, example = "192."),
            @ApiImplicitParam(name = "type", value = "类别", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "ip", description = "IP地址", in = ParameterIn.QUERY, required = false, example = "192."),
            @Parameter(name = "type", description = "类别", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String ip, Integer type) {
@@ -49,12 +50,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ip", value = "IP地址", dataType = "String", paramType = "query", example = "192."),
            @ApiImplicitParam(name = "type", value = "类别", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "ip", description = "IP地址", in = ParameterIn.QUERY, example = "192."),
            @Parameter(name = "type", description = "类别", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<BlacklistEntity>> selectByPage(String ip, Integer type, Integer pageSize, Integer pageIndex) {
@@ -72,12 +73,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ip", value = "IP地址", dataType = "String", paramType = "query", required = false, example = "192."),
            @ApiImplicitParam(name = "type", value = "类别", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "ip", description = "IP地址", in = ParameterIn.QUERY, required = false, example = "192."),
            @Parameter(name = "type", description = "类别", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<BlacklistEntity>> selectByPageAndCount(String ip, Integer type, Integer pageSize, Integer pageIndex) {
@@ -98,7 +99,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<BlacklistEntity>> selectAll() {
        try {
@@ -111,9 +112,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<BlacklistEntity> selectById(int id) {
@@ -127,9 +128,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "BlacklistEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody BlacklistEntity entity, HttpServletRequest req) {
@@ -148,9 +149,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "BlacklistEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<BlacklistEntity> list, HttpServletRequest req) {
@@ -171,9 +172,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -187,9 +188,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -207,9 +208,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "BlacklistEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -229,9 +230,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "BlacklistEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/CtrlController.java
@@ -6,9 +6,12 @@
import com.terra.system.entity.all.ResponseMsg;
import com.terra.system.entity.sys.ResEntity;
import com.terra.system.service.all.ScheduleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -21,7 +24,7 @@
 * @author WWW
 * @date   2022-09-21
 */
@Api(tags = "运维管理\\控制台")
@Tag(name = "运维管理\\控制台")
@RestController
@RequestMapping("/ctrl")
public class CtrlController extends BaseController {
@@ -29,7 +32,7 @@
    private ScheduleService scheduleService;
    @SysLog()
    @ApiOperation(value = "查询服务器状态")
    @Operation(summary = "查询服务器状态")
    @GetMapping(value = "/selectServerStatus")
    public ResponseMsg<JSONObject> selectServerStatus() {
        try {
@@ -42,7 +45,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询Cpu信息")
    @Operation(summary = "查询Cpu信息")
    @GetMapping(value = "/selectCpuInfo")
    public ResponseMsg<JSONObject> selectCpuInfo() {
        try {
@@ -55,7 +58,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询内存信息")
    @Operation(summary = "查询内存信息")
    @GetMapping(value = "/selectMemInfo")
    public ResponseMsg<JSONObject> selectMemInfo() {
        try {
@@ -68,7 +71,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询在线用户")
    @Operation(summary = "查询在线用户")
    @GetMapping(value = "/selectOnlineUsers")
    public ResponseMsg<List<JSONObject>> selectOnlineUsers() {
        try {
@@ -81,7 +84,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询服务资源状态")
    @Operation(summary = "查询服务资源状态")
    @GetMapping(value = "/selectResStatus")
    public ResponseMsg<List<ResEntity>> selectResStatus() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/DepController.java
@@ -8,12 +8,13 @@
import com.terra.system.helper.StringHelper;
import com.terra.system.service.sys.DepService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -23,7 +24,7 @@
 * @author sws
 * @date   2022-09-23
 */
@Api(tags = "运维管理\\单位管理")
@Tag(name = "运维管理\\单位管理")
@RestController
@RequestMapping("/dep")
public class DepController extends BaseController {
@@ -34,9 +35,9 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DepEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertDep", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDep(@RequestBody DepEntity entity, HttpServletRequest req) {
@@ -55,9 +56,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DepEntity", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @PostMapping(value = "/insertDes", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDes(@RequestBody List<DepEntity> list, HttpServletRequest req) {
@@ -78,9 +79,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteDep")
    public ResponseMsg<Integer> deleteDep(int id) {
@@ -94,9 +95,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteDeps")
    public ResponseMsg<Integer> deleteDeps(@RequestParam List<Integer> ids) {
@@ -114,9 +115,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DepEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateDep", produces = "application/json; charset=UTF-8")
@@ -136,9 +137,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DepEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updateDeps", produces = "application/json; charset=UTF-8")
@@ -160,9 +161,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectDep")
    public ResponseMsg<DepEntity> selectDep(int id) {
@@ -175,7 +176,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有数据")
    @Operation(summary = "查询所有数据")
    @GetMapping(value = "/selectDepAll")
    public ResponseMsg<List<DepEntity>> selectDepAll() {
        try {
@@ -187,9 +188,9 @@
    }
    @SysLog()
    @ApiOperation(value = "递归查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "单位名称", dataType = "String", paramType = "query", required = false, example = "中国xxx工程有限公司")
    @Operation(summary = "递归查询")
    @Parameters({
            @Parameter(name = "name", description = "单位名称", in = ParameterIn.QUERY, required = false, example = "中国xxx工程有限公司")
    })
    @GetMapping(value = "/selectDepRecursive")
    public ResponseMsg<List<DepEntity>> selectDepRecursive(String name) {
se-system/src/main/java/com/terra/system/controller/sys/DownlogController.java
@@ -6,12 +6,13 @@
import com.terra.system.entity.sys.DownlogEntity;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import java.sql.Timestamp;
import java.util.List;
@@ -20,7 +21,7 @@
 * ä¸‹è½½æ—¥å¿—
 * @author WWW
 */
@Api(tags = "运维管理\\下载日志")
@Tag(name = "运维管理\\下载日志")
@RestController
@RequestMapping("/downlog")
public class DownlogController extends BaseController {
@@ -31,14 +32,14 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "3"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-12-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-12-25 17:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "3"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-12-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-12-25 17:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<Object> selectByPageAndCount(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
se-system/src/main/java/com/terra/system/controller/sys/LayerController.java
@@ -8,17 +8,18 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.LayerService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@Api(tags = "运维管理\\图层管理")
@Tag(name = "运维管理\\图层管理")
@RestController
@SuppressWarnings("ALL")
@RequestMapping("/layer")
@@ -33,11 +34,11 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<LayerEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) {
@@ -60,7 +61,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<LayerEntity>> selectAll(Integer flag) {
        try {
@@ -73,9 +74,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<LayerEntity> selectById(int id) {
@@ -89,9 +90,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "LayerEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody LayerEntity entity, HttpServletRequest req) {
@@ -111,9 +112,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "LayerEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<LayerEntity> list, HttpServletRequest req) {
@@ -135,9 +136,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -152,9 +153,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -173,9 +174,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "LayerEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -196,9 +197,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "LayerEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/LoginController.java
@@ -7,12 +7,14 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.LoginService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.sql.Timestamp;
@@ -23,7 +25,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\登录日志")
@Tag(name = "运维管理\\登录日志")
@RestController
@RequestMapping("/login")
public class LoginController extends BaseController {
@@ -34,12 +36,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String uname, Integer type, Timestamp start, Timestamp end) {
@@ -53,14 +55,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<LoginEntity>> selectByPage(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -77,14 +79,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<LoginEntity>> selectByPageAndCount(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -107,9 +109,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "LoginEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertLogin", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertLogin(@RequestBody LoginEntity entity, HttpServletRequest req) {
@@ -128,9 +130,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<LoginEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertLogins", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertLogins(@RequestBody List<LoginEntity> list, HttpServletRequest req) {
@@ -151,9 +153,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteLogin")
    public ResponseMsg<Integer> deleteLogin(int id) {
@@ -167,9 +169,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteLogins")
    public ResponseMsg<Integer> deleteLogins(@RequestParam List<Integer> ids) {
@@ -185,9 +187,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "LoginEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateLogin", produces = "application/json; charset=UTF-8")
@@ -207,9 +209,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectLogin")
    public ResponseMsg<LoginEntity> selectLogin(int id) {
@@ -223,7 +225,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectLoginAll")
    public ResponseMsg<List<LoginEntity>> selectLoginAll() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/MenuAuthController.java
@@ -8,12 +8,13 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.MenuAuthService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +23,7 @@
 * èœå•-权限
 * @author WWW
 */
@Api(tags = "运维管理\\菜单权限")
@Tag(name = "运维管理\\菜单权限")
@RestController
@RequestMapping("/menuAuth")
public class MenuAuthController extends BaseController {
@@ -36,9 +37,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", required = false, example = "")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, required = false, example = "")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(Integer menuid) {
@@ -52,11 +53,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<MenuAuthEntity>> selectByPage(Integer menuid, Integer pageSize, Integer pageIndex) {
@@ -74,11 +75,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<MenuAuthEntity>> selectByPageAndCount(Integer menuid, Integer pageSize, Integer pageIndex) {
@@ -99,12 +100,12 @@
    }
    @SysLog()
    @ApiOperation(value = "根据角色ID+菜单ID分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色ID+菜单ID分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForRole")
    public ResponseMsg<List<MenuAuthEntity>> selectByPageForRole(Integer roleid, Integer menuid, Integer pageSize, Integer pageIndex) {
@@ -113,12 +114,12 @@
                return fail("每页页数或分页数小于1", null);
            }
            int count = menuAuthService.selectCountForRole(roleid,  menuid);
            int count = menuAuthService.selectCountForRole(roleid, menuid);
            if (count == 0) {
                return success(0, null);
            }
            List<MenuAuthEntity> rs = menuAuthService.selectByPageForRole(roleid,  menuid, pageSize, pageSize * (pageIndex - 1));
            List<MenuAuthEntity> rs = menuAuthService.selectByPageForRole(roleid, menuid, pageSize, pageSize * (pageIndex - 1));
            return success(count, rs);
        } catch (Exception ex) {
@@ -127,7 +128,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<MenuAuthEntity>> selectAll() {
        try {
@@ -140,9 +141,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<MenuAuthEntity> selectById(int id) {
@@ -156,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MenuAuthEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody MenuAuthEntity entity, HttpServletRequest req) {
@@ -180,9 +181,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MenuAuthEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<MenuAuthEntity> list, HttpServletRequest req) {
@@ -206,9 +207,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -225,9 +226,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -248,9 +249,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MenuAuthEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -273,9 +274,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MenuAuthEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/MenuController.java
@@ -9,12 +9,14 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.MenuService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -24,7 +26,7 @@
 * @author sws
 * @date   2022-09-23
 */
@Api(tags= "运维管理\\菜单管理")
@Tag(name= "运维管理\\菜单管理")
@RestController
@RequestMapping("/menu")
public class MenuController extends BaseController {
@@ -38,9 +40,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MenusEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertMenu", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertMenu(@RequestBody MenuEntity entity, HttpServletRequest req) {
@@ -62,9 +64,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MenusEntity", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @PostMapping(value = "/insertMenus", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertMenus(@RequestBody List<MenuEntity> list, HttpServletRequest req) {
@@ -88,9 +90,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteMenu")
    public ResponseMsg<Integer> deleteMenu(int id) {
@@ -107,9 +109,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteMenus")
    public ResponseMsg<Integer> deleteMenus(@RequestParam List<Integer> ids) {
@@ -130,9 +132,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MenusEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateMenu", produces = "application/json; charset=UTF-8")
@@ -155,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MenusEntity", paramType = "body", example = "")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateMenus", produces = "application/json; charset=UTF-8")
@@ -182,9 +184,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectMenu")
    public ResponseMsg<MenuEntity> selectMenu(int id) {
@@ -198,7 +200,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectMenuAll")
    public ResponseMsg<List<MenuEntity>> selectMenuAll() {
        try {
@@ -211,9 +213,9 @@
    }
    @SysLog()
    @ApiOperation(value = "递归查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "菜单名称", dataType = "String", paramType = "query", required = false, example = "管道基础大数据平台")
    @Operation(summary = "递归查询")
    @Parameters({
            @Parameter(name = "name", description = "菜单名称", in = ParameterIn.QUERY, required = false, example = "管道基础大数据平台")
    })
    @GetMapping(value = "/selectMenuRecursive")
    public ResponseMsg<Object> selectMenuRecursive(String name) {
se-system/src/main/java/com/terra/system/controller/sys/OperateController.java
@@ -7,12 +7,14 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.OperateService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.sql.Timestamp;
@@ -23,7 +25,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\操作日志")
@Tag(name = "运维管理\\操作日志")
@RestController
@RequestMapping("/operate")
public class OperateController extends BaseController {
@@ -34,12 +36,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String uname, Integer type, Timestamp start, Timestamp end) {
@@ -53,14 +55,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<OperateEntity>> selectByPage(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -76,14 +78,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<OperateEntity>> selectByPageAndCount(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -106,9 +108,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "OperateEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertOperate", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertOperate(@RequestBody OperateEntity entity, HttpServletRequest req) {
@@ -127,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<OperateEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertOperates", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertOperates(@RequestBody List<OperateEntity> list, HttpServletRequest req) {
@@ -150,9 +152,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteOperate")
    public ResponseMsg<Integer> deleteOperate(int id) {
@@ -166,9 +168,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteOperates")
    public ResponseMsg<Integer> deleteOperates(@RequestParam List<Integer> ids) {
@@ -184,9 +186,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "OperateEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateOperate", produces = "application/json; charset=UTF-8")
@@ -206,9 +208,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectOperate")
    public ResponseMsg<OperateEntity> selectOperate(int id) {
@@ -222,7 +224,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectOperateAll")
    public ResponseMsg<List<OperateEntity>> selectOperateAll() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/ReportController.java
@@ -8,10 +8,11 @@
import com.terra.system.service.all.UploadAttachService;
import com.terra.system.service.sys.ReportService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.*;
@@ -24,7 +25,7 @@
 * æŠ¥å‘Šæ¨¡æ¿
 * @author WWW
 */
@Api(tags = "运维管理\\模板管理")
@Tag(name = "运维管理\\模板管理")
@RestController
@RequestMapping("/report")
public class ReportController extends BaseController {
@@ -40,11 +41,11 @@
    private final static String TAB_NAME = "lf.sys_report";
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ReportEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) {
@@ -67,9 +68,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<ReportEntity> selectById(int id) {
@@ -83,9 +84,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ReportEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody ReportEntity entity, HttpServletRequest req) {
@@ -104,9 +105,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -120,9 +121,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -140,9 +141,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ReportEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -162,7 +163,7 @@
    }
    @SysLog()
    @ApiOperation(value = "上传文件")
    @Operation(summary = "上传文件")
    @ResponseBody
    @PostMapping(value = "/upload")
    public ResponseMsg<String> upload(@RequestParam("file") MultipartFile file, HttpServletRequest req) {
@@ -172,9 +173,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/download")
    public void download(String guid, HttpServletResponse res) {
se-system/src/main/java/com/terra/system/controller/sys/ResController.java
@@ -10,11 +10,13 @@
import com.terra.system.service.all.UploadAttachService;
import com.terra.system.service.sys.ResService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.*;
@@ -27,7 +29,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\资源管理")
@Tag(name = "运维管理\\资源管理")
@RestController
@RequestMapping("/res")
public class ResController extends BaseController {
@@ -46,15 +48,15 @@
    private final static String TAB_NAME = "lf.sys_res";
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "status", value = "状态", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "category", value = "服务类别", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "type", value = "服务类型", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "data", value = "数据类型", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "status", description = "状态", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "category", description = "服务类别", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "type", description = "服务类型", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "data", description = "数据类型", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ResEntity>> selectByPageAndCount(String name, Integer status, Integer category, Integer type, Integer data, Integer pageSize, Integer pageIndex) {
@@ -77,11 +79,11 @@
    }
    @SysLog()
    @ApiOperation(value = "根据角色分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForRole")
    public ResponseMsg<List<ResEntity>> selectByPageForRole(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -104,7 +106,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<ResEntity>> selectAll() {
        try {
@@ -117,9 +119,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<ResEntity> selectById(int id) {
@@ -133,9 +135,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ResEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody ResEntity entity, HttpServletRequest req) {
@@ -156,9 +158,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ResEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<ResEntity> list, HttpServletRequest req) {
@@ -181,9 +183,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -198,9 +200,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -220,9 +222,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ResEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -244,9 +246,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ResEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
@@ -270,7 +272,7 @@
    }
    @SysLog()
    @ApiOperation(value = "上传文件")
    @Operation(summary = "上传文件")
    @ResponseBody
    @PostMapping(value = "/upload")
    public ResponseMsg<String> upload(@RequestParam("file") MultipartFile file, HttpServletRequest req) {
@@ -280,9 +282,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/download")
    public void download(String guid, HttpServletResponse res) {
@@ -290,9 +292,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查看文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "查看文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/downloadForView")
    public void downloadForView(String guid, HttpServletResponse res) {
se-system/src/main/java/com/terra/system/controller/sys/ResLogController.java
@@ -7,10 +7,11 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.ResLogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -18,7 +19,7 @@
import java.util.List;
@SuppressWarnings("ALL")
@Api(tags = "运维管理\\资源日志")
@Tag(name = "运维管理\\资源日志")
@RestController
@RequestMapping("/resLog")
public class ResLogController extends BaseController {
@@ -29,9 +30,9 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "resid", value = "资源ID", dataType = "Integer", paramType = "query", required = false, example = "")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "resid", description = "资源ID", in = ParameterIn.QUERY, required = false, example = "")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(Integer resid) {
@@ -45,11 +46,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "resid", value = "资源ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "resid", description = "资源ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<ResLogEntity>> selectByPage(Integer resid, Integer pageSize, Integer pageIndex) {
@@ -67,11 +68,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "resid", value = "资源ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "resid", description = "资源ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ResLogEntity>> selectByPageAndCount(Integer resid, Integer pageSize, Integer pageIndex) {
@@ -94,9 +95,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<ResLogEntity> selectById(int id) {
@@ -110,9 +111,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -126,9 +127,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
se-system/src/main/java/com/terra/system/controller/sys/ResOpController.java
@@ -7,12 +7,14 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.ResOpService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.sql.Timestamp;
@@ -23,7 +25,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\资源操作")
@Tag(name = "运维管理\\资源操作")
@RestController
@RequestMapping("/resOp")
public class ResOpController extends BaseController {
@@ -34,12 +36,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "资源名称", dataType = "String", paramType = "query", example = "天地图"),
            @ApiImplicitParam(name = "type", value = "操作类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 18:00:00"),
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "资源名称", in = ParameterIn.QUERY, example = "天地图"),
            @Parameter(name = "type", description = "操作类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 18:00:00"),
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String name, Integer type, Timestamp start, Timestamp end) {
@@ -53,14 +55,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "资源名称", dataType = "String", paramType = "query", example = "天地图"),
            @ApiImplicitParam(name = "type", value = "操作类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 18:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "资源名称", in = ParameterIn.QUERY, example = "天地图"),
            @Parameter(name = "type", description = "操作类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 18:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<ResOpEntity>> selectByPage(String name, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -76,14 +78,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "资源名称", dataType = "String", paramType = "query", example = "天地图"),
            @ApiImplicitParam(name = "type", value = "操作类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 18:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "资源名称", in = ParameterIn.QUERY, example = "天地图"),
            @Parameter(name = "type", description = "操作类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 18:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ResOpEntity>> selectByPageAndCount(String name, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -106,9 +108,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "com.terra.system.entity.sys.ResOpEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertResOp", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertResOp(@RequestBody ResOpEntity entity, HttpServletRequest req) {
@@ -127,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<ResOpEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertResOps", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertResOps(@RequestBody List<ResOpEntity> list, HttpServletRequest req) {
@@ -150,9 +152,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteLogin")
    public ResponseMsg<Integer> deleteResOp(int id) {
@@ -166,9 +168,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteResOps")
    public ResponseMsg<Integer> deleteResOps(@RequestParam List<Integer> ids) {
@@ -184,9 +186,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "ID数组", dataType = "LoginEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "ID数组", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateResOp", produces = "application/json; charset=UTF-8")
@@ -206,9 +208,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectResOp")
    public ResponseMsg<ResOpEntity> selectResOp(int id) {
@@ -222,7 +224,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectResOpAll")
    public ResponseMsg<List<ResOpEntity>> selectResOpAll() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/RoleController.java
@@ -8,12 +8,14 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.RoleService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -23,7 +25,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\角色管理")
@Tag(name = "运维管理\\角色管理")
@RestController
@RequestMapping("/role")
public class RoleController extends BaseController {
@@ -37,10 +39,10 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "Admin"),
            @ApiImplicitParam(name = "depid", value = "单位ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "Admin"),
            @Parameter(name = "depid", description = "单位ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String name, Integer depid) {
@@ -54,12 +56,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "Admin"),
            @ApiImplicitParam(name = "depid", value = "单位ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "Admin"),
            @Parameter(name = "depid", description = "单位ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<RoleEntity>> selectByPage(String name, Integer depid, Integer pageSize, Integer pageIndex) {
@@ -77,12 +79,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "Admin"),
            @ApiImplicitParam(name = "depid", value = "单位ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "Admin"),
            @Parameter(name = "depid", description = "单位ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<RoleEntity>> selectByPageAndCount(String name, Integer depid, Integer pageSize, Integer pageIndex) {
@@ -105,9 +107,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertRole", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertRole(@RequestBody RoleEntity entity, HttpServletRequest req) {
@@ -127,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<RoleEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertRoles", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertRoles(@RequestBody List<RoleEntity> list, HttpServletRequest req) {
@@ -151,9 +153,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteRole")
    public ResponseMsg<Integer> deleteRole(int id) {
@@ -168,9 +170,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteAuths")
    public ResponseMsg<Integer> deleteRoles(@RequestParam List<Integer> ids) {
@@ -189,9 +191,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateRole", produces = "application/json; charset=UTF-8")
@@ -212,9 +214,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectRole")
    public ResponseMsg<RoleEntity> selectRole(int id) {
@@ -228,7 +230,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectRoleAll")
    public ResponseMsg<List<RoleEntity>> selectRoleAll() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/RoleLayerController.java
@@ -9,10 +9,11 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.RoleLayerService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -20,7 +21,7 @@
import java.util.List;
@SuppressWarnings("ALL")
@Api(tags = "运维管理\\角色图层")
@Tag(name = "运维管理\\角色图层")
@RestController
@RequestMapping("/roleLayer")
public class RoleLayerController extends BaseController {
@@ -34,9 +35,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "根据角色ID查询图层")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色ID查询图层")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectResByRole")
    public ResponseMsg<Object> selectLayersByRole(Integer roleid) {
@@ -50,11 +51,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<RoleLayerEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -77,9 +78,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<RoleLayerEntity> selectById(int id) {
@@ -93,9 +94,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleLayerEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody RoleLayerEntity entity, HttpServletRequest req) {
@@ -115,9 +116,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleLayerEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<RoleLayerEntity> list, HttpServletRequest req) {
@@ -139,9 +140,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -156,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -177,9 +178,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleLayerEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -200,9 +201,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleLayerEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/RoleMenuAuthController.java
@@ -8,12 +8,13 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.RoleMenuAuthService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +23,7 @@
 * è§’色-菜单
 * @author WWW
 */
@Api(tags = "运维管理\\角色菜单")
@Tag(name = "运维管理\\角色菜单")
@RestController
@RequestMapping("/roleMenuAuth")
public class RoleMenuAuthController extends BaseController {
@@ -36,9 +37,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", required = false, example = "")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, required = false, example = "")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(Integer roleid) {
@@ -52,11 +53,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<RoleMenuAuthEntity>> selectByPage(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -74,11 +75,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<RoleMenuAuthEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -99,12 +100,12 @@
    }
    @SysLog()
    @ApiOperation(value = "根据角色ID+菜单ID分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色ID+菜单ID分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForRole")
    public ResponseMsg<List<RoleMenuAuthEntity>> selectByPageForRole(Integer roleid, Integer menuid, Integer pageSize, Integer pageIndex) {
@@ -127,7 +128,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<RoleMenuAuthEntity>> selectAll() {
        try {
@@ -140,9 +141,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<RoleMenuAuthEntity> selectById(int id) {
@@ -156,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleMenuAuthEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody RoleMenuAuthEntity entity, HttpServletRequest req) {
@@ -180,9 +181,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleMenuAuthEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<RoleMenuAuthEntity> list, HttpServletRequest req) {
@@ -206,9 +207,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -225,9 +226,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -248,9 +249,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleMenuAuthEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -273,9 +274,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleMenuAuthEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/RoleResController.java
@@ -8,12 +8,13 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.RoleResService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +23,7 @@
 * è§’色-资源
 * @author WWW
 */
@Api(tags = "运维管理\\角色资源")
@Tag(name = "运维管理\\角色资源")
@RestController
@RequestMapping("/roleRes")
public class RoleResController extends BaseController {
@@ -36,9 +37,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "根据角色ID查询资源")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色ID查询资源")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectResByRole")
    public ResponseMsg<List<RoleResEntity>> selectResByRole(Integer roleid) {
@@ -52,11 +53,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<RoleResEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -78,9 +79,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<RoleResEntity> selectById(int id) {
@@ -94,9 +95,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleResEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody RoleResEntity entity, HttpServletRequest req) {
@@ -116,9 +117,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleResEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<RoleResEntity> list, HttpServletRequest req) {
@@ -140,9 +141,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -157,9 +158,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -178,9 +179,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleResEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -201,9 +202,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleResEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/RoleUserController.java
@@ -8,12 +8,13 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.RoleUserService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +23,7 @@
 * è§’色-用户
 * @author WWW
 */
@Api(tags = "运维管理\\用户角色")
@Tag(name = "运维管理\\用户角色")
@RestController
@RequestMapping("/roleUser")
public class RoleUserController extends BaseController {
@@ -36,9 +37,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", required = false, example = "")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, required = false, example = "")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(Integer roleid) {
@@ -52,11 +53,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<RoleUserEntity>> selectByPage(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -74,11 +75,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<RoleUserEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -99,7 +100,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<RoleUserEntity>> selectAll() {
        try {
@@ -112,9 +113,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<RoleUserEntity> selectById(int id) {
@@ -128,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleUserEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody RoleUserEntity entity, HttpServletRequest req) {
@@ -152,9 +153,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleUserEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<RoleUserEntity> list, HttpServletRequest req) {
@@ -178,9 +179,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -197,9 +198,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -220,9 +221,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleUserEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -245,9 +246,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleUserEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/TokenController.java
@@ -9,12 +9,14 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.helper.StringHelper;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -24,7 +26,7 @@
 * @author WWW
 * @date 2022-09-28
 */
@Api(tags = "运维管理\\令牌管理")
@Tag(name = "运维管理\\令牌管理")
@RestController
@RequestMapping("/token")
public class TokenController extends BaseController {
@@ -32,12 +34,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "令牌", dataType = "String", paramType = "query", example = "ec101de8-1403-4d8f-ad13-edab8358399b"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "令牌", in = ParameterIn.QUERY, example = "ec101de8-1403-4d8f-ad13-edab8358399b"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<TokenEntity>> selectByPageAndCount(String name, Integer type, Integer pageSize, Integer pageIndex) {
@@ -57,9 +59,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "TokenEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertToken", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertToken(@RequestBody TokenEntity entity, HttpServletRequest req) {
@@ -78,10 +80,10 @@
    }
    @SysLog()
    @ApiOperation(value = "创建新令牌")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "type", value = "令牌类别:0-临时,1-固定", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "min", value = "分钟数:默认1个月", dataType = "Integer", paramType = "query", example = "43200")
    @Operation(summary = "创建新令牌")
    @Parameters({
            @Parameter(name = "type", description = "令牌类别:0-临时,1-固定", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "min", description = "分钟数:默认1个月", in = ParameterIn.QUERY, example = "43200")
    })
    @GetMapping(value = "/insertNewToken")
    public ResponseMsg<Object> insertNewToken(Integer type, Integer min, HttpServletRequest req) {
@@ -107,9 +109,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteToken")
    public ResponseMsg<Integer> deleteToken(int id) {
@@ -123,9 +125,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteTokens")
    public ResponseMsg<Integer> deleteTokens(@RequestParam List<Integer> ids) {
@@ -143,9 +145,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "TokenEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateToken", produces = "application/json; charset=UTF-8")
@@ -165,9 +167,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID更新令牌为失效")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "令牌ID", dataType = "Integer", paramType = "query", example = "6563")
    @Operation(summary = "根据ID更新令牌为失效")
    @Parameters({
            @Parameter(name = "id", description = "令牌ID", in = ParameterIn.QUERY, example = "6563")
    })
    @GetMapping(value = "/updateExpireById")
    public ResponseMsg<Integer> updateExpireById(Integer id, HttpServletRequest req) {
@@ -191,9 +193,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据Token更新令牌为失效")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tk", value = "令牌", dataType = "String", paramType = "query", example = "2edea2a2-e307-4baa-992c-b477ce0566dd")
    @Operation(summary = "根据Token更新令牌为失效")
    @Parameters({
            @Parameter(name = "tk", description = "令牌", in = ParameterIn.QUERY, example = "2edea2a2-e307-4baa-992c-b477ce0566dd")
    })
    @GetMapping(value = "/updateExpireByToken")
    public ResponseMsg<Integer> updateExpireByToken(String tk, HttpServletRequest req) {
@@ -217,9 +219,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1658")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1658")
    })
    @GetMapping(value = "/selectToken")
    public ResponseMsg<TokenEntity> selectToken(int id) {
@@ -233,9 +235,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询(有效期内的)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "6563")
    @Operation(summary = "根据ID查询(有效期内的)")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "6563")
    })
    @GetMapping(value = "/selectOneById")
    public ResponseMsg<TokenEntity> selectOneById(Integer id) {
@@ -252,9 +254,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据token查询(有效期内的)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tk", value = "令牌", dataType = "String", paramType = "query", example = "2edea2a2-e307-4baa-992c-b477ce0566dd")
    @Operation(summary = "根据token查询(有效期内的)")
    @Parameters({
            @Parameter(name = "tk", description = "令牌", in = ParameterIn.QUERY, example = "2edea2a2-e307-4baa-992c-b477ce0566dd")
    })
    @GetMapping(value = "/selectOneByToken")
    public ResponseMsg<TokenEntity> selectOneByToken(String tk) {
se-system/src/main/java/com/terra/system/controller/sys/UserController.java
@@ -9,12 +9,14 @@
import com.terra.system.helper.StringHelper;
import com.terra.system.service.sys.TokenService;
import com.terra.system.service.sys.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -24,7 +26,7 @@
 * @author sws
 * @date 2022-09-27
 */
@Api(tags = "运维管理\\用户管理")
@Tag(name = "运维管理\\用户管理")
@RestController
@RequestMapping("/user")
public class UserController extends BaseController {
@@ -35,12 +37,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "室"),
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "室"),
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<UserEntity>> selectByPageAndCount(String uname, String depcode, Integer pageSize, Integer pageIndex) {
@@ -63,13 +65,13 @@
    }
    @SysLog()
    @ApiOperation(value = "根据角色+单位分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "室"),
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色+单位分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "室"),
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForRole")
    public ResponseMsg<List<UserEntity>> selectByPageForRole(String uname, Integer roleid, String depcode, Integer pageSize, Integer pageIndex) {
@@ -91,9 +93,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectUser")
    public ResponseMsg<UserEntity> selectUser(int id) {
@@ -107,9 +109,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据用户ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uid", value = "用户ID", dataType = "String", paramType = "query", example = "admin")
    @Operation(summary = "根据用户ID查询")
    @Parameters({
            @Parameter(name = "uid", description = "用户ID", in = ParameterIn.QUERY, example = "admin")
    })
    @GetMapping(value = "/selectByUid")
    public ResponseMsg<UserEntity> selectByUid(String uid) {
@@ -127,7 +129,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectUserAll")
    public ResponseMsg<List<UserEntity>> selectUserAll() {
        try {
@@ -140,7 +142,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询是/否为管理员")
    @Operation(summary = "查询是/否为管理员")
    @GetMapping(value = "/selectForIsAdmin")
    public ResponseMsg<Boolean> selectForIsAdmin(HttpServletRequest req) {
        try {
@@ -158,9 +160,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询是/否为管理员")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "用户ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "查询是/否为管理员")
    @Parameters({
            @Parameter(name = "id", description = "用户ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectIsAdmin")
    public ResponseMsg<Boolean> selectIsAdmin(Integer id) {
@@ -179,9 +181,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询管理员用户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "type", value = "管理员类别", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "查询管理员用户")
    @Parameters({
            @Parameter(name = "type", description = "管理员类别", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectAdminUsers")
    public ResponseMsg<Object> selectAdminUsers(Integer type) {
@@ -199,9 +201,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据用户ID查询角色")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "用户ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据用户ID查询角色")
    @Parameters({
            @Parameter(name = "id", description = "用户ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectRoleByUserId")
    public ResponseMsg<Object> selectRoleByUserId(Integer id) {
@@ -219,9 +221,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据角色查询用户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "角色ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色查询用户")
    @Parameters({
            @Parameter(name = "id", description = "角色ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectUserByRoleId")
    public ResponseMsg<Object> selectUserByRoleId(Integer id) {
@@ -239,9 +241,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "UserEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertUser", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertUser(@RequestBody UserEntity entity, HttpServletRequest req) {
@@ -265,9 +267,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<UserEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertUsers", produces = "application/json; charset=UTF-8")
    @SuppressWarnings("AlibabaRemoveCommentedCode")
@@ -297,9 +299,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteUser")
    public ResponseMsg<Integer> deleteUser(int id) {
@@ -313,9 +315,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteUsers")
    public ResponseMsg<Integer> deleteUsers(@RequestParam List<Integer> ids) {
@@ -333,9 +335,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "UserEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateUser", produces = "application/json; charset=UTF-8")
@@ -361,11 +363,11 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多个用户密码")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "adminPwd", value = "管理员密码", dataType = "String", paramType = "body", example = ""),
            @ApiImplicitParam(name = "newPwd", value = "新密码", dataType = "String", paramType = "body", example = ""),
            @ApiImplicitParam(name = "ids", value = "用户ID集合", dataType = "List<Integer>", paramType = "body", example = "")
    @Operation(summary = "更新多个用户密码")
    @Parameters({
            @Parameter(name = "adminPwd", description = "管理员密码", example = ""),
            @Parameter(name = "newPwd", description = "新密码", example = ""),
            @Parameter(name = "ids", description = "用户ID集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/updateUsersPwd", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Boolean> updateUsersPwd(@RequestBody UserUpdateEntity uue, HttpServletRequest req) {
se-system/src/main/java/com/terra/system/entity/all/StaticData.java
@@ -14,7 +14,7 @@
    /**
     * æƒé™æŽ’除路径:/proxy,要求全部小写
     */
    public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/fmeit/", "/crds/", "/floatserver/", "/wmts/select", "/onemap/", "/swagger", "/error"};
    public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/wmts/select", "/swagger", "/v3/api-docs", "/error"};
    public final static int I1 = 1;
se-system/src/main/java/com/terra/system/service/data/UploadService.java
@@ -1,6 +1,6 @@
package com.terra.system.service.data;
import com.google.common.collect.Lists;
import cn.hutool.core.collection.ListUtil;
import com.terra.system.entity.all.BaseEntity;
import com.terra.system.entity.all.StaticData;
import com.terra.system.entity.data.*;
@@ -259,7 +259,7 @@
    private <T> int batchInserts(BasicMapper basicMapper, List<T> list) {
        int rows = 0;
        //int count = (int) Math.ceil(list.size() / StaticData.D100)
        List<List<T>> subLists = Lists.partition(list, StaticData.I50);
        List<List<T>> subLists = ListUtil.partition(list, StaticData.I50);
        for (List<T> sub : subLists) {
            try {
                rows += basicMapper.insertBatch(sub);
se-system/src/main/resources/bootstrap.yml
@@ -17,6 +17,7 @@
      discovery:
        # æœåŠ¡æ³¨å†Œåœ°å€
        server-addr: 127.0.0.1:8848
        group: JHS_GROUP
      config:
        group: JHS_GROUP
        # é…ç½®ä¸­å¿ƒåœ°å€