From 23bd3c44a0d30b7cbc39eeb3903ca2a194dc0539 Mon Sep 17 00:00:00 2001 From: lizhicheng Date: Fri, 28 Oct 2022 17:29:21 +0800 Subject: [PATCH] bug fix --- .../src/main/resources/mapper/resource/ResourceDao.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml b/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml index f0ee8b64..70976a8b 100644 --- a/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml +++ b/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml @@ -1763,17 +1763,19 @@ END ) AS "type" FROM - (SELECT IF(d.type='组件服务', A.attr_value, d.type) AS type, d.id, d.del_flag FROM tb_data_resource d LEFT JOIN + (SELECT IF(d.type='组件服务', A.attr_value, d.type) AS type, d.id, d.dept_id, d.del_flag FROM tb_data_resource d LEFT JOIN tb_data_attr a ON d.id=a.data_resource_id AND a.attr_type='组件类型' AND a.del_flag=0) tdr, sys_dept sd, sys_user su, - t_ability_application taa + t_ability_application taa, + sys_dept dept WHERE 1 = 1 AND tdr.del_flag = 0 AND taa.user_id = su.id AND su.dept_id = sd.id AND taa.resource_id = tdr.id + AND dept.id = tdr.dept_id AND (tdr.type = '应用资源' OR tdr.type = '智能算法' OR tdr.type = '图层服务' OR tdr.type = '开发组件' OR tdr.type = '业务组件')