feat(framework): 添加按入场卷号查询钢卷实际SEG功能

- 在SqlServerApiBusinessService中新增getSegByHotCoilId方法
- 在SqlServerApiClient中新增queryProSegByHotCoilId数据库查询接口
- 在SqlServerApiController中新增/seg-by-hotcoil/{hotCoilId} REST API端点
- 实现基于HOT_COILID字段的数据库查询逻辑
- 添加相应的JavaDoc注释说明功能用途
This commit is contained in:
2026-05-11 14:35:41 +08:00
parent 1efc3697ce
commit 83f04bf5cd
3 changed files with 23 additions and 0 deletions

View File

@@ -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",

View File

@@ -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 查询:按出口卷号查询。
*/

View File

@@ -62,6 +62,14 @@ public class SqlServerApiController {
return R.ok(businessService.getSegSeriesViewByEncoilId(encoilId));
}
/**
* 钢卷实际 SEG按入场卷号查询。
*/
@GetMapping("/seg-by-hotcoil/{hotCoilId}")
public R<SqlServerApiBusinessService.SegSeriesView> segByHotCoilId(@PathVariable String hotCoilId) {
return R.ok(businessService.getSegByHotCoilId(hotCoilId));
}
/**
* 钢卷实际 SEG按出口卷号查询。
*/