|
|
@@ -39,7 +39,7 @@ public class ProductController extends CommonController{
|
|
|
public void getProduceData(){
|
|
|
JSONObject obj = new JSONObject();
|
|
|
|
|
|
- List<Record> t_jz_productList = Db.find("SELECT i.sku,i.kouwei,p.product_name,i.id,i.product_id,p.xiang_num,p.tuo_num from t_jz_item i left join t_jz_product p on (i.product_id = p.id) where p.line_on = 1");
|
|
|
+ List<Record> t_jz_productList = Db.find("SELECT i.sku,i.kouwei,p.product_name,i.id,i.product_id,p.xiang_num,p.tuo_num from t_jz_item i left join t_jz_product p on (i.product_id = p.id) where p.line_on = 1 and i.sku is not null");
|
|
|
|
|
|
|
|
|
obj.put("products", t_jz_productList);
|