燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-07-20 ef3b1b5570ca8b73cffde8be68387dc68c7c3990
src/main/java/com/yssh/controller/SuYuanController.java
@@ -170,7 +170,7 @@
    @ApiOperation(value = "根据X,Y值查询地址", notes = "根据X,Y值查询地址")
    @ApiOperationSupport(order = 14)
    @GetMapping("/selectCoords")
    public Result selectCoords(@RequestParam(value = "x") Integer x, @RequestParam(value = "y") Integer y,  @RequestParam(value = "isSuYuan") Integer isSuYuan) {
    public Result selectCoords(@RequestParam(value = "x") Integer x, @RequestParam(value = "y") Integer y, @RequestParam(value = "isSuYuan") Integer isSuYuan) {
        if (isSuYuan < 1) {
            x = x / 10;
            y = y / 10;
@@ -194,4 +194,13 @@
        return Result.OK(suYuanService.selectRects(x, y));
    }
    @ApiOperation(value = "根据名称查询溯源ID", notes = "根据名称查询溯源ID")
    @ApiOperationSupport(order = 16)
    @GetMapping("/selectSuYuanIdByName")
    public Result selectSuYuanIdByName(@RequestParam(value = "name") String name) {
        if (null == name || name.length() == 0) return Result.OK(null);
        return Result.OK(suYuanService.selectSuYuanIdByName(name));
    }
}