XUEHUA
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -52,6 +52,7 @@ namespace DOAN.Service.PBL
|
||||
/// <returns></returns>
|
||||
public Inventorylog AddInventorylog(Inventorylog model)
|
||||
{
|
||||
model.Id = XUEHUA;
|
||||
return Insertable(model).ExecuteReturnEntity();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user