1.pc查询收藏、足迹、申请

2.查询我的时,返回这些对应的数字
This commit is contained in:
sh
2025-11-01 16:01:10 +08:00
parent fe48208f21
commit a641140ea5
19 changed files with 130 additions and 12 deletions

View File

@@ -42,4 +42,13 @@
and r.del_flag = '0'
group by r.review_date
</select>
<select id="selectAppReviewJobListJob" parameterType="AppReviewJob" resultType="com.ruoyi.cms.domain.Job">
select b.* from app_review_job a inner join job b on a.job_id=b.job_id and b.del_flag='0'
<where> a.del_flag = '0'
<if test="jobId != null "> and a.job_id = #{jobId}</if>
<if test="userId != null "> and a.user_id = #{userId}</if>
</where>
</select>
</mapper>

View File

@@ -108,7 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
)
</insert>
<select id="getMyTj" resultType="com.ruoyi.cms.domain.vo.MyChart">
<select id="getMyTj" resultType="com.ruoyi.common.core.domain.entity.MyChart">
SELECT t1.yzj,t2.ysc,t3.ytd,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

View File

@@ -116,4 +116,12 @@
<if test="name != null and name != '' "> and b.job_title like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
</select>
<select id="selectJobApplyListJob" parameterType="JobApply" resultType="com.ruoyi.cms.domain.Job">
select b.* from job_apply a inner join job b on a.job_id=b.job_id and b.del_flag='0'
<where> a.del_flag = '0'
<if test="jobId != null "> and a.job_id = #{jobId}</if>
<if test="userId != null "> and a.user_id = #{userId}</if>
</where>
</select>
</mapper>

View File

@@ -37,4 +37,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where del_flag = '0' and user_id = #{userId}
order by create_time desc)
</select>
<select id="selectJobCollectionListJob" parameterType="JobCollection" resultType="com.ruoyi.cms.domain.Job">
select b.* from job_collection a inner join job b on a.job_id=b.job_id and b.del_flag='0'
<where> a.del_flag = '0'
<if test="jobId != null "> and a.job_id = #{jobId}</if>
<if test="userId != null "> and a.user_id = #{userId}</if>
</where>
</select>
</mapper>