|
|
@ -370,7 +370,7 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerDao, CustomerEntity |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (customerPersonalTOI.getManager() == null) { |
|
|
|
if (customerPersonalTOI.getManager() == null) { |
|
|
|
return new ResponseResult<String>().SUCCESS("导入数据失败,员工" + manager.getManager() + "不存在"); |
|
|
|
return new ResponseResult<String>().FAIL("导入数据失败,员工" + manager.getManager() + "不存在"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.saveCustomerPersonal(customerPersonalTOI); |
|
|
|
this.saveCustomerPersonal(customerPersonalTOI); |
|
|
@ -390,14 +390,14 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerDao, CustomerEntity |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (customerCompanyTOI.getManager() == null) { |
|
|
|
if (customerCompanyTOI.getManager() == null) { |
|
|
|
return new ResponseResult<String>().SUCCESS("导入数据失败,员工" + manager.getManager() + "不存在"); |
|
|
|
return new ResponseResult<String>().FAIL("导入数据失败,员工" + manager.getManager() + "不存在"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.saveCustomerCompany(customerCompanyTOI); |
|
|
|
this.saveCustomerCompany(customerCompanyTOI); |
|
|
|
} |
|
|
|
} |
|
|
|
return ResponseResult.SUCCESS(); |
|
|
|
return ResponseResult.SUCCESS(); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
return new ResponseResult<String>().SUCCESS("导入数据失败,请检查文件和数据格式或稍后再试"); |
|
|
|
return new ResponseResult<String>().FAIL("导入数据失败,请检查文件和数据格式或稍后再试"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|