using Hotline.Share.Dtos;
using Hotline.Share.Dtos.Snapshot;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XF.Domain.Repository;

namespace Hotline.Snapshot.IRepository;
public interface IOrderSnapshotRepository : IRepository<OrderSnapshot>
{
    /// <summary>
    /// 根据网格员系统ID随手拍工单
    /// </summary>
    /// <param name="appealNumber"></param>
    /// <returns></returns>
    Task<OrderSnapshot> GetByNetworkENumberAsync(string appealNumber);

    Task<OrderSnapshot> UpdateSafetyAsync(string orderId, bool isSafety, string remark);

    /// <summary>
    /// 是否有随手拍工单
    /// </summary>
    /// <param name="orderId"></param>
    /// <returns></returns>
    bool HasOrder(string orderId);
}
