|
...
|
...
|
@@ -80,11 +80,13 @@ class UpdateBuildConfiguration extends Command |
|
|
|
*/
|
|
|
|
public function getProduct(){
|
|
|
|
$productModel = new Product();
|
|
|
|
$lists = $productModel->list();
|
|
|
|
$lists = $productModel->list([],'id',['id','content']);
|
|
|
|
$detailModel = new Detail();
|
|
|
|
if(!empty($lists)){
|
|
|
|
foreach ($lists as $k => $v){
|
|
|
|
echo date('Y-m-d H:i:s') . '产品id:'.$v['id'] . PHP_EOL;
|
|
|
|
$info = $detailModel->read(['product_id'=>$v['id']],['id']);
|
|
|
|
if($info === false){
|
|
|
|
$data = [
|
|
|
|
'product_id'=>$v['id'],
|
|
|
|
'column_id'=>1,
|
|
...
|
...
|
@@ -98,6 +100,7 @@ class UpdateBuildConfiguration extends Command |
|
|
|
$detailModel->insert($data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|