管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-10-31 ae3ca6829a5bae6088b6f6a005377f11fee03df8
src/main/java/com/lf/server/controller/data/DictController.java
@@ -35,7 +35,7 @@
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", required = false, example = "sys_dict")
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", required = false, example = "")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String tab) {
@@ -51,7 +51,7 @@
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "sys_dict"),
            @ApiImplicitParam(name = "tab", 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")
    })
@@ -73,7 +73,7 @@
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "sys_dict"),
            @ApiImplicitParam(name = "tab", 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")
    })
@@ -98,9 +98,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入字典")
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "字典实体类", dataType = "com.lf.server.entity.data.DictEntity", paramType = "body", example = "")
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "com.lf.server.entity.data.DictEntity", paramType = "body", example = "")
    })
    @PostMapping(value = "/insertDict", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDict(@RequestBody DictEntity entity, HttpServletRequest req) {
@@ -119,9 +119,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条字典")
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "字典实体类集合", dataType = "List<DictEntity>", paramType = "body", example = "")
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<DictEntity>", paramType = "body", example = "")
    })
    @PostMapping(value = "/insertDicts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDicts(@RequestBody List<DictEntity> list, HttpServletRequest req) {
@@ -142,9 +142,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条字典")
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "字典ID", dataType = "Integer", paramType = "query", example = "1")
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    })
    @GetMapping(value = "/deleteDict")
    public ResponseMsg<Integer> deleteDict(int id) {
@@ -158,9 +158,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条字典")
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "字典ID集合", dataType = "List<Integer>", paramType = "query", example = "1,2")
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    })
    @GetMapping(value = "/deleteDicts")
    public ResponseMsg<Integer> deleteDicts(@RequestParam List<Integer> ids) {
@@ -178,9 +178,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条字典")
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "字典集合", dataType = "DictEntity", paramType = "body", example = "")
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DictEntity", paramType = "body", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateDict", produces = "application/json; charset=UTF-8")
@@ -200,9 +200,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询字典")
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "字典ID", dataType = "Integer", paramType = "query", example = "1")
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    })
    @GetMapping(value = "/selectDict")
    public ResponseMsg<DictEntity> selectDict(int id) {
@@ -216,7 +216,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有字典")
    @ApiOperation(value = "查询所有")
    @GetMapping(value = "/selectDictAll")
    public ResponseMsg<List<DictEntity>> selectDictAll() {
        try {