|
|
@@ -43,7 +43,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
var dp = new DynamicParameters(new { }); |
|
|
|
if (!queryParam["CPARENT"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("CPARENT",queryParam["CPARENT"].ToString(), DbType.String); |
|
|
|
dp.Add("CPARENT", queryParam["CPARENT"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.CPARENT = @CPARENT "); |
|
|
|
} |
|
|
|
if (!queryParam["CNAME"].IsEmpty()) |
|
|
@@ -51,7 +51,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
dp.Add("CNAME", "%" + queryParam["CNAME"].ToString() + "%", DbType.String); |
|
|
|
strSql.Append(" AND t.CNAME Like @CNAME "); |
|
|
|
} |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<DIC_CITYEntity>(strSql.ToString(),dp, pagination); |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<DIC_CITYEntity>(strSql.ToString(), dp, pagination); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
@@ -103,7 +103,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
this.BaseRepository("CollegeMIS").Delete<DIC_CITYEntity>(t=>t.CID == keyValue); |
|
|
|
this.BaseRepository("CollegeMIS").Delete<DIC_CITYEntity>(t => t.CID == keyValue); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
@@ -155,7 +155,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
|
|
|
|
public IEnumerable<DIC_CITYEntity> GetListByProvinceCode(string provinceCode) |
|
|
|
{ |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<DIC_CITYEntity>(m=>m.CPARENT==provinceCode); |
|
|
|
return this.BaseRepository("CollegeMIS").FindList<DIC_CITYEntity>(m => m.CPARENT == provinceCode); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 获取DIC_PROVINCE表实体数据 |
|
|
|
/// <param name="keyValue">主键</param> |
|
|
|
/// <summary> |
|
|
|
/// <returns></returns> |
|
|
|
public DIC_CITYEntity GetDIC_CITYEntityByCode(string keyValue) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
return this.BaseRepository("CollegeMIS").FindEntity<DIC_CITYEntity>(m => m.CCODE == keyValue); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is ExceptionEx) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
throw ExceptionEx.ThrowServiceException(ex); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |