数据权限调整

This commit is contained in:
pan 2024-09-07 20:53:10 +08:00
parent 7131d744a4
commit 5607c957fb
2 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public class DocumentServiceImpl implements IDocumentService
* @return 请填写功能名称
*/
@Override
@DataScope(deptAlias = "sd")
@DataScope(deptAlias = "sd", userAlias = "su")
public List<Document> selectDocumentList(Document document)
{
if (BooleanUtil.isTrue(document.getPermissionCheck())) {

View File

@ -40,6 +40,7 @@
from t_document td
left join t_tool on t_tool.tool_id = td.tool_id
left join sys_dept sd on sd.dept_id = td.doc_resp_dept
left join sys_user su on td.create_by_id = su.user_id
<where>
<if test="docCode != null and docCode != ''"> and td.doc_code like concat('%', #{docCode}, '%')</if>
<if test="docName != null and docName != ''"> and td.doc_name like concat('%', #{docName}, '%')</if>