This commit is contained in:
qianhao.xu
2024-09-23 13:25:25 +08:00
parent e970123827
commit d4fd12fd96
2 changed files with 311 additions and 301 deletions

View File

@@ -17,6 +17,15 @@ namespace DOAN.Repository
/// <typeparam name="T"></typeparam>
public class BaseRepository<T> : SimpleClient<T> where T : class, new()
{
public string XUEHUA
{
get { return SnowFlakeSingle.Instance.NextId().ToString(); }
}
public ITenant itenant = null;//多租户事务
public BaseRepository(ISqlSugarClient context = null) : base(context)
{

View File

@@ -52,6 +52,7 @@ namespace DOAN.Service.PBL
/// <returns></returns>
public Inventorylog AddInventorylog(Inventorylog model)
{
model.Id = XUEHUA;
return Insertable(model).ExecuteReturnEntity();
}