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

优化

parent b2aa9c20
......@@ -9,16 +9,23 @@
FROM
project
WHERE
1 = 1
status = 1
<if test="projectName != null and projectName != ''">
AND project_name LIKE CONCAT('%', #{projectName}, '%')
</if>
AND (create_user_id = #{userId}
or visible_people like concat('%', #{userId}, '%')
or visible_people = 'all')
AND status = 1
ORDER BY id DESC
LIMIT #{page}, #{pageSize}
AND
(create_user_id = #{userId}
or
visible_people like concat('%', #{userId}, '%')
or
visible_people = 'all'
)
ORDER BY
id
DESC
LIMIT
#{page}, #{pageSize}
</select>
<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