分包商

This commit is contained in:
zt
2025-03-28 16:38:03 +08:00
parent 8289974a21
commit b4491e0848
37 changed files with 1515 additions and 30 deletions

View File

@ -17,5 +17,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="remark" column="remark"/>
</resultMap>
<select id="joinSectionList" resultType="com.ruoyi.fbs.domain.vo.FbsProjectSectionListVO">
SELECT zps.id, zps.project_id, zps.section_name
from zbf_project_section zps
left join zbf_project zp on zps.project_id = zp.id
where EXISTS (SELECT 1
FROM zbf_project_subcontracting zpsu
WHERE zpsu.user_id = #{dto.fbsUserId}
AND zps.id = zpsu.section_id)
<if test="dto.projectId!=null">
and zps.project_id = #{dto.projectId}
</if>
</select>
</mapper>