燕山石化溯源三维电子沙盘-【后端】-服务
13693261870
2023-06-23 930fd412575bb53649f00a1e85dae54ddd23b119
开发根据ID和日期查询溯源700表接口
已修改3个文件
18 ■■■■■ 文件已修改
src/main/java/com/yssh/controller/SuYuanController.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/yssh/service/ISuYuanService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/yssh/service/impl/SuYuanServiceImpl.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/yssh/controller/SuYuanController.java
@@ -162,9 +162,16 @@
    @ApiOperation(value = "根据X、Y值查询矩形框", notes = "根据X、Y值查询矩形框")
    @ApiOperationSupport(order = 13)
    @GetMapping("/selectRects")
    public Result selectRects(@RequestParam(value = "x[]") Double[] x, @RequestParam(value = "y[]") Double[] y) {
    public Result selectRects(@RequestParam(value = "x[]", required = true) Double[] x, @RequestParam(value = "y[]", required = true) Double[] y) {
        if (null == x || null == y || x.length == 0 || x.length != y.length) return Result.OK(null);
        return Result.OK(suYuanService.selectRects(x, y));
    }
    @ApiOperation(value = "根据ID和日期查询溯源700表", notes = "根据ID和日期查询溯源700表")
    @ApiOperationSupport(order = 14)
    @GetMapping("/selectSuYuan700ById")
    public Result selectSuYuan700ById(@RequestParam(value = "id", required = true) String id, @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date) {
        return Result.OK(suYuanService.selectSuYuan700ById(id, date));
    }
}
src/main/java/com/yssh/service/ISuYuanService.java
@@ -34,4 +34,6 @@
    public List<Qxsh> queryQxsh(Date date);
    public List<List<Coordinate>> selectRects(Double[] x, Double[] y);
    public SuYuan700 selectSuYuan700ById(String id, Date date);
}
src/main/java/com/yssh/service/impl/SuYuanServiceImpl.java
@@ -296,4 +296,11 @@
        return list;
    }
    @Override
    public SuYuan700 selectSuYuan700ById(String id, Date date) {
        //
        return null;
    }
}