liwentao
2023-05-17 0a759be7943c0352c540dd5aee70ffbf946bbe9e
force-app/main/default/classes/LexContractAuthorizeController.cls
@@ -62,6 +62,18 @@
      return UserInfo.getProfileId();
   }
   @AuraEnabled
    public static boolean queryProfileId(){
        List<Profile> res=[select id,name from profile where name in
        ('2J3_特约店窗口','2M4_市场产品本部担当(询价)','系统管理员','2S6-2_营业助理','2S7_销售本部合同管理窗口','2S6-1_销售本部窗口')
        ];
        for(Profile p:res){
            if (UserInfo.getProfileId()==p.id) {
                return true;
            }
        }
        return false;
    }
   @AuraEnabled
   public static Boolean judgeIsAssistantAppliedOutTime(String  Quoteid) {
        List<PromotionSales__c> PromotionSalesList = [select id,IsAssistantAppliedOutTime__c from PromotionSales__c where Quote__r.Quote_No__c =:Quoteid];
        for(PromotionSales__c pro : PromotionSalesList){