Browse Source

增加水表状态查询接口

hym 4 years ago
parent
commit
7b6709b9ab

+ 7 - 0
smart-city-platform/src/main/java/com/bz/smart_city/dao/OperatingValveRecordMapper.java

@@ -1,10 +1,12 @@
 package com.bz.smart_city.dao;
 
+import com.bz.smart_city.entity.Device;
 import com.bz.smart_city.entity.OperatingValveRecord;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 
 import java.util.List;
+import java.util.Map;
 
 /**
  * (OperatingValveRecord)表数据库访问层
@@ -79,4 +81,9 @@ public interface OperatingValveRecordMapper {
     int count();
 
     void updateStatus(OperatingValveRecord operatingValveRecordMessage);
+
+    Device getDevice(OperatingValveRecord operatingValveRecordMessage);
+
+    List<Map<String,Object>> getDeviceStatus(@Param("electronicMeterNo") List<String> electronicMeterNo,
+                                        @Param("customerNo") String customerNo);
 }