|
@ -1,4 +1,5 @@ |
|
|
using Pingchuan.BeijingSafeguard.DAL; |
|
|
using PetaPoco; |
|
|
|
|
|
using Pingchuan.BeijingSafeguard.DAL; |
|
|
using Pingchuan.BeijingSafeguard.Model; |
|
|
using Pingchuan.BeijingSafeguard.Model; |
|
|
|
|
|
|
|
|
namespace Pingchuan.BeijingSafeguard.BLL |
|
|
namespace Pingchuan.BeijingSafeguard.BLL |
|
@ -13,6 +14,26 @@ namespace Pingchuan.BeijingSafeguard.BLL |
|
|
public static User GetUserIdByRealName(string realName) |
|
|
public static User GetUserIdByRealName(string realName) |
|
|
{ |
|
|
{ |
|
|
return UserDAL.Get(realName); |
|
|
return UserDAL.Get(realName); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static int Add(User user) |
|
|
|
|
|
{ |
|
|
|
|
|
return UserDAL.Add(user); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static int Edit(User user) |
|
|
|
|
|
{ |
|
|
|
|
|
return UserDAL.Edit(user); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static int Delete(int id) |
|
|
|
|
|
{ |
|
|
|
|
|
return UserDAL.Delete(id); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Page<User> Query(int pageIndex, int pageSize) |
|
|
|
|
|
{ |
|
|
|
|
|
return UserDAL.Query(pageIndex, pageSize); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |