|
@@ -626,14 +626,14 @@ public class SupplierAdminController extends BaseController {
|
|
|
|
|
|
for (int i = 0; i < pMList.size(); i++) {
|
|
|
ServiceCategory serviceCategoryByName = iServiceCategoryService.getServiceCategoryByName(pMList.get(i), CommonCons.STORE_TYPE_TWO);
|
|
|
-
|
|
|
- String[] split = mainBusinessList.get(i).split(",");
|
|
|
- int j = 0;
|
|
|
- for (String s : split) {
|
|
|
- pmBusiness += serviceCategoryByName.getId() + s + ",";
|
|
|
+ if (serviceCategoryByName != null) {
|
|
|
+ String[] split = mainBusinessList.get(i).split(",");
|
|
|
+ int j = 0;
|
|
|
+ for (String s : split) {
|
|
|
+ pmBusiness += serviceCategoryByName.getId() + s + ",";
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
provider.setMianBusinesss(provider.getMianBusiness().replace(";", ","));
|
|
|
if (provider.getMianBusinesss().lastIndexOf(",") > 0) {
|
|
|
provider.setMianBusinesss(provider.getMianBusinesss().substring(0, provider.getMianBusinesss().lastIndexOf(",")));
|