|
@@ -27,7 +27,7 @@ namespace OASystem.Infrastructure.Repositories.Login
|
|
public async Task<Result> Login(LoginDto loginDto)
|
|
public async Task<Result> Login(LoginDto loginDto)
|
|
{
|
|
{
|
|
Result result = new Result() { Code = -2 };
|
|
Result result = new Result() { Code = -2 };
|
|
- string SQLWhere = string.Format("Where Number='{0}'", loginDto.Number);
|
|
|
|
|
|
+ string SQLWhere = string.Format("Where Number='{0}' And Isdel = 0", loginDto.Number);
|
|
string sql = string.Format("Select * From Sys_Users With(NoLock) {0}", SQLWhere);
|
|
string sql = string.Format("Select * From Sys_Users With(NoLock) {0}", SQLWhere);
|
|
Sys_Users _entity = await GetSingleInfoBySqlWithNolockAsync(sql);
|
|
Sys_Users _entity = await GetSingleInfoBySqlWithNolockAsync(sql);
|
|
|
|
|
|
@@ -37,7 +37,7 @@ namespace OASystem.Infrastructure.Repositories.Login
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
- if (_entity.Password != loginDto.Password)
|
|
|
|
|
|
+ if (!_entity.Password.Equals(loginDto.Password))
|
|
{
|
|
{
|
|
result.Msg = "账户或密码错误!";
|
|
result.Msg = "账户或密码错误!";
|
|
return result;
|
|
return result;
|
|
@@ -132,7 +132,7 @@ namespace OASystem.Infrastructure.Repositories.Login
|
|
Seniority = 0, //工龄默认 0
|
|
Seniority = 0, //工龄默认 0
|
|
Birthday = Convert.ToDateTime(birthDay),
|
|
Birthday = Convert.ToDateTime(birthDay),
|
|
IDCard = registerDto.IdCrad,
|
|
IDCard = registerDto.IdCrad,
|
|
- StartWorkDate = new DateTime(1990, 1, 1), //开始工作时间默认最原始时间
|
|
|
|
|
|
+ StartWorkDate = "1900-01-01 00:00:00.000", //开始工作时间默认最原始时间
|
|
GraduateInstitutions = registerDto.GraduationSchhol,
|
|
GraduateInstitutions = registerDto.GraduationSchhol,
|
|
Professional = registerDto.Major,
|
|
Professional = registerDto.Major,
|
|
Education = registerDto.Education, //学历类型
|
|
Education = registerDto.Education, //学历类型
|