if not exists (select 1 from sys_resource where code = 'orderPakout/history.html')
begin
    insert into sys_resource (code, name, resource_id, level, sort, status)
    values ('orderPakout/history.html', N'出库单据历史档', 40524, 2, 7, 1)
end
