管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-02 c1c2596883cd00b46fcfc783ab8c2af62e138f01
src/main/java/com/lf/server/controller/show/ComprehensiveController.java
@@ -8,6 +8,7 @@
import com.lf.server.entity.ctrl.MarkJsonEntity;
import com.lf.server.entity.data.DownloadEntity;
import com.lf.server.entity.data.MetaFileEntity;
import com.lf.server.entity.show.PipelineEntity;
import com.lf.server.entity.sys.UserEntity;
import com.lf.server.helper.PathHelper;
import com.lf.server.helper.StringHelper;
@@ -17,6 +18,7 @@
import com.lf.server.service.all.BaseUploadService;
import com.lf.server.service.data.DownloadService;
import com.lf.server.service.show.MarkService;
import com.lf.server.service.show.PipelineService;
import com.lf.server.service.sys.DownlogService;
import com.lf.server.service.sys.TokenService;
import io.swagger.annotations.Api;
@@ -34,7 +36,7 @@
 * 综合展示
 * @author WWW
 */
@Api(tags = "综合展示\\综合展示")
@Api(tags = "综合展示\\首页")
@RestController
@RequestMapping("/comprehensive")
public class ComprehensiveController extends BaseController {
@@ -56,6 +58,25 @@
    @Autowired
    DownloadService downloadService;
    @Autowired
    PipelineService pipelineService;
    @SysLog()
    @ApiOperation(value = "查询管线")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "西气东输"),
    })
    @GetMapping(value = "/selectPipelines")
    public ResponseMsg<Object> selectPipelines(String name) {
        try {
            List<PipelineEntity> rs = pipelineService.selectPipelines(name);
            return success(rs);
        } catch (Exception ex) {
            return fail(ex, null);
        }
    }
    @SysLog()
    @ApiOperation(value = "查询路网")
    @ApiImplicitParams({
@@ -71,7 +92,7 @@
            return success(route);
        } catch (Exception ex) {
            return fail(ex.getMessage(), null);
            return fail(ex, null);
        }
    }
@@ -86,7 +107,7 @@
                return fail("用户未登录", null);
            }
            List<MetaFileEntity> meList = baseUploadService.uploadData(null, null, req, res);
            List<MetaFileEntity> meList = baseUploadService.uploadData(null, null, false, req, res);
            if (meList == null || meList.size() < StaticData.FOUR) {
                return fail("没有找到已上传的数据或不完整", null);
            }
@@ -95,7 +116,7 @@
            return success(list);
        } catch (Exception ex) {
            return fail(ex.getMessage(), null);
            return fail(ex, null);
        }
    }
@@ -123,7 +144,7 @@
            return success(guid);
        } catch (Exception ex) {
            return fail(ex.getMessage(), null);
            return fail(ex, null);
        }
    }