|
|
|
@ -134,6 +134,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
|
#endregion |
|
|
|
|
x.Birthday1 = DateTimeHelper.ConvertToDayString(x.Birthday); |
|
|
|
|
x.WorkYears = x.WorkYears ?? 0; |
|
|
|
|
x.Indate1 = DateTimeHelper.ConvertToDayString(x.Indate); |
|
|
|
|
|
|
|
|
|
if (x.IsPass != null) |
|
|
|
|
x.IsPassLabel = x.IsPass == true ? "通过" : "不通过"; |
|
|
|
@ -4375,7 +4376,7 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 |
|
|
|
|
{ |
|
|
|
|
new JProperty("Count", group.Where(x=>x.Status=="WaitInterview").FirstOrDefault()?.Count??0), |
|
|
|
|
new JProperty("Unit",peopleText), |
|
|
|
|
new JProperty("MenuName","F_ESS_Candidate"), |
|
|
|
|
new JProperty("MenuName","F_ESS_Interview"), |
|
|
|
|
new JProperty("TabKey","WaitInterview"), |
|
|
|
|
}; |
|
|
|
|
item = new JObject |
|
|
|
@ -4400,12 +4401,12 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 |
|
|
|
|
{ |
|
|
|
|
new JProperty("Count", sum), |
|
|
|
|
new JProperty("Unit",peopleText), |
|
|
|
|
new JProperty("MenuName","F_ESS_Candidate"), |
|
|
|
|
new JProperty("MenuName","F_ESS_Interview"), |
|
|
|
|
new JProperty("TabKey","HasInterview"), |
|
|
|
|
}; |
|
|
|
|
item = new JObject |
|
|
|
|
{ |
|
|
|
|
new JProperty("CanMore", 0), |
|
|
|
|
new JProperty("CanMore", 1), |
|
|
|
|
new JProperty("ColNum", 6), |
|
|
|
|
new JProperty("RowNum", 0), |
|
|
|
|
new JProperty("Height", 17.2), |
|
|
|
@ -4429,12 +4430,12 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 |
|
|
|
|
Detail = new JObject { |
|
|
|
|
new JProperty("Count", group1.Where(x=>x.Status=="HasOffer").FirstOrDefault()?.Count??0), |
|
|
|
|
new JProperty("Unit",peopleText), |
|
|
|
|
new JProperty("MenuName","F_ESS_Candidate"), |
|
|
|
|
new JProperty("MenuName","F_ESS_Hire"), |
|
|
|
|
new JProperty("TabKey","HasOffer"), |
|
|
|
|
}; |
|
|
|
|
item = new JObject |
|
|
|
|
{ |
|
|
|
|
new JProperty("CanMore", 0), |
|
|
|
|
new JProperty("CanMore", 1), |
|
|
|
|
new JProperty("ColNum", 8), |
|
|
|
|
new JProperty("RowNum", 0), |
|
|
|
|
new JProperty("Height", 17.2), |
|
|
|
@ -4688,6 +4689,63 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
#region 录用名单 |
|
|
|
|
public async Task<ServicePageResult<Ghrh_ResumeDto>> QueryHireList(QueryBody filter) |
|
|
|
|
{ |
|
|
|
|
if (string.IsNullOrWhiteSpace(filter.orderBy)) |
|
|
|
|
filter.orderBy = "InDate DESC"; |
|
|
|
|
|
|
|
|
|
if (filter.pageSize == 0) |
|
|
|
|
filter.pageSize = 10000; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var countSql = @$" SELECT COUNT(1) FROM Ghrh_ResumeHireList_V"; |
|
|
|
|
var sql1 = @$"DECLARE @langId INT = {filter.langId};"; |
|
|
|
|
var sql = @$" SELECT *
|
|
|
|
|
FROM Ghrh_ResumeHireList_V A";
|
|
|
|
|
|
|
|
|
|
string conditions = " WHERE 1=1 "; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (filter.jsonParam != null) |
|
|
|
|
foreach (JProperty jProperty in filter.jsonParam.Properties()) |
|
|
|
|
{ |
|
|
|
|
var name = jProperty.Name; |
|
|
|
|
var value = jProperty.Value.ToString(); |
|
|
|
|
if (name == "page" || name == "pageSize") |
|
|
|
|
continue; |
|
|
|
|
if (!string.IsNullOrWhiteSpace(value)) |
|
|
|
|
conditions = DealConditions(conditions, name, value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
sql += conditions; |
|
|
|
|
countSql += conditions; |
|
|
|
|
int total = await Db.Ado.GetIntAsync(countSql); |
|
|
|
|
|
|
|
|
|
sql = "SELECT * FROM (SELECT *, ROW_NUMBER() OVER (ORDER BY " + filter.orderBy + ") NUM FROM (SELECT * FROM (" + sql + " "; |
|
|
|
|
sql += ") A ) B ) C"; |
|
|
|
|
|
|
|
|
|
sql += " WHERE NUM <= " + filter.pageNum * filter.pageSize + " AND NUM >" + (filter.pageNum - 1) * filter.pageSize; |
|
|
|
|
sql = sql1 + sql; |
|
|
|
|
var entitys = await Db.Ado.SqlQueryAsync<Ghrh_ResumeDto>(sql); |
|
|
|
|
|
|
|
|
|
var result = new ServicePageResult<Ghrh_ResumeDto>(filter.pageNum, total, filter.pageSize, entitys); |
|
|
|
|
|
|
|
|
|
var list = result.result.DT_TableDataT1; |
|
|
|
|
var tagIds = new List<long>(); |
|
|
|
|
|
|
|
|
|
tagIds = tagIds.Distinct().ToList(); |
|
|
|
|
var tags = await Db.Queryable<Ghrh_ResumeTag>().Where(x => tagIds.Contains(x.Id)).ToListAsync(); |
|
|
|
|
for (int i = 0; i < list.Count; i++) |
|
|
|
|
{ |
|
|
|
|
await SetLabel(list[i]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
#region 通用方法 |
|
|
|
|
/// <summary> |
|
|
|
|
/// 记录日志 |
|
|
|
|