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