| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -78,6 +78,25 @@ public class SupCompanyController {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @PostMapping("/api/pur/addCompany")
 | 
					 | 
					 | 
					 | 
					    @PostMapping("/api/pur/addCompany")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public BaseResponse insertCompany(@RequestBody SupCompanyEntity companyEntity) {
 | 
					 | 
					 | 
					 | 
					    public BaseResponse insertCompany(@RequestBody SupCompanyEntity companyEntity) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        //查询该用户对应的资质证书
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        if(companyEntity.getAuditStatus()==6){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            FilterSupCertRequest filterSupCertRequest = new FilterSupCertRequest();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            filterSupCertRequest.setCustomerId(companyEntity.getCustomerId());
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            filterSupCertRequest.setType(ConstantStatus.CERT_COMPANY);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            List<SupCertEntity> supCertEntityList = supCertService.filterCompanyCert(filterSupCertRequest);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            if(supCertEntityList.size()>0){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                for (SupCertEntity obj:supCertEntityList){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    if (StrUtil.isBlank(obj.getFilePath())){
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        return ResultVOUtils.error(999,obj.getName()+"未上传资质证书!");
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        String customerId = CustomUtil.getId();     //重新生成customerId
 | 
					 | 
					 | 
					 | 
					        String customerId = CustomUtil.getId();     //重新生成customerId
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        CustomerContactEntity customerContactEntity = new CustomerContactEntity();
 | 
					 | 
					 | 
					 | 
					        CustomerContactEntity customerContactEntity = new CustomerContactEntity();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        customerContactEntity.setTel(companyEntity.getTel());
 | 
					 | 
					 | 
					 | 
					        customerContactEntity.setTel(companyEntity.getTel());
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -87,7 +106,7 @@ public class SupCompanyController {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        customerContactEntity.setCustomerId(customerId);
 | 
					 | 
					 | 
					 | 
					        customerContactEntity.setCustomerId(customerId);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        customerContactService.insertCustomerContact(customerContactEntity);
 | 
					 | 
					 | 
					 | 
					        customerContactService.insertCustomerContact(customerContactEntity);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //更新相关证书对应的customerId
 | 
					 | 
					 | 
					 | 
					        //更新相关证书对应的customerId
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        supCertService.updateCustomerId(companyEntity.getCustomerId(), customerId);
 | 
					 | 
					 | 
					 | 
					        supCertService.updateCustomerId(companyEntity.getCustomerId(), customerId,ConstantStatus.AUDIT_UN);
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        companyEntity.setCustomerId(customerId);
 | 
					 | 
					 | 
					 | 
					        companyEntity.setCustomerId(customerId);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        companyEntity.setCreateTime(new Date());
 | 
					 | 
					 | 
					 | 
					        companyEntity.setCreateTime(new Date());
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |