P15GEN2\59518
2025-10-10 9f6890646993d16260d4201d613c092132856127
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8" ?>
    
<sqls>
    <dataSpace name="authorization">
    
        <sql name="getAuthorizeTemplate">
        <![CDATA[
            select sys_template_authorization_file.*,
                sys_template_authorization_target.category_code,
                sys_template_authorization_target.category_name,
                sys_template_authorization_target.term_code,
                sys_template_authorization_target.term_name, 
                sys_template_authorization_target.file_name name
            from sys_template_authorization_target
            left join sys_template_authorization_file
                on sys_template_authorization_target.template_id = sys_template_authorization_file.id
            where sys_template_authorization_target.company_id = '@{company_id}'
                and sys_template_authorization_target.bu_id = '@{bu_id}'
                and sys_template_authorization_target.category_code = '@{category_code}'
                and sys_template_authorization_target.term_code = '@{term_code}'
        ]]>    
        </sql>
    </dataSpace>
    
</sqls>