SqeController.cs 929 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Business.Dto;
  2. using Business.VSM;
  3. using Microsoft.AspNetCore.Mvc;
  4. using NLog.Fluent;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Data;
  8. using System.Threading.Tasks;
  9. using Volo.Abp;
  10. using Volo.Abp.AspNetCore.Mvc;
  11. namespace Business.Controllers
  12. {
  13. /// <summary>
  14. /// 价值流接口
  15. /// </summary>
  16. [RemoteService]
  17. [Area("Sqe")]
  18. [Route("api/business/sqe")]
  19. public class SqeController : AbpController
  20. {
  21. private readonly ISqeExcelService _SqeExcelService;
  22. public SqeController(ISqeExcelService SqeExcelService)
  23. {
  24. _SqeExcelService = SqeExcelService;
  25. }
  26. [HttpGet]
  27. [Route("import_test")]
  28. public string ImportTest(string filePath, string sheetName)
  29. {
  30. DataTable dt = _SqeExcelService.ImportExcelSheetToDataTable_test(filePath, sheetName);
  31. return "测试系统";
  32. }
  33. }
  34. }