ITispRecordService.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using Ropin.Inspection.Model.SearchModel;
  2. using Ropin.Inspection.Model.ViewModel;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Linq.Expressions;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace Ropin.Inspection.Service.Interface
  10. {
  11. public interface ITispRecordService : IBaseService<TispRecordViewModel>, IBaseServiceById<TispRecordViewModel, Guid>
  12. {
  13. Task<IEnumerable<TispRecordViewModel>> GetAllAsync(string storeCode);
  14. Task<IEnumerable<TispRecordViewModel>> GetByConditionAsync(Expression<Func<TispRecordViewModel, bool>> expression);
  15. Task UpdateAsync(Guid id, TispRecordUpdateViewModel updateModel);
  16. Task CreateRecordAndImageAsync(IEnumerable<TispRecordViewModel> records);
  17. Task CreateRecordAsync(TispRecordCreateViewModel record);
  18. Task<TispRecordViewModel> GetRecordAsync(Guid id);
  19. Task<IEnumerable<TispRecordDetailViewModel>> GetRecordsConditionAsync(TispRecordSearchModel searchModel);
  20. Task<IEnumerable<AllSpotRecordWithDevViewModel>> GetAllSpotRecordAsync(AllSpotRecordSearchModel searchModel);
  21. Task<IEnumerable<AllSpotRecordViewModel>> GetUserSpotRecordAsync(UserSpotRecordSearchModel searchModel);
  22. Task<int> GetUserTodaySpotRecordCountAsync(Guid id, string storeCode);
  23. Task<int> GetUserTodayNotSpotRecordCountAsync(Guid id, string storeCode);
  24. Task<IEnumerable<AllSpotRecordViewModel>> GetUserTodaySpotRecordsAsync(Guid id, string storeCode);
  25. Task<IEnumerable<AllSpotRecordViewModel>> GetUserTodayNotSpotRecordsAsync(Guid id,string storeCode);
  26. Task<TispRecord30DaysStatisticsViewModel> GetRecords30DaysStatisticsAsync(string storeCode);
  27. Task<TispAlarmRecovery7DaysStatisticsViewModel> GetAlarmRecovery7DaysStatisticsAsync(string storeCode);
  28. Task<TodaySpotStatistics> GetTodaySpotStatisticsAsync(string storeCode);
  29. Task<TodaySpotContentStatistics> GetTodaySpotContentStatisticsAsync(string storeCode);
  30. Task<Record12MonthStatisticsViewModel> GetRecord12MonthStatisticsAsync(string storeCode);
  31. Task<IEnumerable<FullScreenRecordItem>> GetRecord12MonthStatisticsFullScreenAsync(string storeCode);
  32. Task<IEnumerable<FullScreenRecordItem>> GetAllDevOpsRecord12MonthStatisticsFullScreenAsync(string storeCode);
  33. }
  34. }