天天看點

thinkphp5 根據條件查詢表中多列資料

$where = array();
        $where['discount_price']  = ['<',0];
        $where['state'] = 1;
        $list = db('ns_goods')->where($where)->group('goods_id')->field('goods_id,discount_price')->select();;