Commit eab90db1 by 任晓松

产品推荐

parent ba36942f
......@@ -222,6 +222,9 @@ class ProductService extends ServiceBase {
sql = `select DISTINCT(recommend_code) from p_product_recommend where product_code = '${actionBody.productCode}'`;
}
result = await this.customQuery(sql);
if(result.length==0){
return system.getResultFail(-1,'暂无配置数据')
}
let codes = "";
result.forEach(item =>{
codes += "'"+item.recommend_code+"',";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment