bug提交
This commit is contained in:
@@ -38,6 +38,9 @@ public class AreaLineInfoVO implements Serializable {
|
|||||||
@ApiModelProperty(name = "voltageName",value = "母线名称")
|
@ApiModelProperty(name = "voltageName",value = "母线名称")
|
||||||
private String voltageName;
|
private String voltageName;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "voltageScale",value = "监测点电压等级")
|
||||||
|
private String voltageScale;
|
||||||
|
|
||||||
@ApiModelProperty(name = "noDealCount",value = "未处理暂降事件")
|
@ApiModelProperty(name = "noDealCount",value = "未处理暂降事件")
|
||||||
private Integer noDealCount;
|
private Integer noDealCount;
|
||||||
|
|
||||||
|
|||||||
@@ -145,72 +145,7 @@
|
|||||||
|
|
||||||
<!--华丽分割线 ++++ -->
|
<!--华丽分割线 ++++ -->
|
||||||
|
|
||||||
<select id="getVoltageListByLineIds" resultType="TerminalTree">
|
|
||||||
select distinct b.id,c.name,b.scale,b.level,b.sort from pq_line a
|
|
||||||
inner join pq_voltage b on a.pid = b.id
|
|
||||||
inner join sys_dict_data c on b.scale = c.id
|
|
||||||
where a.id in
|
|
||||||
<foreach collection="list" item="item" open="(" close=")" separator=",">
|
|
||||||
#{item}
|
|
||||||
</foreach>
|
|
||||||
a.level = 5
|
|
||||||
and a.state = 1
|
|
||||||
order by a.sort
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!--母线-->
|
|
||||||
<select id="getDevListByLineIds" resultType="TerminalTree">
|
|
||||||
select c.id,c.pid,c.name,e.name manufacturer,c.level,c.sort
|
|
||||||
from pq_line a
|
|
||||||
inner join pq_line b on a.pid = b.id
|
|
||||||
inner join pq_line c on b.pid = c.id
|
|
||||||
inner join pq_device d on c.id = d.id
|
|
||||||
inner join sys_dict_data e on d.manufacturer = e.id
|
|
||||||
where a.id in
|
|
||||||
<foreach collection="list" item="item" open="(" close=")" separator=",">
|
|
||||||
#{item}
|
|
||||||
</foreach>
|
|
||||||
and d.manufacturer = #{manufacturer}
|
|
||||||
a.level = 5
|
|
||||||
and a.state = 1
|
|
||||||
order by a.sort
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<!--设备-->
|
|
||||||
<select id="getDevListByLineIds" resultType="TerminalTree">
|
|
||||||
select c.id,c.pid,c.name,e.name manufacturer,c.level,c.sort
|
|
||||||
from pq_line a
|
|
||||||
inner join pq_line b on a.pid = b.id
|
|
||||||
inner join pq_line c on b.pid = c.id
|
|
||||||
inner join pq_device d on c.id = d.id
|
|
||||||
inner join sys_dict_data e on d.manufacturer = e.id
|
|
||||||
where a.id in
|
|
||||||
<foreach collection="list" item="item" open="(" close=")" separator=",">
|
|
||||||
#{item}
|
|
||||||
</foreach>
|
|
||||||
and d.manufacturer = #{manufacturer}
|
|
||||||
a.level = 5
|
|
||||||
and a.state = 1
|
|
||||||
order by a.sort
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="getDevListByLineIds" resultType="TerminalTree">
|
|
||||||
select d.id,d.pid,d.name,f.name scale,d.level,d.sort
|
|
||||||
from pq_line a
|
|
||||||
inner join pq_line b on a.pid = b.id
|
|
||||||
inner join pq_line c on b.pid = c.id
|
|
||||||
inner join pq_line d on c.pid = d.id
|
|
||||||
inner join pq_linedetail e on d.id = e.id
|
|
||||||
inner join sys_dict_data f on e.scale = f.id
|
|
||||||
where a.id in
|
|
||||||
<foreach collection="list" item="item" open="(" close=")" separator=",">
|
|
||||||
#{item}
|
|
||||||
</foreach>
|
|
||||||
and d.manufacturer = #{manufacturer}
|
|
||||||
a.level = 5
|
|
||||||
and a.state = 1
|
|
||||||
order by a.sort
|
|
||||||
</select>
|
|
||||||
|
|
||||||
|
|
||||||
<select id="getUnBindList" resultType="TerminalTree">
|
<select id="getUnBindList" resultType="TerminalTree">
|
||||||
|
|||||||
@@ -55,14 +55,14 @@ public interface DeptFeignClient {
|
|||||||
HttpResult<List<PvTerminalTreeVO>> allDeptList();
|
HttpResult<List<PvTerminalTreeVO>> allDeptList();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取所有部门
|
* 根据部门id获取部门信息
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getDeptById")
|
@GetMapping("/getDeptById")
|
||||||
HttpResult<Dept> getDeptById(@RequestParam("deptId") String deptId);
|
HttpResult<Dept> getDeptById(@RequestParam("deptId") String deptId);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取所有部门
|
* 根据部门id获取所有子部门ids
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getDepSonIdtByDeptId")
|
@GetMapping("/getDepSonIdtByDeptId")
|
||||||
HttpResult<List<String>> getDepSonIdtByDeptId(@RequestParam("deptId") String deptId);
|
HttpResult<List<String>> getDepSonIdtByDeptId(@RequestParam("deptId") String deptId);
|
||||||
|
|||||||
@@ -66,13 +66,13 @@ public class DeptFeignClientFallbackFactory implements FallbackFactory<DeptFeign
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HttpResult<Dept> getDeptById(String deptId) {
|
public HttpResult<Dept> getDeptById(String deptId) {
|
||||||
log.error("{}异常,降级处理,异常为:{}","查询所部门异常",cause.toString());
|
log.error("{}异常,降级处理,异常为:{}","查询部门信息异常",cause.toString());
|
||||||
throw new BusinessException(finalExceptionEnum);
|
throw new BusinessException(finalExceptionEnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HttpResult<List<String>> getDepSonIdtByDeptId(String deptId) {
|
public HttpResult<List<String>> getDepSonIdtByDeptId(String deptId) {
|
||||||
log.error("{}异常,降级处理,异常为:{}","查询所部门索引异常",cause.toString());
|
log.error("{}异常,降级处理,异常为:{}","查询所有子孙部门异常",cause.toString());
|
||||||
throw new BusinessException(finalExceptionEnum);
|
throw new BusinessException(finalExceptionEnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user