订单Excel添加追加导入功能
This commit is contained in:
@@ -125,18 +125,19 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
/// 采购导入
|
||||
/// </summary>
|
||||
/// <param name="formFile">使用IFromFile必须使用name属性否则获取不到文件</param>
|
||||
/// <param name="uploadType">true-追加导入 false-覆盖导入</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("importData")]
|
||||
[Log(Title = "采购导入", BusinessType = BusinessType.IMPORT, IsSaveRequestData = false, IsSaveResponseData = true)]
|
||||
[AllowAnonymous]
|
||||
public IActionResult ImportData([FromForm(Name = "file")] IFormFile formFile,bool? value)
|
||||
public IActionResult ImportData([FromForm(Name = "file")] IFormFile formFile,bool? uploadType)
|
||||
{
|
||||
|
||||
if (formFile == null)
|
||||
{
|
||||
return SUCCESS(null);
|
||||
}
|
||||
int response = _OrderPurchaseService.ImportData(formFile, HttpContext.GetName(),value);
|
||||
int response = _OrderPurchaseService.ImportData(formFile, HttpContext.GetName(), uploadType);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user