1.我的面试添加邀约未读数,增加邀约已读接口,批量已读接口
2.管理端面试列表菜单添加已接受,已拒绝的红标数
This commit is contained in:
@@ -122,12 +122,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</insert>
|
||||
|
||||
<select id="getMyTj" resultType="com.ruoyi.common.core.domain.entity.MyChart">
|
||||
SELECT t1.yzj,t2.ysc,t3.ytd,t4.yts,t5.ypbqys,0 AS yyy FROM
|
||||
SELECT t1.yzj,t2.ysc,t3.ytd,t4.yts,t5.ypbqys,t6.msyywd,0 AS yyy FROM
|
||||
(SELECT COUNT(user_id) AS yzj FROM app_review_job WHERE user_id = #{userId} AND del_flag = '0') t1
|
||||
CROSS JOIN (SELECT COUNT(user_id) AS ysc FROM job_collection WHERE user_id = #{userId} AND del_flag = '0') t2
|
||||
CROSS JOIN (SELECT COUNT(user_id) AS ytd FROM job_apply WHERE user_id = #{userId} AND del_flag = '0') t3
|
||||
CROSS JOIN (SELECT COUNT(user_id) AS yts FROM app_user_job_complaint WHERE user_id = #{userId} AND del_flag = '0') t4
|
||||
CROSS JOIN (SELECT COUNT(user_id) AS ypbqys FROM app_user_block_company WHERE user_id = #{userId} AND del_flag = '0') t5
|
||||
CROSS JOIN (SELECT COUNT(user_id) AS msyywd FROM interview_invitation WHERE user_id = #{userId} AND del_flag = '0' and is_read='0') t6
|
||||
</select>
|
||||
|
||||
<select id="selectSysUserIdcard" resultType="com.ruoyi.common.core.domain.entity.SysUser">
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
<if test="userId != null and userId != ''"> and user_id = #{userId}</if>
|
||||
<if test="applyId != null and applyId != ''"> and apply_id = #{applyId}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="isRead != null and isRead != ''"> and is_read = #{isRead}</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
@@ -81,8 +82,16 @@
|
||||
<if test="userId != null and userId != ''"> and t.user_id = #{userId}</if>
|
||||
<if test="applyId != null and applyId != ''"> and t.apply_id = #{applyId}</if>
|
||||
<if test="status != null and status != ''"> and t.status = #{status}</if>
|
||||
<if test="isRead != null and isRead != ''"> and t.is_read = #{isRead}</if>
|
||||
</where>
|
||||
order by t.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectMsyyhbs" resultMap="com.ruoyi.cms.domain.vo.InviteCountDTO">
|
||||
select count(1) total,sum(case when t.status='accepted' then 1 else 0 END) jss,
|
||||
sum(case when t.status='rejected' then 1 else 0 END) jjs from interview_invitation t
|
||||
INNER join company cp on t.company_id=cp.company_id
|
||||
where cp.code=#{idCard}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user