Browse Source

超时长事件列表查询关联配网参数

zx 5 tháng trước cách đây
mục cha
commit
1fe85d2a1b

+ 1 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmStopRecordsController.java

@@ -44,6 +44,7 @@ public class PdmStopRecordsController extends BaseController
     public TableDataInfo list(PdmStopRecords pdmStopRecords)
     {
         startPage();
+        pdmStopRecords.setTimeFlag("1");//超长停电
         List<PdmStopRecords> list = pdmStopRecordsService.selectPdmStopRecordsList(pdmStopRecords);
         return getDataTable(list);
     }

+ 13 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmStopRecords.java

@@ -534,6 +534,11 @@ public class PdmStopRecords extends BaseEntity
      */
     private String stopReason;
 
+    /**
+     * 是否超时长
+     */
+    private String timeFlag;
+
 
     public void setId(Long id)
     {
@@ -1678,6 +1683,14 @@ public class PdmStopRecords extends BaseEntity
         this.stopReason = stopReason;
     }
 
+    public String getTimeFlag() {
+        return timeFlag;
+    }
+
+    public void setTimeFlag(String timeFlag) {
+        this.timeFlag = timeFlag;
+    }
+
     @Override
     public String toString() {
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

+ 5 - 0
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmStopRecordsMapper.xml

@@ -270,6 +270,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="dataSrc != null  and dataSrc != ''"> and data_src = #{dataSrc}</if>
             <if test="parYear != null  and parYear != ''"> and par_year = #{parYear}</if>
             <if test="stdCityOrgNo != null  and stdCityOrgNo != ''"> and std_city_org_no = #{stdCityOrgNo}</if>
+
+            <if test="timeFlag != null  and timeFlag == 1 ">
+            and EXISTS(select 1 from pdm_par where par_type = 0 and par_code= end_event_typ_cd and par_value &lt; poweroff_duration_tm)
+            </if>
+
         </where>
     </select>