wbc
2025-04-23 2f11a821259c77d8e48bb0b83e7f01b0f529b10a
3月27号首检巡检增加ftp获取文件列表
已添加2个文件
已修改31个文件
416 ■■■■■ 文件已修改
MES.Service/Modes/QsQaItemXj.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Modes/QsQaItemXj02.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/bin/Debug/net8.0/MES.Service.dll 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/bin/Debug/net8.0/MES.Service.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/bin/Release/net8.0/MES.Service.dll 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/bin/Release/net8.0/MES.Service.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/QC/SJService.cs 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/QC/XJService.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/util/FileDownloadResult.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/Controllers/QC/SJController.cs 131 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/Controllers/QC/XJController.cs 128 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/MESApplication.csproj.user 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/Properties/PublishProfiles/FolderProfile.pubxml.user 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/Properties/launchSettings.json 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/MES.Service.dll 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/MES.Service.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/MESApplication.deps.json 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/MESApplication.dll 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/MESApplication.exe 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/MESApplication.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Debug/net8.0/log/2025031715.log 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/MES.Service.dll 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/MES.Service.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/MESApplication.deps.json 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/MESApplication.dll 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/MESApplication.exe 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/MESApplication.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/publish/MES.Service.dll 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/publish/MES.Service.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/publish/MESApplication.deps.json 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/publish/MESApplication.dll 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/publish/MESApplication.exe 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/bin/Release/net8.0/publish/MESApplication.pdb 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Modes/QsQaItemXj.cs
@@ -124,6 +124,12 @@
    [SugarColumn(ColumnName = "ITEM_ID")]
    public decimal? ItemId { get; set; }
    /// <summary>
    ///    çº¿ä½“
    /// </summary>
    [SugarColumn(ColumnName = "LINE")]
    public string? Line { get; set; }
    [SugarColumn(IsIgnore = true)] public string? Daa020 { get; set; }
    [SugarColumn(IsIgnore = true)] public decimal? PlanQty { get; set; }
MES.Service/Modes/QsQaItemXj02.cs
@@ -42,7 +42,7 @@
    public string? Fstand { get; set; }
    /// <summary>
    ///     é¦–检主表id
    ///     å·¡æ£€ä¸»è¡¨id
    /// </summary>
    [Column("GID")]
    [SugarColumn(ColumnName = "GID")] //用于SqlSugar
MES.Service/bin/Debug/net8.0/MES.Service.dll
Binary files differ
MES.Service/bin/Debug/net8.0/MES.Service.pdb
Binary files differ
MES.Service/bin/Release/net8.0/MES.Service.dll
Binary files differ
MES.Service/bin/Release/net8.0/MES.Service.pdb
Binary files differ
MES.Service/service/QC/SJService.cs
@@ -4,6 +4,7 @@
using MES.Service.Modes;
using MES.Service.util;
using SqlSugar;
using System.Net;
using System.Xml.Linq;
namespace MES.Service.service.QC;
@@ -69,7 +70,7 @@
            .OrderBy(a => a.BillNo, OrderByType.Desc)
            .ToPageList(queryObj.PageIndex, queryObj.Limit);
        if(queryObj.Id != null)
        /*if(queryObj.Id != null)
        {
@@ -88,7 +89,7 @@
                      return commit;
                  });
        }
        }*/
        
@@ -581,4 +582,80 @@
        return withOracle;
    }
    public List<string> GetFtpFileList(string ftpAddress, string username, string password, string remotePath)
    {
        List<string> fileList = new List<string>();
        try
        {
            // æž„造FTP请求的URI
            string requestUri = $"{ftpAddress}/{remotePath}".TrimEnd('/'); // ç¡®ä¿è·¯å¾„格式正确
            // åˆ›å»ºFtpWebRequest对象
            FtpWebRequest ftpRequest = (FtpWebRequest)WebRequest.Create(requestUri);
            ftpRequest.Method = WebRequestMethods.Ftp.ListDirectory;
            ftpRequest.Credentials = new NetworkCredential(username, password);
            ftpRequest.UseBinary = true;
            // èŽ·å–å“åº”
            using (FtpWebResponse ftpResponse = (FtpWebResponse)ftpRequest.GetResponse())
            {
                using (StreamReader responseReader = new StreamReader(ftpResponse.GetResponseStream()))
                {
                    string line = responseReader.ReadLine();
                    while (line != null)
                    {
                        fileList.Add(line);
                        line = responseReader.ReadLine();
                    }
                }
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("获取FTP文件列表时发生错误: " + ex.Message);
        }
        return fileList;
    }
    public byte[] DownloadFtpFile(string ftpAddress, string username, string password, string remotePath)
    {
        byte[] fileData = null;
        try
        {
            // æž„造FTP请求的URI
            string requestUri = $"{ftpAddress}/{remotePath}".TrimEnd('/'); // ç¡®ä¿è·¯å¾„格式正确
            // åˆ›å»ºFtpWebRequest对象
            FtpWebRequest ftpRequest = (FtpWebRequest)WebRequest.Create(requestUri);
            ftpRequest.Method = WebRequestMethods.Ftp.DownloadFile;
            ftpRequest.Credentials = new NetworkCredential(username, password);
            ftpRequest.UseBinary = true;
            // èŽ·å–å“åº”
            using (FtpWebResponse ftpResponse = (FtpWebResponse)ftpRequest.GetResponse())
            {
                using (Stream responseStream = ftpResponse.GetResponseStream())
                using (MemoryStream memoryStream = new MemoryStream())
                {
                    responseStream.CopyTo(memoryStream);
                    fileData = memoryStream.ToArray();
                }
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("下载FTP文件时发生错误: " + ex.Message);
        }
        return fileData;
    }
}
MES.Service/service/QC/XJService.cs
@@ -344,6 +344,10 @@
        {
            foreach (var item in items) item.Pid = xjDto.gid;
            //新增前先进行删除旧项目(覆盖操作)
            db.Deleteable<QsQaItemXj01>().Where(it => it.Pid == xjDto.gid).ExecuteCommand();
            db.Deleteable<QsQaItemXj02>().Where(it => it.Gid == xjDto.gid).ExecuteCommand();
            return db.Insertable(items).ExecuteCommand();
        });
MES.Service/util/FileDownloadResult.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,9 @@
namespace MES.Service.util;
public class FileDownloadResult
    {
        public string Url { get; set; }      // æ–‡ä»¶ä¸‹è½½URL
        public string MimeType { get; set; } // æ–‡ä»¶ç±»åž‹
        public string FileName { get; set; } // æ–‡ä»¶å
    }
MESApplication/Controllers/QC/SJController.cs
@@ -1,4 +1,5 @@
using System.Dynamic;
using System.Net;
using MES.Service.Dto.service;
using MES.Service.Modes;
using MES.Service.service.QC;
@@ -398,4 +399,134 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    //FTPLIST
    [HttpPost("ftpList")]
    public async Task<ResponseResult> getFtpList([FromBody] JObject data)
    {
        var itemno = data["itemno"]?.ToString();
        if (itemno == null || itemno =="") return new ResponseResult
        {
            status = 1,
            message = "未找到该产品的文件信息",
            data = "未找到该产品的文件信息"
        };
        var ftpAddress = "ftp://192.168.1.223:21";
        var username = "administrator";
        var password = "Rdyl8888";
        var remotePath = "PQC/SJ/" + itemno;
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var ftpFiles = new SJService().GetFtpFileList(ftpAddress, username, password, remotePath);
            resultInfos.tbBillList = ftpFiles;
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    [HttpPost("download")]
    public async Task<IActionResult> DownloadFile([FromBody] JObject data)
    {
        var fileName = data["fileName"]?.ToString();
        var itemno   = data["itemno"]?.ToString();
        var ftpAddress = "ftp://192.168.1.223:21";
        var username = "administrator";
        var password = "Rdyl8888";
        var remotePath = "PQC/SJ/" + itemno;
        try
        {
            byte[] fileData = new SJService().DownloadFtpFile(ftpAddress, username, password, $"{remotePath}/{fileName}"); // æ‹¼æŽ¥å®Œæ•´è·¯å¾„
            // ç”Ÿæˆä¸´æ—¶è®¿é—® URL(示例逻辑)
            var tempFileId = Guid.NewGuid().ToString();
            // å°†æ–‡ä»¶ç¼“存到临时目录(实际项目需考虑清理机制)
            var tempPath = Path.Combine(Path.GetTempPath(), tempFileId);
            System.IO.File.WriteAllBytes(tempPath, fileData);
            // è¿”回可直接访问的 URL
            var baseUrl = $"{Request.Scheme}://{Request.Host}";
            return Ok(new ResponseResult
            {
                status = 0,
                message = "OK",
                data = new
                {
                    url = $"{baseUrl}/api/SJ/downloadTemp?fileId={tempFileId}&fileName={fileName}",
                    mimeType = GetMimeType(fileName)
                }
            });
        }
        catch (Exception ex)
        {
            return BadRequest(ResponseResult.ResponseError(ex));
        }
    }
    private string GetMimeType(string fileName)
    {
        string mimeType = "application/octet-stream";
        if (fileName.EndsWith(".jpg") || fileName.EndsWith(".jpeg"))
        {
            mimeType = "image/jpeg";
        }
        else if (fileName.EndsWith(".png"))
        {
            mimeType = "image/png";
        }
        else if (fileName.EndsWith(".gif"))
        {
            mimeType = "image/gif";
        }
        else if (fileName.EndsWith(".pdf"))
        {
            mimeType = "application/pdf";
        }
        else if (fileName.EndsWith(".doc") || fileName.EndsWith(".docx"))
        {
            mimeType = "application/msword";
        }
        else if (fileName.EndsWith(".xls") || fileName.EndsWith(".xlsx"))
        {
            mimeType = "application/vnd.ms-excel";
        }
        return mimeType;
    }
   [HttpGet("downloadTemp")]
    public IActionResult DownloadTemp(string fileId, string fileName)
        {
            var tempPath = Path.Combine(Path.GetTempPath(), fileId);
            if (!System.IO.File.Exists(tempPath))
            {
                return NotFound();
            }
            var fileBytes = System.IO.File.ReadAllBytes(tempPath);
            return File(fileBytes, GetMimeType(fileName), fileName);
        }
}
MESApplication/Controllers/QC/XJController.cs
@@ -495,4 +495,132 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    //FTPLIST
    [HttpPost("ftpList")]
    public async Task<ResponseResult> getFtpList([FromBody] JObject data)
    {
        var itemno = data["itemno"]?.ToString();
        if (itemno == null || itemno == "") return new ResponseResult
        {
            status = 1,
            message = "未找到该产品的文件信息",
            data = "未找到该产品的文件信息"
        };
        var ftpAddress = "ftp://192.168.1.223:21";
        var username = "administrator";
        var password = "Rdyl8888";
        var remotePath = "PQC/XJ/" + itemno;
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var ftpFiles = new SJService().GetFtpFileList(ftpAddress, username, password, remotePath);
            resultInfos.tbBillList = ftpFiles;
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    [HttpPost("download")]
    public async Task<IActionResult> DownloadFile([FromBody] JObject data)
    {
        var fileName = data["fileName"]?.ToString();
        var itemno = data["itemno"]?.ToString();
        var ftpAddress = "ftp://192.168.1.223:21";
        var username = "administrator";
        var password = "Rdyl8888";
        var remotePath = "PQC/XJ/" + itemno;
        try
        {
            byte[] fileData = new SJService().DownloadFtpFile(ftpAddress, username, password, $"{remotePath}/{fileName}"); // æ‹¼æŽ¥å®Œæ•´è·¯å¾„
            // ç”Ÿæˆä¸´æ—¶è®¿é—® URL(示例逻辑)
            var tempFileId = Guid.NewGuid().ToString();
            // å°†æ–‡ä»¶ç¼“存到临时目录(实际项目需考虑清理机制)
            var tempPath = Path.Combine(Path.GetTempPath(), tempFileId);
            System.IO.File.WriteAllBytes(tempPath, fileData);
            // è¿”回可直接访问的 URL
            var baseUrl = $"{Request.Scheme}://{Request.Host}";
            return Ok(new ResponseResult
            {
                status = 0,
                message = "OK",
                data = new
                {
                    url = $"{baseUrl}/api/XJ/downloadTemp?fileId={tempFileId}&fileName={fileName}",
                    mimeType = GetMimeType(fileName)
                }
            });
        }
        catch (Exception ex)
        {
            return BadRequest(ResponseResult.ResponseError(ex));
        }
    }
    private string GetMimeType(string fileName)
    {
        string mimeType = "application/octet-stream";
        if (fileName.EndsWith(".jpg") || fileName.EndsWith(".jpeg"))
        {
            mimeType = "image/jpeg";
        }
        else if (fileName.EndsWith(".png"))
        {
            mimeType = "image/png";
        }
        else if (fileName.EndsWith(".gif"))
        {
            mimeType = "image/gif";
        }
        else if (fileName.EndsWith(".pdf"))
        {
            mimeType = "application/pdf";
        }
        else if (fileName.EndsWith(".doc") || fileName.EndsWith(".docx"))
        {
            mimeType = "application/msword";
        }
        else if (fileName.EndsWith(".xls") || fileName.EndsWith(".xlsx"))
        {
            mimeType = "application/vnd.ms-excel";
        }
        return mimeType;
    }
    [HttpGet("downloadTemp")]
    public IActionResult DownloadTemp(string fileId, string fileName)
    {
        var tempPath = Path.Combine(Path.GetTempPath(), fileId);
        if (!System.IO.File.Exists(tempPath))
        {
            return NotFound();
        }
        var fileBytes = System.IO.File.ReadAllBytes(tempPath);
        return File(fileBytes, GetMimeType(fileName), fileName);
    }
}
MESApplication/MESApplication.csproj.user
@@ -5,6 +5,6 @@
  </PropertyGroup>
  <PropertyGroup>
    <ActiveDebugProfile>IIS Express</ActiveDebugProfile>
    <NameOfLastUsedPublishProfile>E:\Desktop\新建文件夹\RD_MES_Api\MESApplication\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
    <NameOfLastUsedPublishProfile>F:\F盘桌面专属\润达项目\润达项目api\StandardPda\MESApplication\Properties\PublishProfiles\FolderProfile1.pubxml</NameOfLastUsedPublishProfile>
  </PropertyGroup>
</Project>
MESApplication/Properties/PublishProfiles/FolderProfile.pubxml.user
@@ -4,8 +4,8 @@
-->
<Project>
  <PropertyGroup>
    <_PublishTargetUrl>E:\Desktop\新建文件夹\RD_MES_Api\MESApplication\bin\Release\net8.0\publish\</_PublishTargetUrl>
    <History>True|2025-03-10T08:49:08.3476948Z||;True|2024-12-24T15:39:58.5366570+08:00||;True|2024-11-26T18:32:03.9568766+08:00||;True|2024-11-21T02:11:35.8050745+08:00||;True|2024-09-21T16:35:22.6651659+08:00||;True|2024-09-21T16:14:11.3450387+08:00||;True|2024-09-19T17:16:11.7338751+08:00||;True|2024-09-19T17:11:21.0116707+08:00||;True|2024-09-19T13:54:25.7455472+08:00||;True|2024-09-15T13:55:51.7095153+08:00||;True|2024-09-12T17:10:20.4734556+08:00||;True|2024-09-10T15:54:07.7463519+08:00||;True|2024-09-06T14:40:56.3762241+08:00||;True|2024-08-20T17:12:00.2924570+08:00||;True|2024-08-17T10:57:05.6670396+08:00||;True|2024-08-17T10:56:46.8068041+08:00||;True|2024-08-16T14:09:17.0526491+08:00||;True|2024-08-15T08:40:32.8134665+08:00||;True|2024-08-14T10:00:27.7017207+08:00||;True|2024-08-14T08:54:44.8284031+08:00||;True|2024-08-07T10:32:10.3689256+08:00||;True|2024-08-05T15:45:03.0864530+08:00||;True|2024-08-03T09:59:13.7916520+08:00||;True|2024-07-31T17:27:28.1965929+08:00||;True|2024-07-31T15:27:34.7943845+08:00||;True|2024-07-30T15:04:50.5849235+08:00||;True|2024-07-30T14:09:06.2877325+08:00||;True|2024-07-29T16:11:30.4493940+08:00||;True|2024-07-23T14:30:34.4591002+08:00||;True|2024-07-22T14:17:39.8186158+08:00||;True|2024-04-10T12:55:31.3963752+08:00||;True|2024-04-08T13:59:25.5487203+08:00||;True|2024-04-06T09:30:09.5350539+08:00||;True|2024-04-06T08:46:05.8814658+08:00||;True|2024-04-05T14:06:52.0448024+08:00||;True|2024-04-05T12:47:46.0561601+08:00||;True|2024-02-26T08:46:22.0988887+08:00||;True|2024-02-24T19:17:13.6770376+08:00||;True|2024-02-24T14:32:37.4450337+08:00||;True|2024-02-23T10:22:06.5150173+08:00||;True|2024-02-22T13:19:56.6997993+08:00||;True|2024-02-22T10:53:17.7929585+08:00||;True|2024-02-21T17:08:06.5553444+08:00||;True|2024-02-19T16:24:37.4912012+08:00||;True|2024-02-02T10:07:23.2726075+08:00||;True|2024-02-02T08:36:49.2904460+08:00||;True|2024-01-29T17:44:43.6800769+08:00||;True|2024-01-23T09:47:26.7811926+08:00||;True|2024-01-18T16:23:30.3373836+08:00||;True|2024-01-17T14:22:04.2552286+08:00||;True|2024-01-16T16:54:42.2316892+08:00||;True|2024-01-16T16:37:23.8028858+08:00||;True|2024-01-16T09:25:24.4007775+08:00||;True|2024-01-15T10:18:57.3362616+08:00||;True|2024-01-15T10:07:14.2044763+08:00||;True|2024-01-10T14:03:36.4451130+08:00||;True|2024-01-09T16:45:32.9601815+08:00||;True|2024-01-06T14:16:34.2732220+08:00||;True|2024-01-06T14:11:45.2134717+08:00||;True|2024-01-06T11:30:58.9198887+08:00||;</History>
    <_PublishTargetUrl>F:\F盘桌面专属\润达项目\润达项目api\StandardPda\MESApplication\bin\Release\net8.0\publish\</_PublishTargetUrl>
    <History>True|2025-03-27T15:22:42.3501020Z;True|2025-03-10T16:49:08.3476948+08:00;True|2024-12-24T15:39:58.5366570+08:00;True|2024-11-26T18:32:03.9568766+08:00;True|2024-11-21T02:11:35.8050745+08:00;True|2024-09-21T16:35:22.6651659+08:00;True|2024-09-21T16:14:11.3450387+08:00;True|2024-09-19T17:16:11.7338751+08:00;True|2024-09-19T17:11:21.0116707+08:00;True|2024-09-19T13:54:25.7455472+08:00;True|2024-09-15T13:55:51.7095153+08:00;True|2024-09-12T17:10:20.4734556+08:00;True|2024-09-10T15:54:07.7463519+08:00;True|2024-09-06T14:40:56.3762241+08:00;True|2024-08-20T17:12:00.2924570+08:00;True|2024-08-17T10:57:05.6670396+08:00;True|2024-08-17T10:56:46.8068041+08:00;True|2024-08-16T14:09:17.0526491+08:00;True|2024-08-15T08:40:32.8134665+08:00;True|2024-08-14T10:00:27.7017207+08:00;True|2024-08-14T08:54:44.8284031+08:00;True|2024-08-07T10:32:10.3689256+08:00;True|2024-08-05T15:45:03.0864530+08:00;True|2024-08-03T09:59:13.7916520+08:00;True|2024-07-31T17:27:28.1965929+08:00;True|2024-07-31T15:27:34.7943845+08:00;True|2024-07-30T15:04:50.5849235+08:00;True|2024-07-30T14:09:06.2877325+08:00;True|2024-07-29T16:11:30.4493940+08:00;True|2024-07-23T14:30:34.4591002+08:00;True|2024-07-22T14:17:39.8186158+08:00;True|2024-04-10T12:55:31.3963752+08:00;True|2024-04-08T13:59:25.5487203+08:00;True|2024-04-06T09:30:09.5350539+08:00;True|2024-04-06T08:46:05.8814658+08:00;True|2024-04-05T14:06:52.0448024+08:00;True|2024-04-05T12:47:46.0561601+08:00;True|2024-02-26T08:46:22.0988887+08:00;True|2024-02-24T19:17:13.6770376+08:00;True|2024-02-24T14:32:37.4450337+08:00;True|2024-02-23T10:22:06.5150173+08:00;True|2024-02-22T13:19:56.6997993+08:00;True|2024-02-22T10:53:17.7929585+08:00;True|2024-02-21T17:08:06.5553444+08:00;True|2024-02-19T16:24:37.4912012+08:00;True|2024-02-02T10:07:23.2726075+08:00;True|2024-02-02T08:36:49.2904460+08:00;True|2024-01-29T17:44:43.6800769+08:00;True|2024-01-23T09:47:26.7811926+08:00;True|2024-01-18T16:23:30.3373836+08:00;True|2024-01-17T14:22:04.2552286+08:00;True|2024-01-16T16:54:42.2316892+08:00;True|2024-01-16T16:37:23.8028858+08:00;True|2024-01-16T09:25:24.4007775+08:00;True|2024-01-15T10:18:57.3362616+08:00;True|2024-01-15T10:07:14.2044763+08:00;True|2024-01-10T14:03:36.4451130+08:00;True|2024-01-09T16:45:32.9601815+08:00;True|2024-01-06T14:16:34.2732220+08:00;True|2024-01-06T14:11:45.2134717+08:00;True|2024-01-06T11:30:58.9198887+08:00;</History>
    <LastFailureDetails />
  </PropertyGroup>
</Project>
MESApplication/Properties/launchSettings.json
@@ -1,23 +1,14 @@
{
  "$schema": "http://json.schemastore.org/launchsettings.json",
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:10054",
      "sslPort": 0
    }
  },
{
  "profiles": {
    "http": {
      "commandName": "Project",
      "dotnetRunMessages": true,
      "launchBrowser": true,
      "launchUrl": "swagger",
      "applicationUrl": "http://localhost:5184",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
      },
      "dotnetRunMessages": true,
      "applicationUrl": "http://localhost:5184"
    },
    "IIS Express": {
      "commandName": "IISExpress",
@@ -25,7 +16,17 @@
      "launchUrl": "swagger",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
      },
      "nativeDebugging": true
    }
  },
  "$schema": "http://json.schemastore.org/launchsettings.json",
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://192.168.1.164:10054",
      "sslPort": 0
    }
  }
}
}
MESApplication/bin/Debug/net8.0/MES.Service.dll
Binary files differ
MESApplication/bin/Debug/net8.0/MES.Service.pdb
Binary files differ
MESApplication/bin/Debug/net8.0/MESApplication.deps.json
@@ -1412,10 +1412,7 @@
          "SqlSugarCore": "5.1.4.158"
        },
        "runtime": {
          "MES.Service.dll": {
            "assemblyVersion": "1.0.0",
            "fileVersion": "1.0.0.0"
          }
          "MES.Service.dll": {}
        }
      }
    }
MESApplication/bin/Debug/net8.0/MESApplication.dll
Binary files differ
MESApplication/bin/Debug/net8.0/MESApplication.exe
Binary files differ
MESApplication/bin/Debug/net8.0/MESApplication.pdb
Binary files differ
MESApplication/bin/Debug/net8.0/log/2025031715.log
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,3 @@
2025-03-17 15:13:04:390 æŽ¥å£å¼‚常:{"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at MESApplication.Controllers.QC.SJController.getWrokNoDatile(JObject data) in F:\\F盘桌面专属\\润达项目\\润达项目api\\StandardPda\\MESApplication\\Controllers\\QC\\SJController.cs:line 90\r\n   at lambda_method265(Closure, Object, Object[])\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2147467261,"Source":"MESApplication","WatsonBuckets":null}
2025-03-17 15:13:04:427 å¼‚常提示信息:"Object reference not set to an instance of an object."
==================================================================================================================================
MESApplication/bin/Release/net8.0/MES.Service.dll
Binary files differ
MESApplication/bin/Release/net8.0/MES.Service.pdb
Binary files differ
MESApplication/bin/Release/net8.0/MESApplication.deps.json
@@ -1412,10 +1412,7 @@
          "SqlSugarCore": "5.1.4.158"
        },
        "runtime": {
          "MES.Service.dll": {
            "assemblyVersion": "1.0.0",
            "fileVersion": "1.0.0.0"
          }
          "MES.Service.dll": {}
        }
      }
    }
MESApplication/bin/Release/net8.0/MESApplication.dll
Binary files differ
MESApplication/bin/Release/net8.0/MESApplication.exe
Binary files differ
MESApplication/bin/Release/net8.0/MESApplication.pdb
Binary files differ
MESApplication/bin/Release/net8.0/publish/MES.Service.dll
Binary files differ
MESApplication/bin/Release/net8.0/publish/MES.Service.pdb
Binary files differ
MESApplication/bin/Release/net8.0/publish/MESApplication.deps.json
@@ -1160,10 +1160,7 @@
          "SqlSugarCore": "5.1.4.158"
        },
        "runtime": {
          "MES.Service.dll": {
            "assemblyVersion": "1.0.0",
            "fileVersion": "1.0.0.0"
          }
          "MES.Service.dll": {}
        }
      }
    }
MESApplication/bin/Release/net8.0/publish/MESApplication.dll
Binary files differ
MESApplication/bin/Release/net8.0/publish/MESApplication.exe
Binary files differ
MESApplication/bin/Release/net8.0/publish/MESApplication.pdb
Binary files differ