服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-07-16 415d9d76d0f73f804c7ac9e51591bd15c7d84517
Tiger.Business.WMS/Transaction/OutWorkOrder.cs
@@ -240,7 +240,7 @@
            {
                if (!input.Code.IsNullOrEmpty())
                {
                    Biz.Db.Deleteable<WMS_ITEM_POOL>().Where(q => CurPoolList.Select(q => q.SN).Contains(q.SN)).ExecuteCommand();
                    Biz.Db.Deleteable<WMS_ITEM_POOL>().Where(q => q.TRANS_CODE == req.BILLCODE).ExecuteCommand();
                    //如果上一次推荐有数据,则先灭掉亮的灯
                    if (Suggests.Any())
                    {
@@ -297,16 +297,7 @@
                    Suggests.RemoveAll(q => q.poolItem.IsNullOrEmpty());
                    //保存物料池到数据库
                    var db = Biz.Db;
                    var dbTran = db.UseTran(() =>
                    {
                        db.Deleteable<WMS_ITEM_POOL>().Where(q => q.TRANS_CODE == req.BILLCODE).ExecuteCommand();
                        db.Insertable(CurPoolList).ExecuteCommand();
                    });
                    if (!dbTran.IsSuccess)
                    {
                        throw dbTran.ErrorException;
                    }
                    Biz.Db.Insertable(CurPoolList).ExecuteCommand();
                    action = await LightAll(new() { AuthOption = input.AuthOption, ReqType = ReqType.IsWhole, Color = LedColor.Blue,ItemCode = input.Code });
                }
            }