pms pq修改

This commit is contained in:
2023-06-02 13:55:31 +08:00
parent 2486e3b57e
commit b88ea56b5e
13 changed files with 278 additions and 12 deletions

View File

@@ -19,7 +19,6 @@ public class StatationStatParam {
* 电站编号
*/
@ApiModelProperty(value = "电站编号",required = true)
@NotBlank(message = "电站编号不可为空")
private String powerId;
/**

View File

@@ -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>