|
|
@@ -110,6 +110,14 @@ public class SysQuoteConfigServiceImpl extends ServiceImpl<SysQuoteConfigMapper,
|
|
|
// return false;
|
|
|
// }
|
|
|
// }
|
|
|
+
|
|
|
+ SysQuoteConfig quoteConfigInfo = this.getQuoteConfigInfo(companyId);
|
|
|
+ if(quoteConfigInfo.getAuthorize() == 1){
|
|
|
+ List<SysQuoteConfig> quoteUserConfig = sysQuoteUserMapper.getQuoteUserConfig(userId);
|
|
|
+ if(quoteUserConfig.stream().filter(x->x.getCompanyId().equals(companyId)).collect(Collectors.toList()).size()==0){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
Integer maxQuoteNum = sysQuoteRedisService.getMaxQuoteNum(companyId, userId, licenseNo);
|
|
|
if(maxQuoteNum <= 0) {
|
|
|
return false;
|