|
@@ -1565,7 +1565,8 @@ public class OrderController : BaseController
|
|
var model = _mapper.Map<OrderScreen>(dto.Data);
|
|
var model = _mapper.Map<OrderScreen>(dto.Data);
|
|
model.Status = EScreenStatus.Apply;
|
|
model.Status = EScreenStatus.Apply;
|
|
model.ApplyEndTime = endTime;
|
|
model.ApplyEndTime = endTime;
|
|
- model.InitId();
|
|
|
|
|
|
+ model.TimeConsuming = _timeLimitDomainService.CalcWorkTimeToDecimal(visit.VisitTime.Value,DateTime.Now,false);
|
|
|
|
+ model.InitId();
|
|
if (dto.Data.Files.Any())
|
|
if (dto.Data.Files.Any())
|
|
model.FileJson = await _fileRepository.AddFileAsync(dto.Data.Files, model.Id, "", HttpContext.RequestAborted);
|
|
model.FileJson = await _fileRepository.AddFileAsync(dto.Data.Files, model.Id, "", HttpContext.RequestAborted);
|
|
await _orderScreenRepository.AddAsync(model, HttpContext.RequestAborted);
|
|
await _orderScreenRepository.AddAsync(model, HttpContext.RequestAborted);
|