| | |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.ctrl.DownloadReqEntity; |
| | | import com.lf.server.entity.ctrl.IdNameEntity; |
| | | import com.lf.server.entity.ctrl.KeyValueEntity; |
| | | import com.lf.server.entity.ctrl.TabEntity; |
| | | import com.lf.server.entity.data.DictEntity; |
| | | import com.lf.server.entity.data.DirEntity; |
| | | import com.lf.server.entity.data.DomainEntity; |
| | | import com.lf.server.entity.data.DownloadEntity; |
| | | import com.lf.server.entity.sys.AttachEntity; |
| | |
| | | |
| | | @Autowired |
| | | BaseQueryService baseQueryService; |
| | | |
| | | @Autowired |
| | | UploadService uploadService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询记录数") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询项目名称") |
| | | @GetMapping(value = "/selectProject") |
| | | public ResponseMsg<Object> selectProject() { |
| | | @ApiOperation(value = "查询基础地理类别") |
| | | @GetMapping(value = "/selectBaseType") |
| | | public ResponseMsg<Object> selectBaseType() { |
| | | try { |
| | | List<DirEntity> list = uploadService.selectProject(); |
| | | List<KeyValueEntity> list = baseQueryService.selectBaseType(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询基础地理类别") |
| | | @GetMapping(value = "/selectBaseType") |
| | | public ResponseMsg<Object> selectBaseType() { |
| | | @ApiOperation(value = "查询业务类别") |
| | | @GetMapping(value = "/selectBusinessType") |
| | | public ResponseMsg<Object> selectBusinessType() { |
| | | try { |
| | | List<DirEntity> list = baseQueryService.selectBaseType(); |
| | | List<KeyValueEntity> list = baseQueryService.selectBusinessType(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询项目名称") |
| | | @GetMapping(value = "/selectProject") |
| | | public ResponseMsg<Object> selectProject() { |
| | | try { |
| | | List<KeyValueEntity> list = baseQueryService.selectProject(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询字典表并统计记录") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "dirs", value = "目录ID", dataType = "String", paramType = "query", example = "2,5,309"), |
| | | @ApiImplicitParam(name = "depid", value = "单位ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectTabCount") |
| | | public ResponseMsg<Object> selectTabCount(String name, String dirs, Integer depid) { |
| | | try { |
| | | List<DictEntity> list = baseQueryService.selectTabCount(name, dirs, depid); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |