南骏 池
2025-05-12 c418ccde908642c73f86ff43cc999be835a1e77d
Controllers/QC/IpqcController.cs
@@ -14,6 +14,11 @@
{
    IpqcService m = new IpqcService();
    /// <summary>
    /// 首检单据查询
    /// </summary>
    /// <param name="queryObj"></param>
    /// <returns></returns>
    [HttpPost("getPageSj")]
    public ResponseResult getPageSj([FromBody] XJPageResult queryObj)
    {
@@ -64,5 +69,55 @@
    }
    /// <summary>
    /// 首检单据查询
    /// </summary>
    /// <param name="queryObj"></param>
    /// <returns></returns>
    [HttpPost("getPageXj")]
    public ResponseResult getPageXj([FromBody] XJPageResult queryObj)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var (item, totalCount) = m.getPageXj(queryObj);
            var tbBillList =
                resultInfos.tbBillList = item;
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos,
                TotalCount = totalCount
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    //更新检验项目认证信息
    [HttpPost("updateIpqcRzxx")]
    public ResponseResult updateIpqcRzxx(LLJDto ipqcDto)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var tbBillList = m.updateIpqcRzxx(ipqcDto);
            resultInfos.tbBillList = tbBillList;
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
}