沈斌
2018-01-31 386e880bf18811b69216392251b90ab2270b1843
src/main/java/com/moral/mapper/DeviceMapper.java
@@ -7,10 +7,17 @@
import com.moral.common.mapper.BaseMapper;
import com.moral.entity.Device;
import tk.mybatis.mapper.entity.Example;
public interface DeviceMapper extends BaseMapper<Device>{
   List<Map<String, Object>> getDeviceStatesByAccount(Map<String, Object> parameters);
   List<Map<String, Object>> getSensorsByDevice(@Param("mac")String mac);
   List<Device>  selectWithRelationData(Example example);
   List<String> getDeviceMacByMonitorPointAndDeviceVersion(@Param("monitorPointId")Integer monitorPointId,@Param("deviceVersionId")Integer deviceVersionId);
   List<Map<String, Object>> getDeviceVersionIdByMonitorPoint(Integer monitorPointId);
}