1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System.Dynamic;
using Microsoft.AspNetCore.Mvc;
using NewPdaSqlServer.Dto.service;
using NewPdaSqlServer.entity;
using NewPdaSqlServer.service.QC;
using NewPdaSqlServer.util;
using Newtonsoft.Json.Linq;
 
namespace NewPdaSqlServer.Controllers.Warehouse;
 
[Route("api/[controller]")]
[ApiController]
public class MesXkyController : ControllerBase
{
 
    public class XKYGetDhdRequest
    {
        public long? startDate { get; set; }
        public long? endDate { get; set; }
        public string? erpCode { get; set; }
    }
 
    MesXkyService m = new MesXkyService();
 
    [HttpPost("GetXkyDhd")]
    public ResponseResult GetXkyDhd( XKYGetDhdRequest request)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos = m.GetXkyDHD(request);
            var tbBillList = resultInfos;
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = tbBillList
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
 
}