修改-一体机我的报错问题

This commit is contained in:
sh
2025-11-18 10:41:20 +08:00
parent 1e3823f0de
commit 95cc75de29
2 changed files with 15 additions and 15 deletions

View File

@@ -28,14 +28,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="collectionJob" resultType="com.ruoyi.cms.domain.Job">
select *
from job
where del_flag = '0'
and is_publish = 1
and job_id in (SELECT DISTINCT (job_id)
FROM job_collection
where del_flag = '0' and user_id = #{userId}
order by create_time desc)
select j.* from job j
JOIN ( SELECT job_id, MAX(create_time) as collect_time
FROM job_collection
where del_flag = '0' and user_id = #{userId}
GROUP BY job_id ) as c on j.job_id = c.job_id
where j.del_flag = '0' and j.is_publish = 1
ORDER BY c.collect_time desc
</select>
<select id="selectJobCollectionListJob" parameterType="JobCollection" resultType="com.ruoyi.cms.domain.Job">