新能源场站高低电压穿越业务新增根据ID查询基本信息方法
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -45,4 +45,11 @@ public interface INewStationService extends IService<NewStation> {
|
||||
*/
|
||||
List<Map> selectDown(String name);
|
||||
|
||||
/***
|
||||
* 根据ID获取新能源场站高低电压穿越表信息
|
||||
* @param id
|
||||
* @return NewStation
|
||||
*/
|
||||
NewStation selectById(String id);
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user