阿朗 12:15:57
select * from torgsystem a where not exists(select * from torgattribute b where a.fguid=b.fguid and b.fid = 'DISPLAYNAME');
阿朗 12:16:08
你在系统数据库执行一下这个语句
阿朗 12:16:43
如果有结果,请把这些组织单元的属性修改一下,修改显示名称,然后重新打一个包看看
阿朗 12:17:12
从代码上看,是你的组织机构乱了,有些组织节点的显示名称属性没有了
阿朗 12:17:42
上面的SQL语句可以找到这些节点,然后你重新定义一下这些节点的显示名称属性就好了
select * from torgsystem a where not exists(select * from torgattribute b where a.fguid=b.fguid and b.fid = 'DISPLAYNAME')
执行上面的SQL语句可以检验是否有显示名称属性的不一致
insert into torgattribute
select FGUID, 'DISPLAYNAME', FDISPLAYNAME, [color=red'公司id' from torgsystem a where not exists(select * from torgattribute b where a.fguid=b.fguid and b.fid = 'DISPLAYNAME')
执行上面SQL,可以修复上述问题