| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- // +---------------------------------------------------------------------+
- // | NiuCloud | [ WE CAN DO IT JUST NiuCloud ] |
- // +---------------------------------------------------------------------+
- // | Copy right 2019-2029 www.niucloud.com |
- // +---------------------------------------------------------------------+
- // | Author | NiuCloud <niucloud@outlook.com> |
- // +---------------------------------------------------------------------+
- // | Repository | https://github.com/niucloud/framework.git |
- // +---------------------------------------------------------------------+
- namespace addon\replacebuy\model;
- use app\model\BaseModel;
- class GoodsSku extends BaseModel
- {
- /**
- * 获取商品分页列表
- * @param array $condition
- * @param number $page
- * @param string $page_size
- * @param string $order
- * @param string $field
- */
- public function getGoodsSkuPageList($condition = [], $page = 1, $page_size = PAGE_LIST_ROWS, $order = 'gs.create_time desc', $field = '*')
- {
- $alias = 'gs';
- $join = [
- [
- 'goods g',
- 'g.goods_id = gs.goods_id',
- 'inner'
- ]
- ];
- $field = 'gs.*';
- $list = model('goods_sku')->pageList($condition, $field, $order, $page, $page_size, $alias, $join);
- return $this->success($list);
- }
- }
|