From 695571c6009ecbc12e7d4a4fb147df7967a1260e Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期一, 07 七月 2025 20:21:19 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiRuiAn/HuaiAn
---
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesSolderService.cs | 39 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 38 insertions(+), 1 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesSolderService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesSolderService.cs"
index 84fb282..9c952e5 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesSolderService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesSolderService.cs"
@@ -1,9 +1,16 @@
-锘縰sing System;
+锘縰sing Newtonsoft.Json.Serialization;
+using Newtonsoft.Json;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using WIDESEA_Common.APIEnum;
+using WIDESEA_Core.Helper;
+using WIDESEA_Core;
using WIDESEA_DTO;
+using WIDESEA_DTO.MES;
+using WIDESEA_Model.Models;
namespace WIDESEA_TaskInfoService
{
@@ -27,5 +34,35 @@
return responseContent;
}
}
+ /// <summary>
+ /// 闃茬剨绔嬪簱鍏ュ簱鍚庤皟鐢∕ES鎺ュ彛鑾峰彇鎵规淇℃伅
+ /// </summary>
+ /// <param name="LotNo"></param>
+ /// <returns></returns>
+ public MesSolderModel? GetProductByLot(string LotNo)
+ {
+ WebResponseContent content = new WebResponseContent();
+ try
+ {
+ Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.WMS_MES_GetProductByLot.ToString());
+ string requestApi = apiInfo.ApiAddress + "?lotNo=" + LotNo;
+ string response = HttpMesHelper.Post(requestApi);
+ MesResponseContent mesResponseContent = response.DeserializeObject<MesResponseContent>();
+ //璋冪敤鎺ュ彛
+ if (mesResponseContent.BSucc == true)
+ {
+ MesSolderModel? mesSolder= mesResponseContent.Content.ToString()?.DeserializeObject<MesSolderModel>();
+ return mesSolder;
+ }
+ else
+ {
+ throw new Exception(mesResponseContent.StrMsg);
+ }
+ }
+ catch (Exception ex)
+ {
+ throw new Exception(ex.Message);
+ }
+ }
}
}
--
Gitblit v1.9.3