|
@@ -46,7 +46,7 @@ namespace Hotline.Api.Controllers
|
|
|
{
|
|
|
var streams = new Dictionary<string, Stream>();
|
|
|
var path = $"{Directory.GetCurrentDirectory()}/Template/AssignmentForm.doc";
|
|
|
-
|
|
|
+ int num = 1;
|
|
|
foreach (var item in Ids)
|
|
|
{
|
|
|
var order = await _orderRepository.GetAsync(item, HttpContext.RequestAborted);
|
|
@@ -95,7 +95,10 @@ namespace Hotline.Api.Controllers
|
|
|
exportTest.VisitOrg = visit;
|
|
|
}
|
|
|
if (Ids.Count > 1)
|
|
|
- streams.Add(order.No + path.Substring(path.LastIndexOf(".")), _wordHelperService.WordStream(path, exportTest));
|
|
|
+ {
|
|
|
+ streams.Add(order.No + "_" + num + path.Substring(path.LastIndexOf(".")), _wordHelperService.WordStream(path, exportTest));
|
|
|
+ num = num + 1;
|
|
|
+ }
|
|
|
else
|
|
|
{
|
|
|
var btyes = _wordHelperService.WordByte(path, exportTest);
|