裝置設定: 裝置類型選擇改為讀取sensorType資料表 電站交叉分析: 選擇比較欄位(以sensorTypeDetail做更新) PowerStationRepository.cs -> 刪除已不使用的資料表判斷 debug -> 電站交叉分析中 設備有兩個導致查詢不了,增加查詢判斷
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using SolarPower.Models;
|
|
using SolarPower.Models.SensorDetail;
|
|
using SolarPower.Repository.Interface;
|
|
|
|
namespace SolarPower.Repository.Interface
|
|
{
|
|
public interface ISensorDetailRepository : IRepositoryBase<SensorDetail>
|
|
{
|
|
/// <summary>
|
|
/// 修改設備-細項資料
|
|
/// </summary>
|
|
/// <param name="entity"></param>
|
|
/// <param name="properties"></param>
|
|
/// <returns></returns>
|
|
Task UpdateSensorDetailInfo(SensorDetail entity, List<string> properties);
|
|
|
|
/// <summary>
|
|
/// 取得設備-細項資料
|
|
/// </summary>
|
|
/// <param name="sensorTypeId"></param>
|
|
/// <returns></returns>
|
|
Task<List<SensorDetail>> GetAllSensorDetailAsync(int sensorTypeId);
|
|
/// <summary>
|
|
/// 取得設備-單一細項資料
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
Task<SensorDetail> GetOneSensorDetailAsync(int id);
|
|
|
|
}
|
|
}
|