buli
2023-05-23 07390e2fcb4adf27c928335bf27ae7939c5a80ad
force-app/main/default/classes/LexContractAuthorizeController.cls
@@ -61,6 +61,18 @@
   public static String getProfileId(){
      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];