11
啊鑫
2025-07-15 5dc3cc86f5835369cd830f2a83318b9a8d69cf69
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
47
48
49
50
51
52
53
54
55
56
57
58
59
using System.Dynamic;
using MES.Service.Dto.service;
using MES.Service.service.SpotCheck;
using MES.Service.util;
using Microsoft.AspNetCore.Mvc;
 
namespace MESApplication.Controllers.SpotCheck;
 
[ApiController]
[Route("api/[controller]")]
public class MesEqMaintainController : ControllerBase
{
    [HttpPost("getDjDetail")]
    public ResponseResult getDjDetail([FromBody] DJPageResultDto queryObj)
    {
        // var releaseNo = data["releaseNo"].ToString();
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var tbBillList =
                new SpotCheckService().GetDjDetail(queryObj);
            resultInfos.tbBillList = tbBillList;
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
 
 
    // 之前的 UpDateDjDetail 方法
    [HttpPost("UpDateDjDetail")]
    public ResponseResult UpDateDjDetail([FromBody] DJPageResultDto updateObj)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            // 调用 SpotCheckService 中的 UpdateDjDetail 方法进行更新操作
            var updateResult = new SpotCheckService().UpdateDjDetail(updateObj);
            resultInfos.updateResult = updateResult;
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
}