Parcourir la source

人效 初版2

zhaoxian il y a 3 ans
Parent
commit
e81fec10f8

+ 4 - 1
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/MaterialStareMapper.xml

@@ -1631,13 +1631,16 @@
         FROM
             `jeecg-boot`.sys_user u,
             `jeecg-boot`.sys_role r,
-            `jeecg-boot`.sys_user_role sur
+            `jeecg-boot`.sys_user_role sur,
+            `jeecg-boot`.user_company c
         WHERE
             r.role_code = #{roleCode}
           AND u.id = sur.user_id
+          AND u.id = c.user_id
           AND r.id = sur.role_id
           AND u.STATUS = 1
           AND u.del_flag = 0
+          AND c.company_id='d57fecdcf7a94d009736d9c850731582'
         ORDER BY u.create_time
     </select>