@ -228,6 +228,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
var tags = await _ ghrh_ResumeTagServices . QueryDto ( x = > tagIds . Contains ( x . Id ) ) ;
list . ForEach ( async x = >
{
//x.ResumeId = x.Id;
if ( x . TitleId ! = null ) x . TitleName = titles . Where ( o = > o . TitleID = = x . TitleId ) . FirstOrDefault ( ) ? . TitleName ;
x . GenderLabel = await GetParaLabel ( "Gender" , x . Gender ) ;
x . EducationLabel = await GetParaLabel ( "EducationalBGLevel" , x . Education ) ;
@ -1757,4 +1758,123 @@ END";
return ServiceResult . OprateSuccess ( ) ;
}
# endregion
#region ESS端查询简历记录
public async Task < ServicePageResult < object > > QueryESS ( QueryBody filter , string condition )
{
int? staffId = GetStaffId ( ) ;
RefAsync < int > totalCount = 0 ;
var dt = DateTime . Now . Date ;
string sql = @ $ "SELECT B.Id,
A . Id ResumeId ,
A . CreateBy ,
C . CreateTime ,
A . CreateProg ,
A . CreateIP ,
A . UpdateBy ,
A . UpdateTime ,
A . UpdateProg ,
A . UpdateIP ,
A . OperateLogID ,
A . StaffName ,
A . StaffEname ,
A . PhotoUrl ,
A . Nation ,
A . Birthday ,
A . NativePlace ,
A . Gender ,
A . Age ,
A . Education ,
A . School ,
A . GraduateDate ,
A . ApplyStatus ,
A . TitleId ,
A . MaritalStatus ,
A . PoliticStatus ,
A . Mobile ,
A . Email ,
A . Indate ,
A . UrgentRelation ,
A . UrgentContact ,
A . UrgentContactTel ,
A . UrgentContactAddress ,
A . Urgent2Relation ,
A . Urgent2Contact ,
A . Urgent2ContactTel ,
A . Urgent2ContactAddress ,
A . PreJobSeniority ,
A . EduDegree ,
A . CertificateType ,
A . IdCardNo ,
A . IDCardBegin ,
A . IDCardEnd ,
A . RegisteredType ,
A . IDCardOrg ,
A . RegisteredAddress ,
A . NowAddress ,
A . Introducer ,
A . NationNo ,
A . FundAccountID ,
A . FundBase ,
A . InInsureAccountNo ,
A . InsureAccountID ,
A . InsureBase ,
A . IsInsure ,
A . IsFund ,
A . IsRecommend ,
A . IsStay ,
A . CarNo ,
A . Tags ,
A . Status ,
A . WorkYears ,
A . SalaryPeriod ,
A . ApplicationStatus ,
A . ApplicationTime ,
A . TitleType ,
A . StaffType1 ,
- - A . InterviewResult ,
A . FailInterviewReason ,
A . RemarkSz ,
A . IsDefault ,
A . IsEnable ,
A . Reverse1 ,
A . Reverse2 ,
A . Reverse3 ,
A . Reverse4 ,
A . Reverse5 ,
A . Reverse6 ,
A . Reverse7 ,
A . Reverse8 ,
A . Reverse9 ,
A . Reverse10 ,
A . ReverseI1 ,
A . ReverseI2 ,
B . OrderNo ,
B . RecommendTime ,
B . [ Round ] ,
B . IsPass ,
B . InterviewResult ,
C . Status OrderStatus ,
C . StaffId
FROM Ghrh_Resume A
JOIN Ghrh_InterviewOrder B ON A . ID = B . ResumeId
JOIN Ghrh_InterviewRecord C
ON B . ID = C . OrderId AND B . [ Round ] = C . [ Round ]
WHERE A . IsEnable = 1 AND C . IsEnable = 1 ";
if ( string . IsNullOrWhiteSpace ( filter . orderBy ) )
filter . orderBy = "CreateTime ASC" ;
sql + = $" AND C.StaffId={staffId}" ;
sql + = " AND " + condition ;
if ( filter . pageSize = = 0 )
filter . pageSize = 1 0 0 0 0 ;
var data = await Db . SqlQueryable < object > ( sql )
. OrderBy ( filter . orderBy )
. ToPageListAsync ( filter . pageNum , filter . pageSize , totalCount ) ;
return new ServicePageResult < object > ( filter . pageNum , totalCount , filter . pageSize , data ) ;
}
# endregion
}