|
@@ -59,9 +59,12 @@ public class ProductSourceServiceImpl extends ServiceImpl<IProductSourceMapper,
|
|
|
}
|
|
|
JSONArray ids = new JSONArray();
|
|
|
if(param.getKeyword().contains(",")){
|
|
|
- ids.addAll(Arrays.asList(param.getKeyword().split(",")));
|
|
|
+ String[] split = param.getKeyword().split(",");
|
|
|
+ for (String s : split) {
|
|
|
+ ids.add(s.trim());
|
|
|
+ }
|
|
|
}else {
|
|
|
- ids.add(param.getKeyword());
|
|
|
+ ids.add(param.getKeyword().trim());
|
|
|
}
|
|
|
CdfProductListByIdsRequest idsRequest = new CdfProductListByIdsRequest(ids);
|
|
|
CdfProductListByIdsVo vos = cdfHKClient.getProductListByIds(productSource.getCdfHost(),productSource.getCdfMchId(),idsRequest);
|