requirement表的实现

This commit is contained in:
2025-06-28 09:57:48 +08:00
parent 36ff5ca586
commit 2d7639f670
3 changed files with 36 additions and 21 deletions

View File

@@ -32,13 +32,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN sys_user u1 ON r.requester_id = u1.user_id
LEFT JOIN sys_user u2 ON r.owner_id = u2.user_id
LEFT JOIN sys_oa_project p ON r.project_id = p.project_id
<where>
r.del_flag = 0
<if test="ew != null and ew.sqlSegment != null">
${ew.customSqlSegment}
</if>
</where>
${ew.customSqlSegment}
</select>
<select id="selectVoListForExport" resultType="com.ruoyi.oa.domain.vo.OaRequirementsVo">
SELECT
r.*,
u1.nick_name AS requester_nick_name,
u2.nick_name AS owner_nick_name,
p.project_name
FROM oa_requirements r
LEFT JOIN sys_user u1 ON r.requester_id = u1.user_id
LEFT JOIN sys_user u2 ON r.owner_id = u2.user_id
LEFT JOIN sys_oa_project p ON r.project_id = p.project_id
${ew.customSqlSegment}
</select>
</mapper>