|  | @@ -660,17 +660,14 @@ public class TCntrnoServiceImpl implements ITCntrnoService {
 | 
	
		
			
				|  |  |                                  return AjaxResult.error("Excel箱信息数据第" + line + "行数据缺少堆放地点");
 | 
	
		
			
				|  |  |                              }
 | 
	
		
			
				|  |  |                              companyMsg.setAddressName(cell.getStringCellValue());
 | 
	
		
			
				|  |  | -                            TAddress address = new TAddress();
 | 
	
		
			
				|  |  | -                            address.setfName(cell.getStringCellValue());
 | 
	
		
			
				|  |  |                              if (StringUtils.isEmpty(companyMsg.getPort())){
 | 
	
		
			
				|  |  |                                  return AjaxResult.error("缺少地点类型"+companyMsg.getPortName());
 | 
	
		
			
				|  |  |                              }
 | 
	
		
			
				|  |  | -                            address.setfTypes(companyMsg.getPort());
 | 
	
		
			
				|  |  | -                            List<TAddress> tAddresses = tAddressMapper.selectTAddressBasicList(address);
 | 
	
		
			
				|  |  | -                            if (CollectionUtils.isEmpty(tAddresses)){
 | 
	
		
			
				|  |  | +                            TAddress aLong = tAddressMapper.selectTAddressByfNameType(cell.getStringCellValue(), companyMsg.getPort());
 | 
	
		
			
				|  |  | +                            if (aLong == null){
 | 
	
		
			
				|  |  |                                  return AjaxResult.error("系统缺少类型为"+companyMsg.getPortName()+"的地点"+cell.getStringCellValue()+"请维护");
 | 
	
		
			
				|  |  |                              }
 | 
	
		
			
				|  |  | -                            companyMsg.setfUpdateaddress(tAddresses.get(0).getfId().toString());
 | 
	
		
			
				|  |  | +                            companyMsg.setfUpdateaddress(aLong.toString());
 | 
	
		
			
				|  |  |                              break;
 | 
	
		
			
				|  |  |                          case "提单号":
 | 
	
		
			
				|  |  |                              //设置单元格类型
 |