|
@@ -6,6 +6,7 @@ import com.caimei.www.service.page.SupplierService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
@@ -32,8 +33,10 @@ public class SupplierServiceImpl implements SupplierService {
|
|
|
@Override
|
|
|
public SupplierDetail getSupplierById(Integer supplierId) {
|
|
|
SupplierDetail supplier = supplierDao.getSupplierById(supplierId);
|
|
|
- String[] businessScope = supplier.getBusinessScope().split("/");
|
|
|
- supplier.setBusinessScopeArr(businessScope);
|
|
|
+ if (!StringUtils.isEmpty(supplier.getBusinessScope())) {
|
|
|
+ String[] businessScope = supplier.getBusinessScope().split("/");
|
|
|
+ supplier.setBusinessScopeArr(businessScope);
|
|
|
+ }
|
|
|
return supplier;
|
|
|
}
|
|
|
|