|
|
@@ -360,6 +360,7 @@ namespace Learun.Application.Organization |
|
|
|
try |
|
|
|
{ |
|
|
|
var strSql = new StringBuilder(); |
|
|
|
var name = this.BaseRepository("CollegeMIS").getDbConnection().Database; |
|
|
|
strSql.Append(@"SELECT u.F_Account |
|
|
|
,u.F_RealName |
|
|
|
,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_Telephone |
|
|
|
,u.F_WeChat |
|
|
|
,o.F_FullName AS F_Company |
|
|
|
,o.deptname AS F_Company |
|
|
|
,u.F_DepartmentId AS F_Department |
|
|
|
,u.F_Description |
|
|
|
,u.F_CreateDate |
|
|
|
,u.F_CreateUserName |
|
|
|
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()); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|