SqeController.cs 958 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Business.StructuredDB.Sqe;
  2. using Business.VSM;
  3. using Microsoft.AspNetCore.Mvc;
  4. using Newtonsoft.Json;
  5. using NLog.Fluent;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Data;
  9. using System.Linq;
  10. using System.Threading.Tasks;
  11. using Volo.Abp;
  12. using Volo.Abp.AspNetCore.Mvc;
  13. namespace Business.Controllers
  14. {
  15. /// <summary>
  16. /// 价值流接口
  17. /// </summary>
  18. [RemoteService]
  19. [Area("Sqe")]
  20. [Route("api/business/sqe")]
  21. public class SqeController : AbpController
  22. {
  23. private readonly ISqeExcelService _SqeExcelService;
  24. public SqeController(ISqeExcelService SqeExcelService)
  25. {
  26. _SqeExcelService = SqeExcelService;
  27. }
  28. [HttpGet]
  29. [Route("import_1")]
  30. public string Import_1(int file_id)
  31. {
  32. String s = _SqeExcelService.ImportData_From_Data(28, "测试用户", DateTime.Now, "测试组织");
  33. return s;
  34. }
  35. }
  36. }