|
|
|
@ -67,4 +67,21 @@ |
|
|
|
insert into plm_document_list_definition (site, proofing_id, document_type_id, project_id, manual_flag,create_date,created_by,test_part_id) |
|
|
|
values (#{orderRef1}, #{orderRef2}, #{documentTypeId}, #{orderRef4}, 'N',getdate(),#{createdBy},#{orderRef5}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<select id="getRoleUserList" resultType="RoleUserData"> |
|
|
|
select a.user_id,a.user_id,b.username,b.user_display,b.WorkShopId,c.workShopName |
|
|
|
from sys_user_role a |
|
|
|
left join sys_user b on a.user_id=b.user_id |
|
|
|
left join eam_WorkShop c on b.workShopId=c.workShopId |
|
|
|
<where> |
|
|
|
and role_id=#{roleId} |
|
|
|
<if test = "username != null and username != ''"> |
|
|
|
AND b.username LIKE '%' + #{username} + '%' |
|
|
|
</if> |
|
|
|
<if test = "userDisplay != null and userDisplay != ''"> |
|
|
|
AND b.user_display LIKE '%' + #{userDisplay} + '%' |
|
|
|
</if> |
|
|
|
and b.username is not null |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
</mapper> |