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