pms pq修改
This commit is contained in:
@@ -19,7 +19,6 @@ public class StatationStatParam {
|
||||
* 电站编号
|
||||
*/
|
||||
@ApiModelProperty(value = "电站编号",required = true)
|
||||
@NotBlank(message = "电站编号不可为空")
|
||||
private String powerId;
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1 )
|
||||
AND STATUS = 1 )
|
||||
UNION ALL
|
||||
(
|
||||
SELECT id, Operation_Id, Power_Station_Id, Line_Id
|
||||
@@ -22,20 +22,20 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1 )
|
||||
AND STATUS = 1 )
|
||||
UNION ALL
|
||||
( SELECT id, Operation_Id, Power_Station_Id, Line_Id
|
||||
FROM pms_power_distributionarea WHERE org_id IN
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1 )
|
||||
AND STATUS = 1 )
|
||||
UNION ALL
|
||||
( SELECT id, Operation_Id, Powerr_Id, Line_Id FROM pms_monitor WHERE org_id IN
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1 )
|
||||
AND STATUS = 1 )
|
||||
) t
|
||||
INNER JOIN pms_distribution_monitor b ON t.id = b.Monitor_Id
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user