服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-10-24 8ef454eb0bbd2e74eb66c11fd5aa1438348ed75c
Tiger.Business.WMS/Transaction/ProductionMaterialReq.cs
@@ -120,6 +120,7 @@
                    return action;
                }
                Biz.Db.Deleteable<WMS_ITEM_POOL>().Where(q => q.TRANS_CODE == req.BILLCODE).ExecuteCommand();
                //如果上一次推荐有数据,则先灭掉亮的灯
                if (Suggests.Any())
                {
@@ -265,18 +266,8 @@
                }
                //保存物料池到数据库
                var db = Biz.Db;
                var dbTran = db.UseTran(() =>
                {
                    db.Deleteable<WMS_ITEM_POOL>().Where(x => x.TRANS_NO == req.BILLCODE).ExecuteCommand();
                    db.Insertable(CurPoolList).ExecuteCommand();
                });
                if (!dbTran.IsSuccess)
                {
                    Logger.Default.Fatal(dbTran.ErrorException, "Database transaction save exception");
                    this.Close(!dbTran.IsSuccess);
                    throw dbTran.ErrorException;
                }
                Biz.Db.Insertable(CurPoolList).ExecuteCommand();
                action = await LightAll(new() { AuthOption = input.AuthOption, ReqType = CurReqType, Color = LedColor.Blue });
            }
            catch (Exception ex)