给移动端/app/user/resume、pc端/getInfo 接口添加返回企业未处理申请请条数pendCount
This commit is contained in:
@@ -146,4 +146,17 @@
|
||||
select count(user_id) from job_apply where del_flag = '2' and user_id=#{userId}
|
||||
</select>
|
||||
|
||||
<select id="selectPendCount" resultType="java.lang.Integer" parameterType="com.ruoyi.cms.domain.JobApply">
|
||||
select count(a.user_id) from job_apply a
|
||||
inner join job b on a.job_id=b.job_id
|
||||
inner join company c on b.company_id=c.company_id
|
||||
<where> a.del_flag='0' and b.del_flag='0' and (a.hire is NULL or a.hire ='')
|
||||
<if test="companyId!=null">
|
||||
and c.company_id=#{companyId}
|
||||
</if>
|
||||
<if test="code!=null and code!='' ">
|
||||
and c.code=#{code}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user