🔥移除仓储不常用方法

This commit is contained in:
不做码农
2023-08-15 09:37:31 +08:00
parent 31cf1a82f1
commit ff4e857128
6 changed files with 10 additions and 62 deletions

View File

@@ -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>