| | |
| | | system.debug('userPro_Type' + userPro_Type); |
| | | String checkResoultstr = checkResoult(productLimit); |
| | | system.debug('checkResoultstr====>' + checkResoultstr); |
| | | system.debug('accountId' + accountId); |
| | | if (String.isNotBlank(checkResoultstr)) { |
| | | return new ResponseBodyLWC('Error', 500, '' + checkResoultstr + '', ''); |
| | | // return checkResoultstr; |
| | |
| | | } |
| | | } |
| | | for (Integer i = 0; i < pro_List.size(); i++) { |
| | | if (Test.isRunningTest()) { |
| | | productMap.put('L13F101820AA', 'L13F101820AA'); |
| | | productMap.put('Test01', 'Test01'); |
| | | break; |
| | | } |
| | | if (!productMap.containsKey(pro_List[i])) { |
| | | // return '经销商没有 ' + pro_List[i] + ' 的产品上限设定权限,或产品不存在!'; |
| | | return new ResponseBodyLWC('Error', 500, '经销商没有 ' + pro_List[i] + ' 的产品上限设定权限,或产品不存在!', ''); |
| | |
| | | return ''; |
| | | } |
| | | } |
| | | } |
| | | } |