Browse Source

2025-03-21

master
qiezi 10 months ago
parent
commit
b369399ec7
  1. 3
      src/main/resources/mapper/project/ProjectDao.xml
  2. 10
      src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

3
src/main/resources/mapper/project/ProjectDao.xml

@ -86,7 +86,7 @@
<select id="searchOperatorWithSite" resultType="com.spring.modules.project.data.PlmOperatorData"> <select id="searchOperatorWithSite" resultType="com.spring.modules.project.data.PlmOperatorData">
select operator_id,operator_name from plm_operator u select operator_id,operator_name from plm_operator u
<if test="roleNo != null and roleNo != ''"> <if test="roleNo != null and roleNo != ''">
left join AccessRole r on u.site = r.site and u.operator_id = r.username and role_no = #{roleNo}
inner join AccessRole r on u.site = r.site and u.operator_id = r.username and role_no = #{roleNo}
</if> </if>
<where> <where>
and u.site=#{site} and u.site=#{site}
@ -94,6 +94,7 @@
AND u.operator_id like #{operatorId} AND u.operator_id like #{operatorId}
</if> </if>
</where> </where>
order by operator_id desc
</select> </select>
<select id="searchProjectTeam" resultType="PlmOperatorData"> <select id="searchProjectTeam" resultType="PlmOperatorData">

10
src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

@ -165,9 +165,15 @@
<select id="searchBMUser" resultType="PlmOperatorData"> <select id="searchBMUser" resultType="PlmOperatorData">
select a.username operator_id, a.user_display operator_name, b.site, b.bu_no as buNo select a.username operator_id, a.user_display operator_name, b.site, b.bu_no as buNo
from sys_user a left join AccessBu b on a.username=b.username where b.bu_no = #{buNo} and b.site =#{site}
from sys_user a
left join AccessBu b on a.username = b.username
<if test="roleNo != null and roleNo != ''">
inner join AccessRole r on r.username = a.username and r.role_no = #{roleNo}
</if>
where b.bu_no = #{buNo}
and b.site = #{site}
order by a.username desc
</select> </select>
<select id="tsdBasicInformationSearch" resultType="PlmTechnicalSpecificationSheetData"> <select id="tsdBasicInformationSearch" resultType="PlmTechnicalSpecificationSheetData">

Loading…
Cancel
Save