|
@@ -527,8 +527,12 @@
|
|
|
WHERE substring_index(substring_index(ancestors, ',', 2), ',', -1) = #{companyId}
|
|
|
</select>
|
|
|
<select id="getCourtshipPurchaseIds" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
- SELECT user_id as userId,nick_name as 'userName' from sys_user WHERE
|
|
|
- dept_id in
|
|
|
+ select t1.user_id as 'userId',t1.nick_name as 'userName'
|
|
|
+ from sys_user t1
|
|
|
+ left join sys_user_role t2 on t1.user_id = t2.user_id
|
|
|
+ left join sys_role t3
|
|
|
+ on t2.role_id = t3.role_id
|
|
|
+ where t1.dept_id in
|
|
|
<if test='ids != null and ids.size() > 0'>
|
|
|
|
|
|
<foreach collection="ids" item="item" separator=","
|
|
@@ -537,6 +541,13 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
|
|
|
+ and t3.role_key in (
|
|
|
+ 'industry_purchase',
|
|
|
+ 'industry_courtship_manager',
|
|
|
+ 'industry_courtship',
|
|
|
+ 'industry_purchase_manager'
|
|
|
+ )
|
|
|
+
|
|
|
</select>
|
|
|
<select id="selectKwaixiaodianItemGetById" resultType="com.ruixuan.isc.entity.KwaixiaodianItemGet"
|
|
|
parameterType="java.lang.Long">
|