LabelSysController.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Microsoft.AspNetCore.Mvc;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using XYY.Core.Standard.Mvc;
  7. using XYY.Model.Standard.Order;
  8. using XYY.Service.Standard.Order;
  9. namespace XYY.Api.Order.Controllers
  10. {
  11. [Route("api/[controller]/[action]")]
  12. [ApiController]
  13. public class LabelSysController : ApiControllerBase
  14. {
  15. IOrderService _orderService;
  16. public LabelSysController(IOrderService orderService)
  17. {
  18. _orderService = orderService;
  19. }
  20. [ActionName("GetWaitDownFile")]
  21. public async Task<IActionResult> GetWaitDownFile(int qty = 200)
  22. {
  23. var data = await _orderService.GetWaitDownFile(qty);
  24. return Ok(data);
  25. }
  26. [ActionName("UpdateDownFile")]
  27. public async Task<IActionResult> UpdateDownFile(Dto dto)
  28. {
  29. await _orderService.UpdateDownFile(dto.Data);
  30. return Ok();
  31. }
  32. public class Dto
  33. {
  34. public List<SysWarehouseFileLog> Data { get; set; }
  35. }
  36. }
  37. }