|
@@ -178,21 +178,15 @@
|
|
|
and jobuser.RegionCode = #{regionCode}
|
|
|
</if>
|
|
|
<if test="labelID != '' and labelID != null">
|
|
|
- and
|
|
|
- (
|
|
|
- SELECT
|
|
|
- JSON_ARRAYAGG( JSON_OBJECT( 'labelID', labelTemp.LabelID ) )
|
|
|
- FROM
|
|
|
- (
|
|
|
- SELECT
|
|
|
- label.LabelID,
|
|
|
- label.LabelName
|
|
|
- FROM
|
|
|
- pc_label_jobuser label_jobuser
|
|
|
- LEFT JOIN pc_label label ON label_jobuser.LabelID = label.LabelID
|
|
|
- WHERE label_jobuser.JobuserID = jobuser.JobuserID
|
|
|
- ) AS labelTemp
|
|
|
- ) like Concat('%',#{labelID},'%')
|
|
|
+ AND jobuser.JobuserID IN (
|
|
|
+ SELECT label_jobuser.JobuserID
|
|
|
+ FROM pc_label_jobuser label_jobuser
|
|
|
+ WHERE label_jobuser.LabelID IN (
|
|
|
+ SELECT label.LabelID
|
|
|
+ FROM pc_label label
|
|
|
+ WHERE label.LabelID = #{labelID}
|
|
|
+ )
|
|
|
+ )
|
|
|
</if>
|
|
|
<if test="minAge != null and maxAge == null">
|
|
|
and
|
|
@@ -201,7 +195,7 @@
|
|
|
jobuser.BirthDay,
|
|
|
CURRENT_DATE ()) <![CDATA[ >= ]]> #{minAge}
|
|
|
</if>
|
|
|
- <if test="maxAge != null and minAge == null">
|
|
|
+ <if test="maxAge != null and minAge == null">
|
|
|
and
|
|
|
TIMESTAMPDIFF(
|
|
|
YEAR,
|