Bläddra i källkod

商品上线时,审核通过时添加备注

wufeng 2 år sedan
förälder
incheckning
eaf883b1e8
2 ändrade filer med 4 tillägg och 4 borttagningar
  1. 1 3
      app/admin/controller/Good.php
  2. 3 1
      app/admin/controller/Goodup.php

+ 1 - 3
app/admin/controller/Good.php

@@ -918,12 +918,10 @@ class Good extends Base
         if($param['good_name']!="") $where[]=['c.good_name','like','%'.$param['good_name'].'%'];
         if($param['spuCode']!="") $where[]=['b.spuCode','like','%'.$param['spuCode'].'%'];
 
-
-
-
         $count = Db::name("good_log")
             ->alias('a')
             ->join("good_stock b","b.id=a.id","left")
+            ->leftJoin('good c','c.spuCode=b.spuCode')
             ->where($where)
             ->count();
         $total = ceil($count/$param['size']);

+ 3 - 1
app/admin/controller/Goodup.php

@@ -1605,6 +1605,8 @@ class Goodup extends Base
         if($token==''){
             return error_show(105,"参数token不能为空");
         }
+        $exam_remark = isset($this->post['exam_remark'])&& $this->post['exam_remark']!='' ? trim($this->post['exam_remark']):"";
+
         $user =GetUserInfo($token);
         if(empty($user)||$user['code']!=0){
             return error_show(1002,"用户数据不存在");
@@ -1672,7 +1674,7 @@ class Goodup extends Base
                     "exam_status"=>4,
                     "exam_id"=>$createrid,
                     "exam_name"=>$creater,
-                    "exam_remark"=>'',
+                    "exam_remark"=>$exam_remark,
                     "addtime"=>date("Y-m-d H:i:s")
                 ];
                 $inr=Db::name("good_exam")->insert($data);