基础服务api
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

TechnologyServices.cs 2.0 KiB

10 miesięcy temu
10 miesięcy temu
10 miesięcy temu
10 miesięcy temu
10 miesięcy temu
10 miesięcy temu
10 miesięcy temu
10 miesięcy temu
10 miesięcy temu
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using BPA.SAAS.Manage.Application.Device.Dtos.Device;
  2. using BPA.SAAS.Manage.Application.Device.Interface;
  3. using BPA.SAAS.Manage.Core.Base;
  4. using Microsoft.AspNetCore.Components.Forms;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace BPA.SAAS.Manage.Application.Device
  11. {
  12. [ApiDescriptionSettings("Technology", Tag = "设备工艺")]
  13. public class TechnologyServices: IDynamicApiController, ITransient
  14. {
  15. ITechnologyService _technologyService;
  16. public TechnologyServices(ITechnologyService technologyService)
  17. {
  18. _technologyService= technologyService;
  19. }
  20. /// <summary>
  21. /// 分页查询
  22. /// </summary>
  23. /// <param name="inputDto"></param>
  24. /// <returns></returns>
  25. [HttpPost("/api/technology/page")]
  26. public async Task<PageUtil> GetTechnologyPage(TechnologyQueryInputDto inputDto)
  27. {
  28. return await _technologyService.GetTechnologyExportRecodePage(inputDto);
  29. }
  30. /// <summary>
  31. /// 删除
  32. /// </summary>
  33. /// <param name="id"></param>
  34. /// <returns></returns>
  35. [HttpGet("/api/technology/delete")]
  36. public async Task<bool> DeTechnologyExportRecode(string id)
  37. {
  38. return await _technologyService.DeTechnologyExportRecode(id);
  39. }
  40. /// <summary>
  41. /// 根据设备id查询设备工艺信息
  42. /// </summary>
  43. /// <param name="deviceId"></param>
  44. /// <returns></returns>
  45. [HttpGet("/api/technology/gettechnologylist")]
  46. public async Task<List<TechnologyView>> GetTechnologyList(string deviceId)
  47. {
  48. return await _technologyService.GetTechnologyList(deviceId);
  49. }
  50. [HttpGet("/api/technology/gettechnologylist_alm")]
  51. [AllowAnonymous]
  52. public async Task<List<TechnologyView>> GetTechnologyList__alm(string deviceId)
  53. {
  54. return await _technologyService.GetTechnologyList_alm(deviceId);
  55. }
  56. }
  57. }