|
@@ -114,7 +114,7 @@ class Goodup extends Base
|
|
|
}
|
|
|
$isonline = isset($this->post['isonline']) && $this->post['isonline']!=="" ? $this->post['isonline']:"";
|
|
|
if($isonline!==""){
|
|
|
- $condit[] =['b.exam_status',"=",6];
|
|
|
+ $condit[] =['b.exam_status',"=",3];
|
|
|
// if($isonline==1){
|
|
|
// $condit[] =['b.exam_status',"=",6];
|
|
|
// }else{
|
|
@@ -194,11 +194,11 @@ class Goodup extends Base
|
|
|
//查询一下这些spucode是否在平台上成功上线
|
|
|
$exam_statuss = Db::name('good_platform')
|
|
|
->whereIn('spuCode',array_column($list,'spuCode'))
|
|
|
- ->where(['is_del'=>0,'exam_status'=>6])//exam_status==6表示上线审核成功
|
|
|
+ ->where(['is_del'=>0,'exam_status'=>3])//exam_status==6表示上线审核成功
|
|
|
->column('id','spuCode');
|
|
|
$exam_status_yz = Db::name('platform_youzan')
|
|
|
->whereIn('spuCode', array_column($list, 'spuCode'))
|
|
|
- ->where(['is_del' => 0, 'exam_status' => 6])//exam_status==6表示上线审核成功
|
|
|
+ ->where(['is_del' => 0, 'exam_status' => 3])//exam_status==6表示上线审核成功
|
|
|
->column('id', 'spuCode');
|
|
|
|
|
|
$account = checkHasAccountBySupplierNos(array_column($list, 'supplierNo'));
|
|
@@ -336,7 +336,7 @@ class Goodup extends Base
|
|
|
}
|
|
|
$isonline = isset($this->post['isonline']) && $this->post['isonline'] !== "" ? $this->post['isonline'] : "";
|
|
|
if ($isonline !== "") {
|
|
|
- $condit[] = ['b.exam_status', "=", 6];
|
|
|
+ $condit[] = ['b.exam_status', "=", 3];
|
|
|
// if($isonline==1){
|
|
|
// $condit[] =['b.exam_status',"=",6];
|
|
|
// }else{
|
|
@@ -407,11 +407,11 @@ class Goodup extends Base
|
|
|
//查询一下这些spucode是否在平台上成功上线
|
|
|
$exam_statuss = Db::name('good_platform')
|
|
|
->whereIn('spuCode', array_column($list, 'spuCode'))
|
|
|
- ->where(['is_del' => 0, 'exam_status' => 6])//exam_status==6表示上线审核成功
|
|
|
+ ->where(['is_del' => 0, 'exam_status' => 3])//exam_status==3表示上线审核成功
|
|
|
->column('id', 'spuCode');
|
|
|
$exam_status_yz = Db::name('platform_youzan')
|
|
|
->whereIn('spuCode', array_column($list, 'spuCode'))
|
|
|
- ->where(['is_del' => 0, 'exam_status' => 6])//exam_status==6表示上线审核成功
|
|
|
+ ->where(['is_del' => 0, 'exam_status' => 3])//exam_status==3表示上线审核成功
|
|
|
->column('id', 'spuCode');
|
|
|
|
|
|
$account = checkHasAccountBySupplierNos(array_column($list, 'supplierNo'));
|
|
@@ -833,7 +833,8 @@ class Goodup extends Base
|
|
|
if($data==false){
|
|
|
return error_show(1004,"未找到商品数据");
|
|
|
}
|
|
|
- $is_down = Db::name("good_platform")->where(["spuCode"=>$supcode,"is_del"=>0])->where("exam_status","<>",8)->find();
|
|
|
+ $is_down = Db::name("good_platform")->where(["spuCode"=>$supcode,"is_del"=>0])->where("exam_status","<>",5)
|
|
|
+ ->find();
|
|
|
if($is_down!=false){
|
|
|
return error_show(1004,"存在未下线商品数据");
|
|
|
}
|
|
@@ -1105,7 +1106,7 @@ class Goodup extends Base
|
|
|
if($datas==false){
|
|
|
return error_show(1004,"未找到商品数据");
|
|
|
}
|
|
|
- $is_down = Db::name("good_platform")->where(["spuCode"=>$supcode,"is_del"=>0])->where("exam_status","<>",8)
|
|
|
+ $is_down = Db::name("good_platform")->where(["spuCode"=>$supcode,"is_del"=>0])->where("exam_status","<>",5)
|
|
|
->find();
|
|
|
if($is_down!=false){
|
|
|
return error_show(1004,"存在未下线商品数据");
|
|
@@ -1472,7 +1473,7 @@ class Goodup extends Base
|
|
|
->field('gp.id,gp.exam_status,gp.skuCode')
|
|
|
->leftJoin('good_platform gp', 'gp.spuCode=g.spuCode AND gp.is_del=0')
|
|
|
->where(['g.spuCode' => $supcode, 'g.is_del' => 0])
|
|
|
- ->whereNotIn('gp.exam_status', [1, 8])
|
|
|
+ ->where('gp.exam_status',"<>",5)
|
|
|
->select()->toArray();
|
|
|
|
|
|
if (!empty($good)) throw new Exception('该商品需要下线之后才能删除');
|
|
@@ -1488,7 +1489,7 @@ class Goodup extends Base
|
|
|
|
|
|
Db::name("good_platform")
|
|
|
->where(['spuCode' => $supcode, 'is_del' => 0])
|
|
|
- ->whereIn('exam_status', [1, 8])
|
|
|
+ ->where('exam_status', "<>",5)
|
|
|
->update(['is_del' => 1, 'updatetime' => date('Y-m-d H:i:s')]);
|
|
|
Db::name("good_ladder")->where(["skuCode"=>array_column($good,"skuCode"),"is_del"=>0])->update(['is_del'
|
|
|
=> 1, 'updatetime' => date('Y-m-d H:i:s')]);
|