|
@@ -360,6 +360,7 @@ namespace Learun.Application.Organization |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
var strSql = new StringBuilder(); |
|
|
var strSql = new StringBuilder(); |
|
|
|
|
|
var name = this.BaseRepository("CollegeMIS").getDbConnection().Database; |
|
|
strSql.Append(@"SELECT u.F_Account |
|
|
strSql.Append(@"SELECT u.F_Account |
|
|
,u.F_RealName |
|
|
,u.F_RealName |
|
|
,CASE WHEN u.F_Gender=1 THEN '男' ELSE '女' END AS F_Gender |
|
|
,CASE WHEN u.F_Gender=1 THEN '男' ELSE '女' END AS F_Gender |
|
@@ -367,14 +368,13 @@ namespace Learun.Application.Organization |
|
|
,u.F_Mobile |
|
|
,u.F_Mobile |
|
|
,u.F_Telephone |
|
|
,u.F_Telephone |
|
|
,u.F_WeChat |
|
|
,u.F_WeChat |
|
|
,o.F_FullName AS F_Company |
|
|
|
|
|
|
|
|
,o.deptname AS F_Company |
|
|
,u.F_DepartmentId AS F_Department |
|
|
,u.F_DepartmentId AS F_Department |
|
|
,u.F_Description |
|
|
,u.F_Description |
|
|
,u.F_CreateDate |
|
|
,u.F_CreateDate |
|
|
,u.F_CreateUserName |
|
|
,u.F_CreateUserName |
|
|
FROM LR_Base_User u |
|
|
FROM LR_Base_User u |
|
|
INNER JOIN LR_Base_Company o ON u.F_CompanyId=o.F_CompanyId |
|
|
|
|
|
WHERE u.F_DeleteMark = 0 and u.F_Description = '学生'"); |
|
|
|
|
|
|
|
|
INNER JOIN " + name + ".dbo.CDDEPT o ON u.F_DepartmentId=o.DeptNo WHERE u.F_DeleteMark = 0 and u.F_Description = '学生'"); |
|
|
return this.BaseRepository().FindTable(strSql.ToString()); |
|
|
return this.BaseRepository().FindTable(strSql.ToString()); |
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
|