|
@@ -62,6 +62,7 @@ class good extends Command
|
|
"cat_name"=>$v['cat_id'],
|
|
"cat_name"=>$v['cat_id'],
|
|
"unit_name"=>$v['good_unit'],
|
|
"unit_name"=>$v['good_unit'],
|
|
"isZx"=>$v['isZx'],
|
|
"isZx"=>$v['isZx'],
|
|
|
|
+ "isCombind"=>$v['is_combind'],
|
|
"exam_info"=>"",
|
|
"exam_info"=>"",
|
|
"status"=>0,
|
|
"status"=>0,
|
|
"addtime"=>date("Y-m-d H:i:s"),
|
|
"addtime"=>date("Y-m-d H:i:s"),
|
|
@@ -87,7 +88,7 @@ class good extends Command
|
|
->withAttr("good_unit",function ($m){
|
|
->withAttr("good_unit",function ($m){
|
|
return Db::connect('mysql_wsm')->name('unit')->where("id",$m)->value("unit","");
|
|
return Db::connect('mysql_wsm')->name('unit')->where("id",$m)->value("unit","");
|
|
})->field("spuCode,good_name,cat_id,good_unit,craft_desc,after_sales,supplierNo,companyNo,supplierName,companyName,good_img,
|
|
})->field("spuCode,good_name,cat_id,good_unit,craft_desc,after_sales,supplierNo,companyNo,supplierName,companyName,good_img,
|
|
- good_info_img,good_thumb_img,creater,createrid,is_stock,0 isZx")
|
|
|
|
|
|
+ good_info_img,good_thumb_img,creater,createrid,is_stock,0 isZx,is_combind")
|
|
->where("updatetime",">=", $this->date)
|
|
->where("updatetime",">=", $this->date)
|
|
->where("status","=", 1)
|
|
->where("status","=", 1)
|
|
->select()->toArray();
|
|
->select()->toArray();
|
|
@@ -104,7 +105,7 @@ class good extends Command
|
|
return Db::connect('mysql_wsm')->name('unit')->where("id",$v)->value("unit","");
|
|
return Db::connect('mysql_wsm')->name('unit')->where("id",$v)->value("unit","");
|
|
})
|
|
})
|
|
->field("spuCode,good_name,craft_desc,'' after_sales,cat_id,good_unit,supplierNo,companyNo,supplierName,companyName,good_img,
|
|
->field("spuCode,good_name,craft_desc,'' after_sales,cat_id,good_unit,supplierNo,companyNo,supplierName,companyName,good_img,
|
|
- good_info_img,good_thumb_img,creater,createrid,0 is_stock,1 isZx")
|
|
|
|
|
|
+ good_info_img,good_thumb_img,creater,createrid,0 is_stock,1 isZx,is_combind")
|
|
->where("addtime",">=", $this->date)
|
|
->where("addtime",">=", $this->date)
|
|
->select()->toArray();
|
|
->select()->toArray();
|
|
return $this->addGood($list);
|
|
return $this->addGood($list);
|