0

たとえば、プロジェクトの syp レイヤーと cus レイヤーの両方でコードを取得したクラスのみを見たいとします。

4

1 に答える 1

1

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);
    }
}
于 2012-01-24T09:15:21.787 に答える