修改-一体机我的报错问题
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)
|
||||
FROM company_collection
|
||||
where del_flag = '0' and user_id = #{userId}
|
||||
order by create_time desc)
|
||||
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}
|
||||
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">
|
||||
|
||||
Reference in New Issue
Block a user