From bad7d319665205633b0f354c8f7a0c3df19aa06b Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期一, 27 十月 2025 16:28:55 +0800
Subject: [PATCH] 添加通知信息处理方法
---
新建文件夹/WIDESEA_WMSServer/ClassLibrary1/IMessageInfoService.cs | 1
新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/MessageInfoController.cs | 6 +
新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/SupplyTaskHtyController.cs | 27 ++++++
新建文件夹/WIDESEA_WMSServer/ClassLibrary2/SupplyTaskHtyService.cs | 36 +++++++++
新建文件夹/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_SupplyTask.cs | 16 ++-
新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/InventoryInfoController.cs | 32 +++++++
新建文件夹/WIDESEA_WMSServer/ClassLibrary1/IInventoryInfoService.cs | 7 +
新建文件夹/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_SupplyTask_Hty.cs | 6
新建文件夹/WIDESEA_WMSServer/ClassLibrary2/MessageInfoService.cs | 20 +++++
新建文件夹/WIDESEA_WMSServer/ClassLibrary2/SupplyTaskService.cs | 1
新建文件夹/WIDESEA_WMSServer/ClassLibrary1/ISupplyTaskHtyService.cs | 7 +
新建文件夹/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/Business.cs | 4
新建文件夹/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs | 51 ++++++++++++
13 files changed, 195 insertions(+), 19 deletions(-)
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventoryInfoService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventoryInfoService.cs"
index 2f04733..7a82ced 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventoryInfoService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventoryInfoService.cs"
@@ -3,6 +3,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using WIDESEA_Core;
using WIDESEA_Core.BaseRepository;
using WIDESEA_Core.BaseServices;
using WIDESEA_DTO.SquareCabin;
@@ -14,6 +15,10 @@
public interface IInventoryInfoService : IService<Dt_InventoryInfo>
{
IRepository<Dt_InventoryInfo> Repository { get; }
-
+ /// <summary>
+ /// 鑾峰彇搴撳瓨淇℃伅
+ /// </summary>
+ /// <returns></returns>
+ WebResponseContent GetInventory();
}
}
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IMessageInfoService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IMessageInfoService.cs"
index 48ec75f..00555a2 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IMessageInfoService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IMessageInfoService.cs"
@@ -24,5 +24,6 @@
/// <param name="messageRemark"></param>
/// <returns></returns>
WebResponseContent AddMessageInfo(MessageGroupByEnum groupByEnum, string messageName, string messageInfo, MessageStatusEnum statusEnum = MessageStatusEnum.Undisposed, string messageRemark = "");
+ WebResponseContent DeleteAndIntoHty(int[] keys);
}
}
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/ISupplyTaskHtyService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/ISupplyTaskHtyService.cs"
index 48ac762..cedd4d5 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/ISupplyTaskHtyService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/ISupplyTaskHtyService.cs"
@@ -3,6 +3,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using WIDESEA_Core;
using WIDESEA_Core.BaseServices;
using WIDESEA_Model.Models;
@@ -10,6 +11,10 @@
{
public interface ISupplyTaskHtyService : IService<Dt_SupplyTask_Hty>
{
-
+ /// <summary>
+ /// 鏁板瓧瀛敓鑾峰彇鍑哄叆搴撲换鍔″巻鍙�
+ /// </summary>
+ /// <returns></returns>
+ WebResponseContent GetInOutTasks();
}
}
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs"
index dc66a17..6e7f6a1 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs"
@@ -6,6 +6,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using WIDESEA_Common.WareHouseEnum;
using WIDESEA_Core;
using WIDESEA_Core.BaseRepository;
using WIDESEA_Core.BaseServices;
@@ -23,7 +24,53 @@
{
}
public IRepository<Dt_InventoryInfo> Repository => BaseDal;
-
-
+ /// <summary>
+ /// 鑾峰彇搴撳瓨
+ /// </summary>
+ /// <returns></returns>
+ public WebResponseContent GetInventory()
+ {
+ WebResponseContent content = new WebResponseContent();
+ try
+ {
+ List<object> lists = new List<object>();
+ #region 鍐峰喕搴�
+ string WareCodeLD = WarehouseEnum.鍐峰喕搴�.ObjToInt().ToString("000");
+ List<Dt_InventoryInfo> inventoryInfosLD = BaseDal.QueryData(x => x.WarehouseCode == WareCodeLD);
+ object LDQty = new
+ {
+ name = WarehouseEnum.鍐峰喕搴�.ObjToString(),
+ count = inventoryInfosLD.Sum(x => x.StockQuantity).ObjToInt()
+ };
+ lists.Add(LDQty);
+ #endregion
+ #region 楹荤簿搴�
+ string WareCodeMJ = WarehouseEnum.楹荤簿搴�.ObjToInt().ToString("000");
+ List<Dt_InventoryInfo> inventoryInfosMJ = BaseDal.QueryData(x => x.WarehouseCode == WareCodeMJ);
+ object MJQty = new
+ {
+ name = WarehouseEnum.楹荤簿搴�.ObjToString(),
+ count = inventoryInfosMJ.Sum(x => x.StockQuantity).ObjToInt()
+ };
+ lists.Add(MJQty);
+ #endregion
+ #region 澶т欢搴�
+ string WareCodeDJ = WarehouseEnum.澶т欢搴�.ObjToInt().ToString("000");
+ List<Dt_InventoryInfo> inventoryInfosDJ = BaseDal.QueryData(x => x.WarehouseCode == WareCodeDJ);
+ object DJQty = new
+ {
+ name = WarehouseEnum.澶т欢搴�.ObjToString(),
+ count = inventoryInfosDJ.Sum(x => x.StockQuantity).ObjToInt()
+ };
+ lists.Add(DJQty);
+ #endregion
+ content.OK(data: lists);
+ }
+ catch (Exception ex)
+ {
+ content.Error(ex.Message);
+ }
+ return content;
+ }
}
}
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/MessageInfoService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/MessageInfoService.cs"
index 0eafba3..2af9277 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/MessageInfoService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/MessageInfoService.cs"
@@ -8,6 +8,7 @@
using WIDESEA_Core;
using WIDESEA_Core.BaseRepository;
using WIDESEA_Core.BaseServices;
+using WIDESEA_Core.Enums;
using WIDESEA_IWMsInfoServices;
using WIDESEA_Model.Models;
@@ -67,5 +68,24 @@
}
return content;
}
+ public WebResponseContent DeleteAndIntoHty(int[] keys)
+ {
+ WebResponseContent content = new WebResponseContent();
+ try
+ {
+ List<Dt_MessageInfo> messageInfos = BaseDal.QueryData(x => keys.Contains(x.Id));
+ foreach (var item in messageInfos)
+ {
+ item.MessageStatus = MessageStatusEnum.Processed.ObjToInt();
+ item.Modifier = App.User.UserName;
+ }
+ BaseDal.DeleteAndMoveIntoHty(messageInfos, OperateTypeEnum.浜哄伐瀹屾垚);
+ }
+ catch (Exception ex)
+ {
+ content.Error(ex.Message);
+ }
+ return content;
+ }
}
}
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/SupplyTaskHtyService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/SupplyTaskHtyService.cs"
index 57bf7bf..d2dc07d 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/SupplyTaskHtyService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/SupplyTaskHtyService.cs"
@@ -3,8 +3,11 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using WIDESEA_Common.TaskEnum;
+using WIDESEA_Core;
using WIDESEA_Core.BaseRepository;
using WIDESEA_Core.BaseServices;
+using WIDESEA_Core.Helper;
using WIDESEA_IWMsInfoServices;
using WIDESEA_Model.Models;
@@ -15,5 +18,38 @@
public SupplyTaskHtyService(IRepository<Dt_SupplyTask_Hty> BaseDal) : base(BaseDal)
{
}
+ public WebResponseContent GetInOutTasks()
+ {
+ WebResponseContent content = new WebResponseContent();
+ try
+ {
+ List<object> list = new List<object>();
+ DateTime dateTime = DateTime.Now.AddDays(-6).Date;
+ List<Dt_SupplyTask_Hty> supplyTask_Hties = BaseDal.QueryData(x => x.InsertTime >= dateTime);
+ for (int i = 6; i >= 0; i--)
+ {
+ DateTime dateTime1 = DateTime.Now.AddDays(-i).Date;
+ DateTime dateTime2 = DateTime.Now.AddDays(-i + 1).Date;
+ var supplyTasks = supplyTask_Hties.Where(x => x.InsertTime >= dateTime1 && x.InsertTime < dateTime2).ToList();
+ var inQty = Convert.ToInt32(supplyTasks.Where(x => x.TaskType == TaskTypeEnum.In.ObjToInt() || x.TaskType == TaskTypeEnum.OutReturn.ObjToInt()).Sum(x => x.StockQuantity));
+ var outQty = Convert.ToInt32(supplyTasks.Where(x => x.TaskType == TaskTypeEnum.Out.ObjToInt() || x.TaskType == TaskTypeEnum.InReturn.ObjToInt()).Sum(x => x.StockQuantity));
+ list.Add(new
+ {
+ date = dateTime1.ToString("yyyy-MM-dd"),
+ @in = inQty,
+ @out = outQty,
+ });
+ }
+ content.OK(data: new
+ {
+ daily = list
+ });
+ }
+ catch (Exception ex)
+ {
+ content.Error(ex.Message);
+ }
+ return content;
+ }
}
}
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/SupplyTaskService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/SupplyTaskService.cs"
index daef945..6fa4b64 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/SupplyTaskService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/SupplyTaskService.cs"
@@ -3,6 +3,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using WIDESEA_Core;
using WIDESEA_Core.BaseRepository;
using WIDESEA_Core.BaseServices;
using WIDESEA_IWMsInfoServices;
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_SupplyTask.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_SupplyTask.cs"
index 1e23b1a..06ba197 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_SupplyTask.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_SupplyTask.cs"
@@ -22,7 +22,7 @@
/// 涓婚敭
/// </summary>
[ImporterHeader(Name = "涓婚敭")]
- [ExporterHeader(DisplayName = "涓婚敭")]
+ [ExporterHeader(DisplayName = "涓婚敭", IsIgnore = true)]
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "涓婚敭")]
public int TaskId { get; set; }
@@ -30,7 +30,7 @@
/// 浠诲姟鍙凤紱璁㈠崟璇︽儏涓婚敭锛欼D
/// </summary>
[ImporterHeader(Name = "浠诲姟鍙�")]
- [ExporterHeader(DisplayName = "浠诲姟鍙�")]
+ [ExporterHeader(DisplayName = "浠诲姟鍙�", IsIgnore = true)]
[SugarColumn(IsNullable = false, ColumnDescription = "浠诲姟鍙�"), Sequence(nameof(SequenceEnum.SeqTaskNum), 100000000)]
public int TaskNum { get; set; }
@@ -38,7 +38,7 @@
/// 鎵樼洏缂栧彿
/// </summary>
[ImporterHeader(Name = "鎵樼洏缂栧彿")]
- [ExporterHeader(DisplayName = "鎵樼洏缂栧彿")]
+ [ExporterHeader(DisplayName = "鎵樼洏缂栧彿", IsIgnore = true)]
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "鎵樼洏缂栧彿")]
public string PalletCode { get; set; }
@@ -78,7 +78,7 @@
/// 浠诲姟绫诲瀷
/// </summary>
[ImporterHeader(Name = "浠诲姟绫诲瀷")]
- [ExporterHeader(DisplayName = "浠诲姟绫诲瀷")]
+ [ExporterHeader(DisplayName = "浠诲姟绫诲瀷", IsIgnore = true)]
[SugarColumn(IsNullable = false, ColumnDescription = "浠诲姟绫诲瀷")]
public int TaskType { get; set; }
@@ -86,13 +86,15 @@
/// 浠诲姟鐘舵��
/// </summary>
[ImporterHeader(Name = "浠诲姟鐘舵��")]
- [ExporterHeader(DisplayName = "浠诲姟鐘舵��")]
+ [ExporterHeader(DisplayName = "浠诲姟鐘舵��", IsIgnore = true)]
[SugarColumn(IsNullable = false, ColumnDescription = "浠诲姟鐘舵��")]
public int TaskStatus { get; set; }
/// <summary>
/// 搴撴埧缂栧彿
/// </summary>
+ [ImporterHeader(Name = "搴撴埧缂栧彿")]
+ [ExporterHeader(DisplayName = "搴撴埧缂栧彿", IsIgnore = true)]
[SugarColumn(IsNullable = false, Length = 30, ColumnDescription = "搴撴埧缂栧彿")]
public string WarehouseCode { get; set; }
@@ -108,7 +110,7 @@
/// 搴撳瓨鏁�,浠诲姟鏁伴噺
/// </summary>
[ImporterHeader(Name = "搴撳瓨鏁�")]
- [ExporterHeader(DisplayName = "搴撳瓨鏁�")]
+ [ExporterHeader(DisplayName = "浠诲姟鏁�")]
[SugarColumn(IsNullable = false, ColumnDescription = "搴撳瓨鏁�")]
public decimal StockQuantity { get; set; }
@@ -132,7 +134,7 @@
/// 浠诲姟涓嬪彂鏃堕棿
/// </summary>
[ImporterHeader(Name = "浠诲姟涓嬪彂鏃堕棿")]
- [ExporterHeader(DisplayName = "浠诲姟涓嬪彂鏃堕棿")]
+ [ExporterHeader(DisplayName = "鍒涘缓鏃堕棿")]
[SugarColumn(IsNullable = true, ColumnDescription = "浠诲姟涓嬪彂鏃堕棿")]
public DateTime? Dispatchertime { get; set; }
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_SupplyTask_Hty.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_SupplyTask_Hty.cs"
index 4201aa7..b8af105 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_SupplyTask_Hty.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_SupplyTask_Hty.cs"
@@ -9,7 +9,7 @@
using WIDESEA_Core.Attributes;
using WIDESEA_Core.DB.Models;
-namespace WIDESEA_Model.Models
+namespace WIDESEA_Model.Models
{
/// <summary>
/// 浠诲姟淇℃伅鍘嗗彶
@@ -21,7 +21,7 @@
/// 鍘熻〃涓婚敭
/// </summary>
[ImporterHeader(Name = "鍘熻〃涓婚敭")]
- [ExporterHeader(DisplayName = "鍘熻〃涓婚敭")]
+ [ExporterHeader(DisplayName = "鍘熻〃涓婚敭", IsIgnore = true)]
[SugarColumn(IsNullable = false, DefaultValue = "0", ColumnDescription = "鍘熻〃涓婚敭")]
public int SourceId { get; set; }
@@ -37,7 +37,7 @@
/// 绉诲叆鍘嗗彶鏃堕棿
/// </summary>
[ImporterHeader(Name = "绉诲叆鍘嗗彶鏃堕棿")]
- [ExporterHeader(DisplayName = "绉诲叆鍘嗗彶鏃堕棿")]
+ [ExporterHeader(DisplayName = "瀹屾垚鏃堕棿")]
[SugarColumn(IsNullable = false, ColumnDescription = "绉诲叆鍘嗗彶鏃堕棿")]
public DateTime InsertTime { get; set; }
}
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/Business.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/Business.cs"
index 32b12da..ce1622b 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/Business.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/Business.cs"
@@ -152,7 +152,7 @@
_unitOfWorkManage.RollbackTran();
_messageInfoService.AddMessageInfo(messageGroupBy, name, ex.Message, messageStatus);
SendErrorToUpstream(1, "", ex.Message, "");
- return responseContent.Error("鍚屾澶辫触: " + ex.Message);
+ //return responseContent.Error("鍚屾澶辫触: " + ex.Message);
}
};
return responseContent.OK("鍚屾鍏ュ簱鍗曟垚鍔�");
@@ -279,7 +279,7 @@
_unitOfWorkManage.RollbackTran();
_messageInfoService.AddMessageInfo(messageGroupBy, name, ex.Message, messageStatus);
SendErrorToUpstream(3, "", ex.Message, "");
- return responseContent.Error("鍚屾澶辫触: " + ex.Message);
+ //return responseContent.Error("鍚屾澶辫触: " + ex.Message);
}
}
return responseContent.OK($"鍚屾鍑哄簱鍗曟垚鍔燂紝鍏眥_DeliveryOrders.Count}鏉�");
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/InventoryInfoController.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/InventoryInfoController.cs"
index 80c5ef8..bb3ba56 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/InventoryInfoController.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/InventoryInfoController.cs"
@@ -1,5 +1,7 @@
-锘縰sing Microsoft.AspNetCore.Http;
+锘縰sing Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
+using OfficeOpenXml.FormulaParsing.Excel.Functions.Text;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_IWMsInfoServices;
@@ -15,7 +17,33 @@
public InventoryInfoController(IInventoryInfoService service) : base(service)
{
}
+ /// <summary>
+ /// 鏁板瓧瀛敓鑾峰彇搴撳瓨淇℃伅
+ /// </summary>
+ /// <param name="keys"></param>
+ /// <returns></returns>
+ [HttpPost, HttpGet, Route("GetInventory"), AllowAnonymous]
+ public object GetInventory()
+ {
+ WebResponseContent content = Service.GetInventory();
+ if (!content.Status)
+ {
+ return new
+ {
+ code = "404",
+ note = content.Message
+ };
+ }
+ else
+ {
+ return new
+ {
+ code = "000",
+ note = "鎴愬姛",
+ date = content.Data
+ };
+ }
+ }
-
}
}
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/MessageInfoController.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/MessageInfoController.cs"
index 1812b00..c32eaf0 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/MessageInfoController.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/MessageInfoController.cs"
@@ -1,5 +1,6 @@
锘縰sing Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
+using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_IWMsInfoServices;
using WIDESEA_Model.Models;
@@ -13,5 +14,10 @@
public MessageInfoController(IMessageInfoService service) : base(service)
{
}
+ [HttpPost, HttpGet, Route("DeleteAndIntoHty")]
+ public WebResponseContent DeleteAndIntoHty([FromBody] int[] keys)
+ {
+ return Service.DeleteAndIntoHty(keys);
+ }
}
}
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/SupplyTaskHtyController.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/SupplyTaskHtyController.cs"
index ddf61a5..e70fbfb 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/SupplyTaskHtyController.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/SupplyTaskHtyController.cs"
@@ -1,5 +1,7 @@
-锘縰sing Microsoft.AspNetCore.Http;
+锘縰sing Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
+using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_IWMsInfoServices;
using WIDESEA_Model.Models;
@@ -13,5 +15,28 @@
public SupplyTaskHtyController(ISupplyTaskHtyService service) : base(service)
{
}
+ [HttpPost, HttpGet, Route("GetInOutTasks"), AllowAnonymous]
+ public object GetInOutTasks()
+ {
+ WebResponseContent content = Service.GetInOutTasks();
+ if (!content.Status)
+ {
+ return new
+ {
+ code = "404",
+ note = content.Message
+ };
+ }
+ else
+ {
+ return new
+ {
+ code = "000",
+ note = "鎴愬姛",
+ date = content.Data
+ };
+ }
+ }
+
}
}
--
Gitblit v1.9.3