|
|
@@ -93,6 +93,8 @@ class Beihuogl extends Start_Controller {
|
|
|
$this->_ccwlbhdownload();
|
|
|
}elseif($arg == 'ckexcel'){
|
|
|
$this->_ckexcel($arg_array);
|
|
|
+ }elseif($arg == 'checkdcdsku'){
|
|
|
+ $this->_checkdcdsku($arg_array);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
@@ -1629,6 +1631,31 @@ class Beihuogl extends Start_Controller {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private function _checkdcdsku($arg_array){
|
|
|
+ $dcd_no = $arg_array[0];
|
|
|
+ $list = $this->bhdcd->find_all("dcd_no = '".$dcd_no."' ");
|
|
|
+ echo "<pre>";
|
|
|
+ foreach($list as $k=>$v){
|
|
|
+ if(empty($v['sku'])){
|
|
|
+ $goods_info = $this->goods->find("jm = '".$v['jm']."' ");
|
|
|
+ if(!empty($goods_info)){
|
|
|
+ $update_arr = [
|
|
|
+ 'sku'=>$goods_info['sku'],
|
|
|
+ 'title'=>$goods_info['title'],
|
|
|
+ 'number'=>trim(str_replace("-","",$goods_info['features'])),
|
|
|
+ 'features'=>$goods_info['features'],
|
|
|
+ ];
|
|
|
+ var_dump($update_arr);
|
|
|
+ // $this->bhdcd->save([
|
|
|
+
|
|
|
+ // ],$v['id']);
|
|
|
+ }else{
|
|
|
+ var_dump($v['jm'].'的sku不存在');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private function _ckbherprk($arg_array){
|
|
|
if($this->input->method() === 'post'){
|
|
|
$data = $this->input->post(null,true);
|