🔥移除仓储不常用方法
This commit is contained in:
@@ -82,7 +82,7 @@ namespace ZR.Service.System
|
||||
LangName = item.LangName,
|
||||
});
|
||||
}
|
||||
var storage = Storageable(langs)
|
||||
var storage = Context.Storageable(langs)
|
||||
.WhereColumns(it => new { it.LangKey, it.LangCode })
|
||||
.ToStorage();
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace ZR.Service.System
|
||||
/// <returns></returns>
|
||||
public (string, object, object) ImportCommonLang(List<CommonLang> list)
|
||||
{
|
||||
var x = Storageable(list)
|
||||
var x = Context.Storageable(list)
|
||||
.WhereColumns(it => new { it.LangKey, it.LangCode })
|
||||
.ToStorage();
|
||||
x.AsInsertable.ExecuteReturnSnowflakeIdList();//插入可插入部分;
|
||||
|
||||
@@ -700,7 +700,7 @@ namespace ZR.Service
|
||||
}
|
||||
//Insert(menuList);
|
||||
|
||||
var x = Storageable(menuList)
|
||||
var x = Context.Storageable(menuList)
|
||||
.SplitInsert(it => !it.Any())
|
||||
.SplitUpdate(it => !it.Any())
|
||||
.WhereColumns(it => new { it.MenuName, it.ParentId })
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Infrastructure.Attribute;
|
||||
using SqlSugar;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using ZR.Model.System;
|
||||
using ZR.Service.System.IService;
|
||||
@@ -20,15 +19,14 @@ namespace ZR.Service.System
|
||||
public void InsertUserPost(SysUser user)
|
||||
{
|
||||
// 新增用户与岗位管理
|
||||
List<SysUserPost> list = new List<SysUserPost>();
|
||||
List<SysUserPost> list = new();
|
||||
foreach (var item in user.PostIds)
|
||||
{
|
||||
list.Add(new SysUserPost() { PostId = item, UserId = user.UserId });
|
||||
}
|
||||
Insert(list);
|
||||
InsertRange(list);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询用户岗位集合
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user