1.修改移动端技能接口

2.修改查询足迹列表
This commit is contained in:
sh
2025-12-02 13:01:09 +08:00
parent 06c7b86056
commit ffb9803bf3
2 changed files with 37 additions and 1 deletions

View File

@@ -44,11 +44,21 @@
</select>
<select id="selectAppReviewJobListJob" parameterType="AppReviewJob" resultType="com.ruoyi.cms.domain.Job">
select b.*,a.review_date as shareTime from app_review_job a inner join job b on a.job_id=b.job_id and b.del_flag='0'
select distinct b.*,a.review_date as shareTime from app_review_job a inner join job b on a.job_id=b.job_id and b.del_flag='0'
inner join (select user_id, job_id, max(review_date) as max_review_date from app_review_job
where del_flag = '0'
<if test="jobId != null ">and job_id = #{jobId}</if>
<if test="userId != null ">and user_id = #{userId}</if>
group by user_id, job_id
) as max_date
on a.user_id = max_date.user_id
and a.job_id = max_date.job_id
and a.review_date = max_date.max_review_date
<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>
order by a.review_date desc
</select>
</mapper>