|
@@ -152,7 +152,8 @@
|
|
|
WHERE
|
|
|
label_jobuser.JobuserID = jobuser.JobuserID
|
|
|
) AS labelTemp
|
|
|
- ) AS labelList
|
|
|
+ ) AS labelList,
|
|
|
+ jobHuntCounts.jobHuntCount
|
|
|
FROM
|
|
|
pc_jobuser jobuser
|
|
|
LEFT JOIN sys_dictionary_item keytype ON jobuser.KeyPersonTypeID = keytype.`Value` AND keytype.DictionaryCode = 'KeyPersonType'
|
|
@@ -170,6 +171,7 @@
|
|
|
job_user.JobUserID
|
|
|
) recommendCountData ON recommendCountData.JobUserID = jobuser.JobUserID
|
|
|
left join sys_dictionary_item jobstatus on jobuser.JobStatusID = jobstatus.value and jobstatus.DictionaryCode='JobStatus'
|
|
|
+ LEFT JOIN ( SELECT JobUserID, COUNT( 1 ) AS jobHuntCount FROM pc_jobhunt GROUP BY JobUserID ) AS jobHuntCounts ON jobuser.JobUserID = jobHuntCounts.JobUserID
|
|
|
WHERE 1=1
|
|
|
<if test="jobUserName != '' and jobUserName != null">
|
|
|
and jobuser.name like Concat('%',#{jobUserName},'%')
|
|
@@ -218,6 +220,7 @@
|
|
|
CURRENT_DATE ()) <![CDATA[ <= ]]> #{maxAge}
|
|
|
</if>
|
|
|
ORDER BY
|
|
|
+ (jobHuntCounts.jobHuntCount IS NULL) ASC,
|
|
|
jobuser.CreateTime DESC
|
|
|
</select>
|
|
|
<select id="getJobUserDataList" resultType="com.hz.employmentsite.vo.jobUserManager.JobUserVo">
|