Commit 80ba7e48 authored by wujipeng's avatar wujipeng
Browse files

优化

parent b2aa9c20
...@@ -9,16 +9,23 @@ ...@@ -9,16 +9,23 @@
FROM FROM
project project
WHERE WHERE
1 = 1 status = 1
<if test="projectName != null and projectName != ''"> <if test="projectName != null and projectName != ''">
AND project_name LIKE CONCAT('%', #{projectName}, '%') AND project_name LIKE CONCAT('%', #{projectName}, '%')
</if> </if>
AND (create_user_id = #{userId} AND
or visible_people like concat('%', #{userId}, '%') (create_user_id = #{userId}
or visible_people = 'all') or
AND status = 1 visible_people like concat('%', #{userId}, '%')
ORDER BY id DESC or
LIMIT #{page}, #{pageSize} visible_people = 'all'
)
ORDER BY
id
DESC
LIMIT
#{page}, #{pageSize}
</select> </select>
<select id="getProjectById" resultType="com.ruzhoukj.sms.entity.ProjectEntity"> <select id="getProjectById" resultType="com.ruzhoukj.sms.entity.ProjectEntity">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment