危险源管理模块接入真实数据库:新增危大/超危工程、风险控制清单、安全验收、安全巡检、临时用电管理(含前端页面、BLL/API服务、WebAPI控制器、Model项、SQL脚本与接口文档)
排除 CreateModel.bat(含明文sa密码与本地服务器名,未入库)
This commit is contained in:
@@ -31,7 +31,9 @@ namespace WebAPI.Controllers
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var sysUser = db.Sys_User.FirstOrDefault(x => (x.Account == userInfo.Account || x.Telephone == userInfo.Telephone) && x.IsPost == true);
|
||||
string account = userInfo.Account;
|
||||
string telephone = userInfo.Telephone;
|
||||
var sysUser = db.Sys_User.FirstOrDefault(x => (x.Account == account || x.Telephone == telephone) && x.IsPost == true);
|
||||
if (sysUser != null)
|
||||
{
|
||||
if (sysUser.LockTime.HasValue && sysUser.LockTime.Value > DateTime.Now)
|
||||
|
||||
Reference in New Issue
Block a user