修改-一体机我的报错问题
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user