|
...
|
...
|
@@ -111,8 +111,7 @@ class Extension3915ModuleController extends BaseController |
|
|
|
}
|
|
|
|
$data = $this->param;
|
|
|
|
$moduleValueModel = new ExtensionModuleValue();
|
|
|
|
//todo::优先截断表
|
|
|
|
$moduleValueModel->truncate();
|
|
|
|
|
|
|
|
$key_filedId = [];
|
|
|
|
$resultData = [];
|
|
|
|
foreach ($data as $k => $v){
|
|
...
|
...
|
@@ -131,7 +130,11 @@ class Extension3915ModuleController extends BaseController |
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$moduleValueModel->insertAll($resultData);
|
|
|
|
if(!empty($resultData)){
|
|
|
|
//todo::优先截断表
|
|
|
|
$moduleValueModel->truncate();
|
|
|
|
$moduleValueModel->insertAll($resultData);
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$resultData);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|