Compare commits
2 Commits
07192f22bc
...
0865e040ee
| Author | SHA1 | Date | |
|---|---|---|---|
| 0865e040ee | |||
| 83f04bf5cd |
@@ -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",
|
||||
|
||||
@@ -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 查询:按出口卷号查询。
|
||||
*/
|
||||
|
||||
@@ -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,按出口卷号查询。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user