|
@@ -1,5 +1,6 @@
|
|
|
using DataSharing.FwDataExchange;
|
|
|
using DataSharing.HotlineWeb;
|
|
|
+using DataSharing.Province;
|
|
|
using DataSharing.Province.SendTask;
|
|
|
using DataSharing.Province.SendTask.ProvinceOther;
|
|
|
using DataSharing.Province.SendTask.SubmitCaseInfo;
|
|
@@ -72,6 +73,7 @@ namespace DataSharing.Host.Controllers
|
|
|
private readonly ISharingConfigurationManager _sharingConfigurationManager;
|
|
|
private readonly IRepository<UserOperationLog> _userOperationLogRepository;
|
|
|
private readonly IRepository<SendFwErrorData> _sendFwErrorDataRepository;
|
|
|
+ private readonly IRepository<DsGetCaseMaterialInfo> _getCaseMaterialInfoRepository;
|
|
|
private const string PublicKey = @"-----BEGIN PUBLIC KEY-----
|
|
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgw+/x6IQPkH0A4eoF63j
|
|
|
kLThsOXWyNBdcL9LATGy/G1yTHOr1RyKJB//iNug+V8DIoIHuFTlhgLHDbSqxvRW
|
|
@@ -145,6 +147,7 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
/// <param name="sharingConfigurationManager"></param>
|
|
|
/// <param name="userOperationLogRepository"></param>
|
|
|
/// <param name="sendFwErrorDataRepository"></param>
|
|
|
+ /// <param name="getCaseMaterialInfoRepository"></param>
|
|
|
public HotlineWebController(IMapper mapper,
|
|
|
IMediator mediator,
|
|
|
ICapPublisher capPublisher,
|
|
@@ -177,7 +180,8 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
FwClient fwClient,
|
|
|
ISharingConfigurationManager sharingConfigurationManager,
|
|
|
IRepository<UserOperationLog> userOperationLogRepository,
|
|
|
- IRepository<SendFwErrorData> sendFwErrorDataRepository)
|
|
|
+ IRepository<SendFwErrorData> sendFwErrorDataRepository,
|
|
|
+ IRepository<DsGetCaseMaterialInfo> getCaseMaterialInfoRepository)
|
|
|
{
|
|
|
_mapper = mapper;
|
|
|
_mediator = mediator;
|
|
@@ -212,6 +216,7 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
_sharingConfigurationManager = sharingConfigurationManager;
|
|
|
_userOperationLogRepository = userOperationLogRepository;
|
|
|
_sendFwErrorDataRepository = sendFwErrorDataRepository;
|
|
|
+ _getCaseMaterialInfoRepository = getCaseMaterialInfoRepository;
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
@@ -618,7 +623,7 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
PathType = p.PathType,
|
|
|
GenerationTime = p.GenerationTime,
|
|
|
CreationTime = p.CreationTime,
|
|
|
- State=p.State
|
|
|
+ State = p.State
|
|
|
})
|
|
|
.MergeTable();
|
|
|
#endregion
|
|
@@ -1198,7 +1203,7 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
//工单
|
|
|
var orderRate = await _dsOrderSendRepository.Queryable()
|
|
|
.LeftJoin<DsTelCall>((p, o) => p.CallId == o.CallId)
|
|
|
- .Where((p, o) => p.CreationTime >=dto. StartTime && p.CreationTime <= dto.EndTime && p.FirstSendProvinceTime >= dto.StartTime && p.FirstSendProvinceTime <= dto.EndTime)
|
|
|
+ .Where((p, o) => p.CreationTime >= dto.StartTime && p.CreationTime <= dto.EndTime && p.FirstSendProvinceTime >= dto.StartTime && p.FirstSendProvinceTime <= dto.EndTime)
|
|
|
.Where((p, o) => p.FirstSendProvinceTime.HasValue && p.StartTime.HasValue)
|
|
|
.Select((p, o) => new
|
|
|
{
|
|
@@ -1526,5 +1531,24 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 查询附件信息
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpGet("getcasematerialinfolist")]
|
|
|
+ [AllowAnonymous]
|
|
|
+ public async Task<PagedDto<DsGetCaseMaterialInfo>> GetCaseMaterialInfoList([FromQuery] QueryCaseMaterialInfoDto dto)
|
|
|
+ {
|
|
|
+ RefAsync<int> total = 0;
|
|
|
+ var items = await _getCaseMaterialInfoRepository.Queryable()
|
|
|
+ .WhereIF(dto.StartTime.HasValue, p => p.CreationTime >= dto.StartTime.Value)
|
|
|
+ .WhereIF(dto.EndTime.HasValue, p => p.CreationTime >= dto.EndTime.Value)
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.CaseSerial), p => p.CaseSerial == dto.CaseSerial)
|
|
|
+ .OrderByDescending(p => p.CreationTime)
|
|
|
+ .ToPageListAsync(dto.PageIndex, dto.PageSize, total, HttpContext.RequestAborted);
|
|
|
+ return new PagedDto<DsGetCaseMaterialInfo>(total, items);
|
|
|
+ }
|
|
|
}
|
|
|
}
|