|
|
|
@ -1241,11 +1241,12 @@ public class CommonService : ICommonService
|
|
|
|
|
/// 获取用户字段设置
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="permissionId"></param>
|
|
|
|
|
/// <param name="tagNo">标识序号</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public DataResult<SysFieldSet> GetUserFieldSet(string permissionId)
|
|
|
|
|
public DataResult<SysFieldSet> GetUserFieldSet(string permissionId, int tagNo = 0)
|
|
|
|
|
{
|
|
|
|
|
var info = db.Queryable<SysFieldSet>()
|
|
|
|
|
.Where(x => x.UserId == long.Parse(user.UserId) && x.PermissionId == long.Parse(permissionId)).First();
|
|
|
|
|
.Where(x => x.UserId == long.Parse(user.UserId) && x.PermissionId == long.Parse(permissionId) && x.TagNo == tagNo).First();
|
|
|
|
|
|
|
|
|
|
return DataResult<SysFieldSet>.Success(info);
|
|
|
|
|
}
|
|
|
|
@ -1265,6 +1266,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var entity = new SysFieldSet
|
|
|
|
|
{
|
|
|
|
|
UserId = long.Parse(user.UserId),
|
|
|
|
|
TagNo = req.TagNo,
|
|
|
|
|
PermissionId = req.PermissionId,
|
|
|
|
|
Content = req.Content
|
|
|
|
|
};
|
|
|
|
|