edit-admin-goods_status

This commit is contained in:
lccsw
2021-09-30 17:29:31 +08:00
parent 8674d1f661
commit 9c81f4f7ab
+2 -2
View File
@@ -8,7 +8,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
*/
class Goods extends HD_Controller
{
private $statusAry = array(0 => '下架', 1 => '未售', 2 => '已售');
private $statusAry = array( 1 => '未售', 2 => '已售');
public function __construct()
{
@@ -31,7 +31,7 @@ class Goods extends HD_Controller
$params = $this->input->get();
$page = $params['page'] = $params['page'] ? intval($params['page']) : 1;
$size = $params['size'] = $params['size'] ? intval($params['size']) : 20;
$where = array('id<>1' => null);
$where = array('id<>1' => null,'status>'=>0);
$where_1 = $where_2 = $where_3 = array('m.id<>1' => null);
$autoList = array();
$search_type = 0;//0不连表,1联表筛选精品,2联表筛选销售,3联表筛选精品和销售