|
@@ -410,9 +410,9 @@ class Suppler extends BaseController
|
|
|
}
|
|
|
$join = Db::name('supplier')->where(['id'=>$id,'is_del'=>0])->save($data);
|
|
|
if($join){
|
|
|
- $item = Db::name('supplier_contact')->where(['code'=>$join['code']])->find();
|
|
|
+ $item = Db::name('supplier_contact')->where(['code'=>$info['code']])->find();
|
|
|
$temp = [];
|
|
|
- isset($item['id']) && $item['id'] !== "" ? $temp['id'] = $item['id'] : '';
|
|
|
+ isset($item['id']) && $item['id'] !== "" ? $temp['id'] =$item['id'] : '';
|
|
|
$temp['code'] = $info['code'];
|
|
|
$temp['contactor'] = $contactor;
|
|
|
$temp['mobile'] = $mobile;
|