新能源场站高低电压穿越业务新增根据ID查询基本信息方法

This commit is contained in:
guofeihu
2024-08-19 18:58:34 +08:00
parent 25ee513246
commit f36b3f9ee9
9 changed files with 96 additions and 2 deletions

View File

@@ -76,5 +76,14 @@ public class NewStationController extends BaseController {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, iNewStationService.selectDown(name), methodDescribe);
}
@OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.QUERY)
@GetMapping("/selectById")
@ApiOperation("根据ID获取新能源场站高低电压穿越表信息")
public HttpResult<NewStation> selectById(@RequestParam(name = "id") String id) {
String methodDescribe = getMethodDescribe("selectById");
LogUtil.njcnDebug(log, "{}id值为{}", methodDescribe, id);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, iNewStationService.selectById(id), methodDescribe);
}
}

View File

@@ -41,7 +41,8 @@
select
a.name lineName,
c.Time_Interval,
e.name scale
e.name scale,
c.New_Station_Id newStationId
from pq_line a
inner join pq_line b on a.pid = b.id
inner join pq_line_detail c on a.id = c.id

View File

@@ -1431,7 +1431,8 @@
vg.Scale AS voltageLevel,
pqd.Run_Flag as runFlag,
detail.PT_Type AS ptType,
detail.PT_Phase_Type AS ptPhaseType
detail.PT_Phase_Type AS ptPhaseType,
detail.New_Station_Id AS stationType
FROM
pq_line line,
pq_line_detail detail,

View File

@@ -45,4 +45,11 @@ public interface INewStationService extends IService<NewStation> {
*/
List<Map> selectDown(String name);
/***
* 根据ID获取新能源场站高低电压穿越表信息
* @param id
* @return NewStation
*/
NewStation selectById(String id);
}

View File

@@ -78,4 +78,9 @@ public class NewStationServiceImpl extends ServiceImpl<NewStationMapper, NewStat
return this.baseMapper.selectDown(name);
}
@Override
public NewStation selectById(String id) {
return this.baseMapper.selectById(id);
}
}