111
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<ProjectView>ProjectFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -14,6 +14,27 @@ namespace BLL
|
||||
|
||||
public static class Sys_UserService
|
||||
{
|
||||
|
||||
public static (string, string) GetSingtrueImageUrl(string userId)
|
||||
{
|
||||
var result = (from a in Funs.DB.Sys_User
|
||||
join
|
||||
b in Funs.DB.Base_Unit on a.UnitId equals b.UnitId
|
||||
join c in Funs.DB.Base_UnitType on b.UnitTypeId equals c.UnitTypeId
|
||||
where a.UserId == userId
|
||||
select new
|
||||
{
|
||||
a.SigntrueImage,
|
||||
c.UnitTypeName
|
||||
}).FirstOrDefault();
|
||||
|
||||
if (result != null)
|
||||
{
|
||||
return (result.SigntrueImage, result.UnitTypeName);
|
||||
}
|
||||
return (null, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用户登陆方法
|
||||
/// </summary>
|
||||
@@ -216,6 +237,7 @@ namespace BLL
|
||||
newUser.UnitId = user.UnitId;
|
||||
newUser.Depart = user.Depart;
|
||||
newUser.RoleIds = user.RoleIds;
|
||||
newUser.SigntrueImage = user.SigntrueImage;
|
||||
newUser.IsPost = user.IsPost;
|
||||
newUser.Email = user.Email;
|
||||
newUser.EmailPassword = user.EmailPassword;
|
||||
@@ -242,6 +264,7 @@ namespace BLL
|
||||
newUser.Depart = user.Depart;
|
||||
newUser.RoleIds = user.RoleIds;
|
||||
newUser.IsPost = user.IsPost;
|
||||
newUser.SigntrueImage = user.SigntrueImage;
|
||||
newUser.Email = user.Email;
|
||||
if (!String.IsNullOrEmpty(user.EmailPassword))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user