Преглед изворни кода

调试opcda的驱动报表异步接口

zhoupeng пре 2 година
родитељ
комит
8fa39f5ed1

+ 1 - 1
chaunyi_opc/opc_da/src/main/java/com/example/opc_da/dao/RawDataDao.java

@@ -41,7 +41,7 @@ public interface RawDataDao {
 
     Integer updateRawData(Integer remainder, RawData rawData);
 
-    List<Long> getEventRawDataIndexList(Item eventItem, Integer dataSourceId, String valueBelongTime);
+    List<Long> getEventRawDataIndexList(Item item, Integer dataSourceId, String valueBelongTime);
 
     Integer delEventRawDataListByIndex(Item item, Integer dataSourceId, String valueBelongTime, List<Long> indexList);
 }

+ 4 - 4
chaunyi_opc/opc_da/src/main/resources/mapper/RawDataDao.xml

@@ -71,7 +71,7 @@
     </delete>
 
     <delete id="delEventRawDataList">
-        <if test="rawDataList!= null and rawDataList.size() >0">
+        <if test="idList!= null and idList.size() >0">
             delete
             from t_event_raw_data
             where id IN
@@ -82,15 +82,15 @@
     </delete>
 
     <delete id="delEventRawDataListByIndex">
-        <if test="idList!= null and idList.size() >0">
+        <if test="indexList!= null and indexList.size() >0">
             delete
             from t_event_raw_data
             where item_group_id = #{item.itemGroupId}
             and data_source_id = #{dataSourceId}
             and item_name = #{item.itemReadName}
             and value_belong_time = #{valueBelongTime} and item_index not IN
-            <foreach collection="idList" item="id" separator="," open="(" close=")">
-                #{id}
+            <foreach collection="indexList" item="index" separator="," open="(" close=")">
+                #{index}
             </foreach>
         </if>
     </delete>