|
|
@@ -289,7 +289,10 @@ public class AddPartnerServiceImpl implements AddPartnerService {
|
|
|
} else {
|
|
|
partner.setCustomer(Constant.NO);
|
|
|
}
|
|
|
- Enterprise enterprise = enterpriseDao.findOne(record.getCustSpaceUU());
|
|
|
+ Enterprise enterprise = null;
|
|
|
+ if (null != record.getCustSpaceUU()) {
|
|
|
+ enterprise = enterpriseDao.findOne(record.getCustSpaceUU());
|
|
|
+ }
|
|
|
if (null == enterprise) {
|
|
|
enterprise = enterpriseDao.findEnterpriseByEnBussinessCode(record.getCustUID());
|
|
|
}
|