1
huanghongfeng
2024-11-19 a3dfe45b801f14a574caf27effaed58f1dc3a763
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/RepositoryBase.cs
@@ -866,6 +866,8 @@
        public bool DeleteAndMoveIntoHty(TEntity entity, OperateType operateType)
        {
            try
            {
            Type type = entity.GetType();
            Assembly assembly = type.Assembly;
            Type? htyType = assembly.GetType(type.FullName + "_Hty");
@@ -906,6 +908,12 @@
                    _db.InsertableByObject(obj).AS(type.Name + "_Hty").ExecuteCommand();
                }
            }
            }
            catch (Exception ex)
            {
                throw;
            }
            return DeleteData(entity);
        }