diff --git a/SlnMesnac.Model/domain/WmsTaskOut.cs b/SlnMesnac.Model/domain/WmsTaskOut.cs
new file mode 100644
index 0000000..6af0f83
--- /dev/null
+++ b/SlnMesnac.Model/domain/WmsTaskOut.cs
@@ -0,0 +1,87 @@
+using System.Runtime.Serialization;
+using SqlSugar;
+
+namespace SlnMesnac.Model.domain
+{
+ ///
+ /// WMS 出库记录反馈
+ ///
+ [SugarTable("I_TASKOUT_FEEDBACK_TO_MES"), TenantAttribute("wms")]
+ public class WmsTaskOut
+ {
+ [SugarColumn(ColumnName = "OBJ_ID", IsPrimaryKey = true, IsIdentity = true)]
+ public int OBJ_ID { get; set; }
+
+ ///
+ /// 单号
+ ///
+ [SugarColumn(ColumnName = "ORDER_NO")]
+ public string OrderNo { get; set; }
+
+ ///
+ /// 订单行号
+ ///
+ [SugarColumn(ColumnName = "ORDER_LINE_NO")]
+ public string OrderLineNo { get; set; }
+
+ ///
+ /// 单据类型
+ ///
+ [SugarColumn(ColumnName = "ORDER_TYPE_NO")]
+ public string OrderTypeNo { get; set; }
+
+ ///
+ /// 库位号
+ ///
+ [SugarColumn(ColumnName = "BIN_NO")]
+ public string BinNo { get; set; }
+
+ ///
+ /// 任务号
+ ///
+ [SugarColumn(ColumnName = "TASK_NO")]
+ public string TaskNo { get; set; }
+
+ ///
+ /// 起始位置
+ ///
+ [SugarColumn(ColumnName = "SLOC_NO")]
+ public string SlocNo { get; set; }
+
+ ///
+ /// 目的位置
+ ///
+ [SugarColumn(ColumnName = "ELOC_NO")]
+ public string ElocNo { get; set; }
+
+ ///
+ /// 任务数量
+ ///
+ [SugarColumn(ColumnName = "PRODUCT_QTY")]
+ public decimal ProductQty { get; set; }
+
+ ///
+ /// 批次号
+ ///
+ [SugarColumn(ColumnName = "BATCH_NO")]
+ public string BatchNo { get; set; }
+
+ ///
+ /// 物料编码
+ ///
+ [SugarColumn(ColumnName = "MATER_NO")]
+ public string MaterNo { get; set; }
+
+ ///
+ /// 托盘号
+ ///
+ [SugarColumn(ColumnName = "PALLET_NO")]
+ public string PalletNo { get; set; }
+
+ ///
+ /// 标签唯一码
+ ///
+ [SugarColumn(ColumnName = "SERIAL_NUM")]
+ public string SerialNum { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/SlnMesnac.Repository/SqlsugarSetup.cs b/SlnMesnac.Repository/SqlsugarSetup.cs
index c798c38..21b148e 100644
--- a/SlnMesnac.Repository/SqlsugarSetup.cs
+++ b/SlnMesnac.Repository/SqlsugarSetup.cs
@@ -57,7 +57,8 @@ namespace SlnMesnac.Repository
services.AddSingleton(typeof(Repository<>));
services.AddSingleton();
services.AddSingleton();
- services.AddScoped();
+ services.AddSingleton();
+ services.AddSingleton();
}
}
}
diff --git a/SlnMesnac.Repository/service/IWmsTaskOutService.cs b/SlnMesnac.Repository/service/IWmsTaskOutService.cs
new file mode 100644
index 0000000..399406d
--- /dev/null
+++ b/SlnMesnac.Repository/service/IWmsTaskOutService.cs
@@ -0,0 +1,24 @@
+using System.Collections.Generic;
+using SlnMesnac.Model.domain;
+
+namespace SlnMesnac.Repository.service
+{
+ ///
+ /// WMS出库记录反馈
+ ///
+ public interface IWmsTaskOutService
+ {
+ ///
+ /// 获取WMS出库记录
+ ///
+ ///
+ List GetWmsTaskOutList();
+
+ ///
+ /// 通过标签唯一编码获取出库记录,获取物料信息
+ ///
+ ///
+ ///
+ WmsTaskOut GetWmsTaskOutBySerialNum(string SerialNum);
+ }
+}
\ No newline at end of file
diff --git a/SlnMesnac.Repository/service/Impl/WmsTaskOutServiceImpl.cs b/SlnMesnac.Repository/service/Impl/WmsTaskOutServiceImpl.cs
new file mode 100644
index 0000000..e701412
--- /dev/null
+++ b/SlnMesnac.Repository/service/Impl/WmsTaskOutServiceImpl.cs
@@ -0,0 +1,46 @@
+using System;
+using System.Collections.Generic;
+using SlnMesnac.Model.domain;
+
+namespace SlnMesnac.Repository.service.Impl
+{
+ public class WmsTaskOutServiceImpl:IWmsTaskOutService
+ {
+ private readonly Repository _rep;
+
+ ///
+ /// 获取WMS出库记录
+ ///
+ ///
+ ///
+ public List GetWmsTaskOutList()
+ {
+ try
+ {
+ return _rep.GetList();;
+ }
+ catch (Exception e)
+ {
+ throw new ArgumentException($"获取料仓物料对应信息异常:{e.Message}");
+ }
+ }
+
+ ///
+ /// 通过标签唯一编码获取出库记录,获取物料信息
+ ///
+ ///
+ ///
+ ///
+ public WmsTaskOut GetWmsTaskOutBySerialNum(string SerialNum)
+ {
+ try
+ {
+ return _rep.GetFirst(x=>x.SerialNum == SerialNum);
+ }
+ catch (Exception e)
+ {
+ throw new ArgumentException($"获取料仓物料对应信息异常:{e.Message}");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/SlnMesnac/appsettings.json b/SlnMesnac/appsettings.json
index b8cf08b..a7560fb 100644
--- a/SlnMesnac/appsettings.json
+++ b/SlnMesnac/appsettings.json
@@ -18,7 +18,7 @@
{
"configId": "wms",
"dbType": 1,
- "connStr": "server=58.63.214.27,23313;uid=dkmes;pwd=Duken123;database=mesnac_MCS_ShareDB"
+ "connStr": "server=58.63.214.27,23314;uid=dk_mes;pwd=dk_mes;database=gzdk_interaction_mes"
},
{
"configId": "mes",