Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
ops
Commits
80ba7e48
Commit
80ba7e48
authored
Aug 30, 2024
by
wujipeng
Browse files
优化
parent
b2aa9c20
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/com/ruzhoukj/sms/dao/ProjectDao.xml
View file @
80ba7e48
...
...
@@ -7,18 +7,25 @@
SELECT
id, project_leader, start_time, end_time, `describe`, project_name, visible_people
FROM
project
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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment