修改-一体机我的报错问题
This commit is contained in:
@@ -28,13 +28,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="collectionJob" resultType="com.ruoyi.common.core.domain.entity.Company">
|
<select id="collectionJob" resultType="com.ruoyi.common.core.domain.entity.Company">
|
||||||
select *
|
select c.* from company c
|
||||||
from company
|
JOIN ( SELECT company_id, MAX(create_time) as collect_time
|
||||||
where del_flag = '0'
|
|
||||||
and company_id in (SELECT DISTINCT (company_id)
|
|
||||||
FROM company_collection
|
FROM company_collection
|
||||||
where del_flag = '0' and user_id = #{userId}
|
where del_flag = '0' and user_id = #{userId}
|
||||||
order by create_time desc)
|
GROUP BY company_id
|
||||||
|
) as cc on c.company_id = cc.company_id
|
||||||
|
where c.del_flag = '0'
|
||||||
|
ORDER BY cc.collect_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectAppuserList" resultType="com.ruoyi.common.core.domain.entity.AppUser">
|
<select id="selectAppuserList" resultType="com.ruoyi.common.core.domain.entity.AppUser">
|
||||||
|
|||||||
@@ -28,14 +28,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="collectionJob" resultType="com.ruoyi.cms.domain.Job">
|
<select id="collectionJob" resultType="com.ruoyi.cms.domain.Job">
|
||||||
select *
|
select j.* from job j
|
||||||
from job
|
JOIN ( SELECT job_id, MAX(create_time) as collect_time
|
||||||
where del_flag = '0'
|
|
||||||
and is_publish = 1
|
|
||||||
and job_id in (SELECT DISTINCT (job_id)
|
|
||||||
FROM job_collection
|
FROM job_collection
|
||||||
where del_flag = '0' and user_id = #{userId}
|
where del_flag = '0' and user_id = #{userId}
|
||||||
order by create_time desc)
|
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>
|
||||||
|
|
||||||
<select id="selectJobCollectionListJob" parameterType="JobCollection" resultType="com.ruoyi.cms.domain.Job">
|
<select id="selectJobCollectionListJob" parameterType="JobCollection" resultType="com.ruoyi.cms.domain.Job">
|
||||||
|
|||||||
Reference in New Issue
Block a user