|
|
@@ -25,7 +25,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement |
|
|
|
/// <summary> |
|
|
|
/// <param name="queryJson">查询参数</param> |
|
|
|
/// <returns></returns> |
|
|
|
public IEnumerable<MP_ManageMentPlanEntity> GetPageList(Pagination pagination, string queryJson,int MPType=1) |
|
|
|
public IEnumerable<MP_ManageMentPlanEntity> GetPageList(Pagination pagination, string queryJson, int MPType = 1) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
@@ -85,12 +85,12 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement |
|
|
|
} |
|
|
|
if (!queryParam["MPAcademicYearNo"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("MPAcademicYearNo",queryParam["MPAcademicYearNo"].ToString(), DbType.String); |
|
|
|
dp.Add("MPAcademicYearNo", queryParam["MPAcademicYearNo"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.MPAcademicYearNo = @MPAcademicYearNo "); |
|
|
|
} |
|
|
|
if (!queryParam["MPSemester"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("MPSemester",queryParam["MPSemester"].ToString(), DbType.String); |
|
|
|
dp.Add("MPSemester", queryParam["MPSemester"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.MPSemester = @MPSemester "); |
|
|
|
} |
|
|
|
if (!queryParam["MPDepartment"].IsEmpty()) |
|
|
@@ -108,7 +108,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement |
|
|
|
dp.Add("MPUploader", "%" + queryParam["MPUploader"].ToString() + "%", DbType.String); |
|
|
|
strSql.Append(" AND t.MPUploader Like @MPUploader "); |
|
|
|
} |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<MP_ManageMentPlanEntity>(strSql.ToString(),dp, pagination); |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<MP_ManageMentPlanEntity>(strSql.ToString(), dp, pagination); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
@@ -160,7 +160,12 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
this.BaseRepository("CollegeMIS").Delete<MP_ManageMentPlanEntity>(t=>t.MPId == keyValue); |
|
|
|
//多个删除 |
|
|
|
var keyValueArr = keyValue.Split(','); |
|
|
|
foreach (var item in keyValueArr) |
|
|
|
{ |
|
|
|
this.BaseRepository("CollegeMIS").Delete<MP_ManageMentPlanEntity>(t => t.MPId == keyValue); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|