数据大屏优化
This commit is contained in:
@@ -82,7 +82,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
/// <param name="userId">用户Id</param>
|
||||
/// <returns>用户信息</returns>
|
||||
public static void UpdateLastUserInfo(string userId, string LastMenuType, bool LastIsOffice, string LastProjectId)
|
||||
public static void UpdateLastUserInfo(string userId, string LastMenuType, bool LastIsOffice, string LastProjectId, string LastUnitId)
|
||||
{
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
@@ -92,7 +92,15 @@ namespace BLL
|
||||
uU.LastMenuType = LastMenuType;
|
||||
uU.LastIsOffice = LastIsOffice;
|
||||
uU.LastMenuType = LastMenuType;
|
||||
uU.LastProjectId = LastProjectId;
|
||||
if (!string.IsNullOrWhiteSpace(LastProjectId))
|
||||
{
|
||||
uU.LastProjectId = LastProjectId;
|
||||
uU.LoginProjectId = LastProjectId;
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(LastUnitId))
|
||||
{
|
||||
uU.LastUnitId = LastUnitId;
|
||||
}
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user