0
例如,我只想看看我的项目中获取代码的类,其中中的两个 syp和cus图层。有没有一种方法可以通过项目中的类的图层组合进行过滤?
例如,我只想看看我的项目中获取代码的类,其中中的两个 syp和cus图层。有没有一种方法可以通过项目中的类的图层组合进行过滤?
SQL来拯救你:
static void UtilElement2Layers(Args _args)
{
UtilIdElements uc, u1, u2;
while select uc
where uc.recordType == UtilElementType::Class
exists join u1
where u1.parentId == uc.id
&& u1.utilLevel == UtilEntryLevel::cus
exists join u2
where u2.parentId == uc.id
&& u2.utilLevel == UtilEntryLevel::syp
// && u2.id == u1.id
{
info(uc.name);
}
}