using Infrastructure.Attribute;
using SqlSugar;
using System.Collections.Generic;
using ARW.Model.System;
namespace ARW.Repository.System
{
///
/// 用户岗位
///
[AppService(ServiceLifetime = LifeTime.Transient)]
public class SysUserPostRepository : BaseRepository
{
///
/// 获取用户岗位
///
///
///
public List SelectPostsByUserId(long userId)
{
return Context.Queryable((p, up) => new JoinQueryInfos(
JoinType.Left, up.PostId == p.PostId
)).Where((p, up) => up.UserId == userId)
.Select().ToList();
}
}
}