自测问题调整

master
zhangxiaofeng 5 months ago
parent f16df65f04
commit f63cc58a2b

@ -243,6 +243,16 @@ namespace EntrustSettle.Api.Controllers
isUpdate = true;
order.Status = input.status;
orderUpdateable.SetColumns(x => x.Status == input.status);
// 记录订单状态变更历史
await orderHistoryService.Add(new OrderHistory()
{
Pid = order.Id,
Status = (int)input.status,
StatusTime = DateTime.Now,
CreateBy = "系统",
Remark = "(状态接收)"
});
}
if (isHasBill)
{

@ -586,7 +586,8 @@ namespace EntrustSettle.Api.Controllers
var annexList = await annexService.Query(x => bindDto.AnnexIdList.Contains(x.Id));
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()
{
@ -687,10 +688,14 @@ namespace EntrustSettle.Api.Controllers
{
if (!string.IsNullOrWhiteSpace(bindDto.Remark))
{
string remark = string.IsNullOrEmpty(order.Remark) ?
bindDto.Remark :
if (string.IsNullOrEmpty(order.Remark))
{
order.Remark = bindDto.Remark;
}
else
{
order.Remark += (Environment.NewLine + bindDto.Remark);
order.Remark = remark;
}
}
}
else if (bindDto.OperType == FileTypeEnum.)
@ -710,11 +715,23 @@ namespace EntrustSettle.Api.Controllers
string msg = $"Id[{order.Id}],提单号:[{order.Mblno}],更新账单或发票后推送队列";
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()
{
OrderId = order.Id,
Mblno = order.Mblno,
AnnexIdList = bindDto.AnnexIdList,
AnnexIdList = billIdList,
};
if (bindDto.OperType == FileTypeEnum.)
{

@ -87,7 +87,7 @@ namespace EntrustSettle.Tasks
continue;
}
var order = orderList[0];
if (order.Status != item.status)
if (item.status != null && order.Status != item.status)
{
order.Status = item.status;
var updateSuccess = await orderService.Update(order, x => new { x.Status });
@ -97,7 +97,7 @@ namespace EntrustSettle.Tasks
await orderHistoryService.Add(new OrderHistory()
{
Pid = order.Id,
Status = item.status,
Status = item.status ?? 0,
StatusTime = DateTime.Now,
CreateBy = "系统",
Remark = "(后台任务自动设置)"
@ -118,7 +118,7 @@ namespace EntrustSettle.Tasks
MessageType = 1,
MessageDesc = "状态更新推送",
Remark = "",
Status = item.status,
Status = item.status ?? 0,
StatusDesc = item.status switch
{
0 => "已下单",

Loading…
Cancel
Save