src/main/java/com/lf/server/controller/all/BaseQueryController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/lf/server/controller/data/DataQueryController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/lf/server/helper/AccessHelper.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/sys/AuthMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/lf/server/controller/all/BaseQueryController.java
@@ -10,12 +10,14 @@ import com.lf.server.entity.ctrl.TabEntity; import com.lf.server.entity.data.DictEntity; import com.lf.server.entity.data.DomainEntity; import com.lf.server.entity.sys.AttachEntity; import com.lf.server.helper.AesHelper; import com.lf.server.helper.ClassHelper; import com.lf.server.helper.StringHelper; import com.lf.server.mapper.all.BasicMapper; import com.lf.server.mapper.all.GeomBaseMapper; import com.lf.server.service.all.BaseQueryService; import com.lf.server.service.sys.AttachService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; @@ -31,9 +33,33 @@ */ public class BaseQueryController extends BaseController { @Autowired AttachService attachService; @Autowired BaseQueryService baseQueryService; @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") }) @GetMapping(value = "/selectFiles") public ResponseMsg<List<AttachEntity>> selectFiles(String tabName, String eventid) { try { if (StringHelper.isEmpty(tabName) || StringHelper.isEmpty(eventid)) { return fail("参数不能为空", null); } List<AttachEntity> list = attachService.selectByTab(tabName, eventid); return success(list); } catch (Exception ex) { return fail(ex.getMessage(), null); } } @SysLog() @ApiOperation(value = "查询记录数") @ApiImplicitParams({ @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"), src/main/java/com/lf/server/controller/data/DataQueryController.java
@@ -3,7 +3,6 @@ import com.lf.server.annotation.SysLog; import com.lf.server.controller.all.BaseQueryController; import com.lf.server.entity.all.ResponseMsg; import com.lf.server.entity.sys.AttachEntity; import com.lf.server.entity.sys.UserEntity; import com.lf.server.helper.StringHelper; import com.lf.server.service.data.DataQueryService; @@ -36,27 +35,6 @@ @Autowired DataQueryService dataQueryService; @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") }) @GetMapping(value = "/selectFiles") public ResponseMsg<List<AttachEntity>> selectFiles(String tabName, String eventid) { try { if (StringHelper.isEmpty(tabName) || StringHelper.isEmpty(eventid)) { return fail("参数不能为空", null); } List<AttachEntity> list = attachService.selectByTab(tabName, eventid); return success(list); } catch (Exception ex) { return fail(ex.getMessage(), null); } } @SysLog() @ApiOperation(value = "删除文件") src/main/java/com/lf/server/helper/AccessHelper.java
@@ -51,7 +51,7 @@ ResultSetMetaData data = rs.getMetaData(); while (rs.next()) { Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>(5); for (int i = 1; i <= data.getColumnCount(); i++) { String columnName = data.getColumnName(i); if (StaticData.MDB_EXCLUDE_FIELDS.contains(columnName)) { src/main/resources/mapper/sys/AuthMapper.xml
@@ -70,6 +70,7 @@ </insert> <delete id="deleteAuth"> delete from lf.sys_role_menu_auth where menu_auth_id in (select id from lf.sys_menu_auth where authid = #{id}); delete from lf.sys_menu_auth where authid = #{id}; delete from lf.sys_auth where id = #{id}; </delete>