|
@@ -350,17 +350,13 @@ public class OrderController : BaseController
|
|
|
throw UserFriendlyException.SameMessage("未找到工单,无法发布");
|
|
|
|
|
|
//新增发布工单
|
|
|
- OrderPublish orderPublish = new OrderPublish();
|
|
|
+
|
|
|
+
|
|
|
+ var orderPublish = _mapper.Map<OrderPublish>(dto);
|
|
|
+
|
|
|
orderPublish.OrderId = order.Id;
|
|
|
orderPublish.No = order.No;
|
|
|
- orderPublish.PublishState = dto.PublishState;
|
|
|
- orderPublish.ArrangeTitle = dto.ArrangeTitle;
|
|
|
- orderPublish.ArrangeContent = dto.ArrangeContent;
|
|
|
- orderPublish.ArrangeOpinion = dto.ArrangeOpinion;
|
|
|
- orderPublish.ProPublishState = dto.ProPublishState;
|
|
|
- orderPublish.FeedBackPhone = dto.FeedBackPhone;
|
|
|
- orderPublish.NoPubReason = dto.NoPubReason;
|
|
|
- orderPublish.CreatorName = _sessionContext.UserName;
|
|
|
+
|
|
|
string id = await _orderPublishRepository.AddAsync(orderPublish);
|
|
|
order.Publish(orderPublish.PublishState);
|
|
|
await _orderRepository.UpdateAsync(order);
|
|
@@ -458,7 +454,8 @@ public class OrderController : BaseController
|
|
|
SourceChannel = order.SourceChannel,
|
|
|
OrderTitle = order.Title,
|
|
|
Content = order.Content,
|
|
|
- ActualOpinion = order.ActualOpinion
|
|
|
+ ActualOpinion = order.ActualOpinion,
|
|
|
+ NetizenEvaluateType = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.AcceptType).Select(x => new Kv { Key = x.DicDataValue, Value = x.DicDataName }).ToList()
|
|
|
};
|
|
|
var (idName, idNames) =
|
|
|
await _workflowDomainService.GetUnvisitOrgsAsync(order.WorkflowId, HttpContext.RequestAborted);
|
|
@@ -2531,6 +2528,7 @@ public class OrderController : BaseController
|
|
|
d => d.No.Contains(dto.Keyword) || d.Title.Contains(dto.Keyword))
|
|
|
.WhereIF(dto.IsCounterSign.HasValue && dto.IsCounterSign == true,d=>d.CounterSignType.HasValue)
|
|
|
.WhereIF(dto.IsCounterSign.HasValue && dto.IsCounterSign == false,d=>!d.CounterSignType.HasValue)
|
|
|
+ .Where(x=>x.Source< ESource.MLSQ || x.Source> ESource.WZSC)
|
|
|
.OrderByDescending(d => d.StartTime)
|
|
|
.ToPagedListAsync(dto, HttpContext.RequestAborted);
|
|
|
|
|
@@ -2556,6 +2554,7 @@ public class OrderController : BaseController
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword),
|
|
|
d => d.No.Contains(dto.Keyword!) || d.Title.Contains(dto.Keyword!))
|
|
|
.Where(d => string.IsNullOrEmpty(d.SignerId) || d.SignerId == _sessionContext.RequiredUserId)
|
|
|
+ .Where(x => x.Source < ESource.MLSQ || x.Source > ESource.WZSC)
|
|
|
.OrderBy(d => d.Status)
|
|
|
.OrderByIF(dto.IsHandled == true, d => d.StartTime, OrderByType.Asc)
|
|
|
.OrderByIF(dto.IsHandled == false, d => d.CreationTime, OrderByType.Desc)
|
|
@@ -3752,7 +3751,7 @@ public class OrderController : BaseController
|
|
|
/// <param name="file"></param>
|
|
|
/// <returns></returns>
|
|
|
[HttpPost("import-order")]
|
|
|
- public async Task<object> ImportOrder([FromForm] IFormFile file)
|
|
|
+ public async Task<object> ImportOrder(IFormFile file)
|
|
|
{
|
|
|
|
|
|
using (var stream = new MemoryStream())
|
|
@@ -3798,7 +3797,7 @@ public class OrderController : BaseController
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- catch
|
|
|
+ catch(Exception ex)
|
|
|
{
|
|
|
errorCount++;
|
|
|
}
|