|
|
@ -586,7 +586,8 @@ namespace EntrustSettle.Api.Controllers
|
|
|
|
var annexList = await annexService.Query(x => bindDto.AnnexIdList.Contains(x.Id));
|
|
|
|
var annexList = await annexService.Query(x => bindDto.AnnexIdList.Contains(x.Id));
|
|
|
|
foreach (Annex item in annexList)
|
|
|
|
foreach (Annex item in annexList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string fileUrl = string.Join(",", annexList.Select(x => $"{domainUrl}/api/Annex/Download?key={x.Key}"));
|
|
|
|
//string fileUrl = string.Join(",", annexList.Select(x => $"{domainUrl}/api/Annex/Download?key={x.Key}"));
|
|
|
|
|
|
|
|
string fileUrl = $"{domainUrl}/api/Annex/Download?key={item.Key}";
|
|
|
|
|
|
|
|
|
|
|
|
hydFeedbackDtoList.Add(new HydFeedbackDto()
|
|
|
|
hydFeedbackDtoList.Add(new HydFeedbackDto()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -687,10 +688,14 @@ namespace EntrustSettle.Api.Controllers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!string.IsNullOrWhiteSpace(bindDto.Remark))
|
|
|
|
if (!string.IsNullOrWhiteSpace(bindDto.Remark))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string remark = string.IsNullOrEmpty(order.Remark) ?
|
|
|
|
if (string.IsNullOrEmpty(order.Remark))
|
|
|
|
bindDto.Remark :
|
|
|
|
{
|
|
|
|
|
|
|
|
order.Remark = bindDto.Remark;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
order.Remark += (Environment.NewLine + bindDto.Remark);
|
|
|
|
order.Remark += (Environment.NewLine + bindDto.Remark);
|
|
|
|
order.Remark = remark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (bindDto.OperType == FileTypeEnum.发票)
|
|
|
|
else if (bindDto.OperType == FileTypeEnum.发票)
|
|
|
@ -710,11 +715,23 @@ namespace EntrustSettle.Api.Controllers
|
|
|
|
string msg = $"Id:[{order.Id}],提单号:[{order.Mblno}],更新账单或发票后推送队列";
|
|
|
|
string msg = $"Id:[{order.Id}],提单号:[{order.Mblno}],更新账单或发票后推送队列";
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
int type = bindDto.OperType switch
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
FileTypeEnum.账单 => 3,
|
|
|
|
|
|
|
|
FileTypeEnum.发票 => 4,
|
|
|
|
|
|
|
|
_ => 0
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
var billIdList = orderAnnexService.AsQueryable()
|
|
|
|
|
|
|
|
.LeftJoin<Annex>((o, a) => o.AnnexId == a.Id)
|
|
|
|
|
|
|
|
.Where((o, a) => o.OrderId == order.Id && a.Type == type)
|
|
|
|
|
|
|
|
.Select((o, a) => a.Id)
|
|
|
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
|
|
BillPushDto pushDto = new()
|
|
|
|
BillPushDto pushDto = new()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
OrderId = order.Id,
|
|
|
|
OrderId = order.Id,
|
|
|
|
Mblno = order.Mblno,
|
|
|
|
Mblno = order.Mblno,
|
|
|
|
AnnexIdList = bindDto.AnnexIdList,
|
|
|
|
AnnexIdList = billIdList,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
if (bindDto.OperType == FileTypeEnum.账单)
|
|
|
|
if (bindDto.OperType == FileTypeEnum.账单)
|
|
|
|
{
|
|
|
|
{
|
|
|
|