From 83f04bf5cdd21923e0517892a995268c90a8fca1 Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Mon, 11 May 2026 14:35:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(framework):=20=E6=B7=BB=E5=8A=A0=E6=8C=89?= =?UTF-8?q?=E5=85=A5=E5=9C=BA=E5=8D=B7=E5=8F=B7=E6=9F=A5=E8=AF=A2=E9=92=A2?= =?UTF-8?q?=E5=8D=B7=E5=AE=9E=E9=99=85SEG=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在SqlServerApiBusinessService中新增getSegByHotCoilId方法 - 在SqlServerApiClient中新增queryProSegByHotCoilId数据库查询接口 - 在SqlServerApiController中新增/seg-by-hotcoil/{hotCoilId} REST API端点 - 实现基于HOT_COILID字段的数据库查询逻辑 - 添加相应的JavaDoc注释说明功能用途 --- .../java/com/klp/framework/client/SqlServerApiClient.java | 8 ++++++++ .../framework/service/SqlServerApiBusinessService.java | 7 +++++++ .../klp/framework/sqlserver/SqlServerApiController.java | 8 ++++++++ 3 files changed, 23 insertions(+) diff --git a/klp-admin/src/main/java/com/klp/framework/client/SqlServerApiClient.java b/klp-admin/src/main/java/com/klp/framework/client/SqlServerApiClient.java index 57b16b49..859e8a77 100644 --- a/klp-admin/src/main/java/com/klp/framework/client/SqlServerApiClient.java +++ b/klp-admin/src/main/java/com/klp/framework/client/SqlServerApiClient.java @@ -368,6 +368,14 @@ public class SqlServerApiClient { ); } + public ExecuteSqlResponse queryProSegByHotCoilId(String hotCoilId) { + return executeSql( + "oracle", + "select * from JXPLTCM.PLTCM_PRO_SEG where HOT_COILID = :hotCoilId order by SEGNO", + singletonParam("hotCoilId", hotCoilId) + ); + } + public ExecuteSqlResponse queryProSegByExcoilId(String excoilId) { return executeSql( "oracle", diff --git a/klp-admin/src/main/java/com/klp/framework/service/SqlServerApiBusinessService.java b/klp-admin/src/main/java/com/klp/framework/service/SqlServerApiBusinessService.java index ef66dff2..727061c6 100644 --- a/klp-admin/src/main/java/com/klp/framework/service/SqlServerApiBusinessService.java +++ b/klp-admin/src/main/java/com/klp/framework/service/SqlServerApiBusinessService.java @@ -89,6 +89,13 @@ public class SqlServerApiBusinessService { return SegSeriesView.fromExecuteSqlResponse(encoilId, client.queryProSegByEncoilId(encoilId)); } + /** + * 钢卷实际 SEG 查询:按入场卷号查询。 + */ + public SegSeriesView getSegByHotCoilId(String hotCoilId) { + return SegSeriesView.fromExecuteSqlResponse(hotCoilId, client.queryProSegByHotCoilId(hotCoilId)); + } + /** * 钢卷实际 SEG 查询:按出口卷号查询。 */ diff --git a/klp-admin/src/main/java/com/klp/framework/sqlserver/SqlServerApiController.java b/klp-admin/src/main/java/com/klp/framework/sqlserver/SqlServerApiController.java index 14454bbd..eb6ed518 100644 --- a/klp-admin/src/main/java/com/klp/framework/sqlserver/SqlServerApiController.java +++ b/klp-admin/src/main/java/com/klp/framework/sqlserver/SqlServerApiController.java @@ -62,6 +62,14 @@ public class SqlServerApiController { return R.ok(businessService.getSegSeriesViewByEncoilId(encoilId)); } + /** + * 钢卷实际 SEG,按入场卷号查询。 + */ + @GetMapping("/seg-by-hotcoil/{hotCoilId}") + public R segByHotCoilId(@PathVariable String hotCoilId) { + return R.ok(businessService.getSegByHotCoilId(hotCoilId)); + } + /** * 钢卷实际 SEG,按出口卷号查询。 */