|  |  | @ -97,14 +97,14 @@ public class SupManufacturerController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         FilterSupManufacturerRequest filterSupManufacturerRequest=new FilterSupManufacturerRequest(); |  |  |  |         FilterSupManufacturerRequest filterSupManufacturerRequest=new FilterSupManufacturerRequest(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterSupManufacturerRequest.setCompanyName(supManufacturerEntity.getCompanyName()); |  |  |  |         filterSupManufacturerRequest.setCompanyName(supManufacturerEntity.getCompanyName()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterSupManufacturerRequest.setCustomerId(getCustomerId()); |  |  |  |         filterSupManufacturerRequest.setCustomerId(getCustomerId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         List<SupManufacturerEntity> companyEntities = supManufacturerService.getCompany(filterSupManufacturerRequest); |  |  |  |         List<SupManufacturerEntity> companyEntities = supManufacturerService.getCompanyByNameAndCode(filterSupManufacturerRequest); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         if(companyEntities.size()>0){ |  |  |  |         if(companyEntities.size()>0){ | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(999,"企业名称不能重复!"); |  |  |  |             return ResultVOUtils.error(999,"企业名称不能重复!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterSupManufacturerRequest=new FilterSupManufacturerRequest(); |  |  |  |         filterSupManufacturerRequest=new FilterSupManufacturerRequest(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterSupManufacturerRequest.setCustomerId(getCustomerId()); |  |  |  |         filterSupManufacturerRequest.setCustomerId(getCustomerId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterSupManufacturerRequest.setCreditCode(supManufacturerEntity.getCreditCode()); |  |  |  |         filterSupManufacturerRequest.setCreditCode(supManufacturerEntity.getCreditCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         companyEntities = supManufacturerService.getCompany(filterSupManufacturerRequest); |  |  |  |         companyEntities = supManufacturerService.getCompanyByNameAndCode(filterSupManufacturerRequest); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         if(companyEntities.size()>0){ |  |  |  |         if(companyEntities.size()>0){ | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(999,"统一社会信用代码不能重复!"); |  |  |  |             return ResultVOUtils.error(999,"统一社会信用代码不能重复!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | @ -196,14 +196,14 @@ public class SupManufacturerController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         FilterSupManufacturerRequest filterSupManufacturerRequest=new FilterSupManufacturerRequest(); |  |  |  |         FilterSupManufacturerRequest filterSupManufacturerRequest=new FilterSupManufacturerRequest(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterSupManufacturerRequest.setCompanyName(supManufacturerEntity.getCompanyName()); |  |  |  |         filterSupManufacturerRequest.setCompanyName(supManufacturerEntity.getCompanyName()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterSupManufacturerRequest.setCustomerId(getCustomerId()); |  |  |  |         filterSupManufacturerRequest.setCustomerId(getCustomerId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         List<SupManufacturerEntity> companyEntities = supManufacturerService.getCompany(filterSupManufacturerRequest); |  |  |  |         List<SupManufacturerEntity> companyEntities = supManufacturerService.getCompanyByNameAndCode(filterSupManufacturerRequest); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         if(companyEntities.size()>0){ |  |  |  |         if(companyEntities.size()>0){ | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(999,"企业名称不能重复!"); |  |  |  |             return ResultVOUtils.error(999,"企业名称不能重复!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterSupManufacturerRequest=new FilterSupManufacturerRequest(); |  |  |  |         filterSupManufacturerRequest=new FilterSupManufacturerRequest(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterSupManufacturerRequest.setCustomerId(getCustomerId()); |  |  |  |         filterSupManufacturerRequest.setCustomerId(getCustomerId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterSupManufacturerRequest.setCreditCode(supManufacturerEntity.getCreditCode()); |  |  |  |         filterSupManufacturerRequest.setCreditCode(supManufacturerEntity.getCreditCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         companyEntities = supManufacturerService.getCompany(filterSupManufacturerRequest); |  |  |  |         companyEntities = supManufacturerService.getCompanyByNameAndCode(filterSupManufacturerRequest); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         if(companyEntities.size()>0){ |  |  |  |         if(companyEntities.size()>0){ | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(999,"统一社会信用代码不能重复!"); |  |  |  |             return ResultVOUtils.error(999,"统一社会信用代码不能重复!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | @ -295,6 +295,59 @@ public class SupManufacturerController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isEmpty(supManufacturerEntity.getManufacturerId()) || StrUtil.isEmpty(supManufacturerEntity.getCustomerId())) { |  |  |  |         if (StrUtil.isEmpty(supManufacturerEntity.getManufacturerId()) || StrUtil.isEmpty(supManufacturerEntity.getCustomerId())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(500, "参数错误!"); |  |  |  |             return ResultVOUtils.error(500, "参数错误!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if(supManufacturerEntity.getAuditStatus()==2){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             //查询上传的资质证书
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             FilterSupCertRequest filterSupCertRequest = new FilterSupCertRequest(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             filterSupCertRequest.setCustomerId(supManufacturerEntity.getCustomerId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             filterSupCertRequest.setManufacturerIdFk(supManufacturerEntity.getManufacturerId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             filterSupCertRequest.setType(ConstantStatus.CERT_MANUFACTURER); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             List<SupCertEntity> supCertEntityList = supCertService.filterCompanyCert(filterSupCertRequest); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             //查询必须上传的资质证书
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             FilterCertSetsRequest filterCertSetsRequest = new FilterCertSetsRequest(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             filterCertSetsRequest.setType(ConstantStatus.CERT_MANUFACTURER); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             List<SupCertSetEntity> supCertSetEntities = supCertSetService.filterCertSets(filterCertSetsRequest); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             //判断有没有存在必须上传而没有上传的证书
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             ListIterator<SupCertSetEntity> iterable = supCertSetEntities.listIterator(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             while (iterable.hasNext()) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 SupCertSetEntity supCertSetEntity = iterable.next(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 if ((           supCertSetEntity.getForeign() != null && supCertSetEntity.getForeign() == 2 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         && StrUtil.trimToEmpty(supManufacturerEntity.getCompanyType()).equals("2")) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         || | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         ( | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 supCertSetEntity.getForeign() != null && supCertSetEntity.getForeign() == 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                         && StrUtil.trimToEmpty(supManufacturerEntity.getCompanyType()).equals("2")) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         || | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         (       supCertSetEntity.getForeign() != null | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 && supCertSetEntity.getForeign() == 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 && supManufacturerEntity.getCompanyType().equals("1")) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         || | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         (       supCertSetEntity.getForeign() != null | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 && supCertSetEntity.getForeign() == 3 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 && supManufacturerEntity.getCompanyType().equals("1"))) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     for (SupCertEntity supCertEntity : supCertEntityList) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (supCertEntity.getName().equals(supCertSetEntity.getName())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             if (StrUtil.isNotEmpty(supCertEntity.getFilePath())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 iterable.remove(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 break; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     iterable.remove(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             String errMsg = ""; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (supCertSetEntities.size() > 0) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 return ResultVOUtils.error(500, "必传证书不齐全!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         //  查询是否包含审核未通过的证书
 |  |  |  |         //  查询是否包含审核未通过的证书
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (supManufacturerEntity.getAuditStatus() == ConstantStatus.AUDIT_PASS || |  |  |  |         if (supManufacturerEntity.getAuditStatus() == ConstantStatus.AUDIT_PASS || | 
			
		
	
		
		
			
				
					
					|  |  |  |                 supManufacturerEntity.getAuditStatus() == ConstantStatus.AUDIT_CHANGE_PASS) { |  |  |  |                 supManufacturerEntity.getAuditStatus() == ConstantStatus.AUDIT_CHANGE_PASS) { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |