迁移7项目签名邮件等等功能
This commit is contained in:
@@ -14,6 +14,30 @@ 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
|
||||
into bb
|
||||
from bu in bb.DefaultIfEmpty()
|
||||
join c in Funs.DB.Base_UnitType on bu.UnitTypeId equals c.UnitTypeId
|
||||
into dd
|
||||
from ss in dd.DefaultIfEmpty()
|
||||
where a.UserId == userId
|
||||
select new
|
||||
{
|
||||
a.SigntrueImage,
|
||||
ss.UnitTypeName
|
||||
}).FirstOrDefault();
|
||||
|
||||
if (result != null)
|
||||
{
|
||||
return (result.SigntrueImage, result.UnitTypeName);
|
||||
}
|
||||
return (null, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用户登陆方法
|
||||
/// </summary>
|
||||
@@ -220,6 +244,7 @@ namespace BLL
|
||||
newUser.Email = user.Email;
|
||||
newUser.EmailPassword = user.EmailPassword;
|
||||
newUser.AllowLoginSystem = user.AllowLoginSystem;
|
||||
newUser.SigntrueImage = user.SigntrueImage;
|
||||
|
||||
db.Sys_User.InsertOnSubmit(newUser);
|
||||
db.SubmitChanges();
|
||||
@@ -243,6 +268,7 @@ namespace BLL
|
||||
newUser.RoleIds = user.RoleIds;
|
||||
newUser.IsPost = user.IsPost;
|
||||
newUser.Email = user.Email;
|
||||
newUser.SigntrueImage = user.SigntrueImage;
|
||||
if (!String.IsNullOrEmpty(user.EmailPassword))
|
||||
{
|
||||
newUser.EmailPassword = user.EmailPassword;
|
||||
|
||||
Reference in New Issue
Block a user