| | |
| | | [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; } |
| | | |
| | |
| | | public string? Fstand { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 馿£ä¸»è¡¨id |
| | | /// å·¡æ£ä¸»è¡¨id |
| | | /// </summary> |
| | | [Column("GID")] |
| | | [SugarColumn(ColumnName = "GID")] //ç¨äºSqlSugar |
| | |
| | | using MES.Service.Modes; |
| | | using MES.Service.util; |
| | | using SqlSugar; |
| | | using System.Net; |
| | | using System.Xml.Linq; |
| | | |
| | | namespace MES.Service.service.QC; |
| | |
| | | .OrderBy(a => a.BillNo, OrderByType.Desc) |
| | | .ToPageList(queryObj.PageIndex, queryObj.Limit); |
| | | |
| | | if(queryObj.Id != null) |
| | | /*if(queryObj.Id != null) |
| | | { |
| | | |
| | | |
| | |
| | | return commit; |
| | | }); |
| | | |
| | | } |
| | | }*/ |
| | | |
| | | |
| | | |
| | |
| | | |
| | | 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; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | { |
| | | 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(); |
| | | }); |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace MES.Service.util; |
| | | |
| | | public class FileDownloadResult |
| | | { |
| | | public string Url { get; set; } // æä»¶ä¸è½½URL |
| | | public string MimeType { get; set; } // æä»¶ç±»å |
| | | public string FileName { get; set; } // æä»¶å |
| | | } |
| | | |
| | |
| | | using System.Dynamic; |
| | | using System.Net; |
| | | using MES.Service.Dto.service; |
| | | using MES.Service.Modes; |
| | | using MES.Service.service.QC; |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |
| | |
| | | </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> |
| | |
| | | --> |
| | | <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> |
| | |
| | | { |
| | | "$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", |
| | |
| | | "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 |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | "SqlSugarCore": "5.1.4.158" |
| | | }, |
| | | "runtime": { |
| | | "MES.Service.dll": { |
| | | "assemblyVersion": "1.0.0", |
| | | "fileVersion": "1.0.0.0" |
| | | } |
| | | "MES.Service.dll": {} |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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." |
| | | ================================================================================================================================== |
| | |
| | | "SqlSugarCore": "5.1.4.158" |
| | | }, |
| | | "runtime": { |
| | | "MES.Service.dll": { |
| | | "assemblyVersion": "1.0.0", |
| | | "fileVersion": "1.0.0.0" |
| | | } |
| | | "MES.Service.dll": {} |
| | | } |
| | | } |
| | | } |
| | |
| | | "SqlSugarCore": "5.1.4.158" |
| | | }, |
| | | "runtime": { |
| | | "MES.Service.dll": { |
| | | "assemblyVersion": "1.0.0", |
| | | "fileVersion": "1.0.0.0" |
| | | } |
| | | "MES.Service.dll": {} |
| | | } |
| | | } |
| | | } |