|
@@ -2416,7 +2416,14 @@ public class OrderController : BaseController
|
|
|
if (publish != null)
|
|
|
{
|
|
|
var publishHistory = _mapper.Map<OrderPublishHistory>(publish);
|
|
|
- await _orderPublishHistoryRepository.AddAsync(publishHistory, HttpContext.RequestAborted);
|
|
|
+ publishHistory.OrderPublishId = publish.Id;
|
|
|
+ publishHistory.ArrangeTitleAfter = publish.ArrangeTitle;
|
|
|
+ publishHistory.ArrangeTitleBefor = publish.ArrangeTitle;
|
|
|
+ publishHistory.ArrangeContentAfter = publish.ArrangeContent;
|
|
|
+ publishHistory.ArrangeContentBefor = publish.ArrangeContent;
|
|
|
+ publishHistory.ArrangeOpinionAfter = publish.ArrangeOpinion;
|
|
|
+ publishHistory.ArrangeOpinionBefor = publish.ArrangeOpinion;
|
|
|
+ await _orderPublishHistoryRepository.AddAsync(publishHistory, HttpContext.RequestAborted);
|
|
|
await _orderPublishRepository.RemoveAsync(publish, false, HttpContext.RequestAborted);
|
|
|
}
|
|
|
|