|
@@ -324,7 +324,9 @@ public class OkkiShowlistServiceImpl extends ServiceImpl<OkkiShowlistMapper, Okk
|
|
|
String[] split = pidList.split(",");
|
|
|
productListParam.setPid_list(split);
|
|
|
}
|
|
|
- productListParam.setSid(okkiProductLists.get(0).getSid());
|
|
|
+ if (okkiProductLists.get(0) != null && okkiProductLists.get(0).getSid() > 0) {
|
|
|
+ productListParam.setSid(okkiProductLists.get(0).getSid());
|
|
|
+ }
|
|
|
pushShowlistParam.setProduct_list(productListParam);
|
|
|
// highlight
|
|
|
HighlightParam highlightParam = new HighlightParam();
|
|
@@ -378,7 +380,9 @@ public class OkkiShowlistServiceImpl extends ServiceImpl<OkkiShowlistMapper, Okk
|
|
|
recommendedProductParam.setProduct_list_type(okkiRecommendedProducts.get(0).getProductListType());
|
|
|
recommendedProductParam.setTitle(okkiRecommendedProducts.get(0).getTitle());
|
|
|
recommendedProductParam.setSubtitles(okkiRecommendedProducts.get(0).getSubtitles());
|
|
|
- recommendedProductParam.setSid(okkiRecommendedProducts.get(0).getSid());
|
|
|
+ if (okkiRecommendedProducts.get(0) != null && okkiRecommendedProducts.get(0).getSid() > 0) {
|
|
|
+ recommendedProductParam.setSid(okkiRecommendedProducts.get(0).getSid());
|
|
|
+ }
|
|
|
// 将字符串转数组
|
|
|
String pidList1 = okkiRecommendedProducts.get(0).getPidList();
|
|
|
if (!"".equals(pidList1) && pidList1 != null) {
|