给移动端/app/user/resume、pc端/getInfo 接口添加返回企业未处理申请请条数pendCount

This commit is contained in:
sh
2026-05-14 12:55:04 +08:00
parent e8971f2fce
commit 3a6c6638cb
8 changed files with 52 additions and 0 deletions

View File

@@ -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>