<?php
return array (
  'get_ads_position' => 
  array (
    'dirname' => '/default',
    'typename' => '',
    'name' => 'get_ads_position',
    'cnname' => '取广告位下的广告',
    'seltable' => 'other_ads',
    'limit_start' => '0',
    'limit_end' => '10',
    'pagesize' => 0,
    'datasource_name' => NULL,
    'where' => 
    array (
      0 => 
      array (
        'name' => 'ads_position',
        'condition' => '=',
        'val' => '$position',
      ),
    ),
    'sort' => 
    array (
      0 => 
      array (
        'name' => 'ads_sort',
        'by' => 'asc',
      ),
    ),
    'fields' => 
    array (
      0 => 'ads_html',
    ),
    'param_name' => 
    array (
      0 => 'position',
    ),
  ),
  'get_folder_article' => 
  array (
    'dirname' => '/default',
    'typename' => '',
    'name' => 'get_folder_article',
    'cnname' => '取指定目录下指定数量文章',
    'seltable' => 'article',
    'limit_start' => '0',
    'limit_end' => '$num',
    'pagesize' => 0,
    'datasource_name' => NULL,
    'where' => 
    array (
      0 => 
      array (
        'name' => 'article_folder_id',
        'condition' => '=',
        'val' => '$folder_id',
      ),
    ),
    'sort' => 
    array (
    ),
    'fields' => 
    array (
      0 => 'article_id',
      1 => 'article_title',
    ),
    'oldname' => '',
    'param_name' => 
    array (
      0 => 'folder_id',
      1 => 'num',
    ),
  ),
  'get_folder_bykey' => 
  array (
    'dirname' => '/default',
    'typename' => '',
    'name' => 'get_folder_bykey',
    'cnname' => '取指定标识的所有目录',
    'seltable' => 'article_folder',
    'limit_start' => '0',
    'limit_end' => '0',
    'pagesize' => 0,
    'datasource_name' => NULL,
    'where' => 
    array (
      0 => 
      array (
        'name' => 'folder_key',
        'condition' => '=',
        'val' => '$key',
      ),
    ),
    'sort' => 
    array (
    ),
    'fields' => 
    array (
      0 => 'folder_id',
      1 => 'folder_name',
    ),
    'param_name' => 
    array (
      0 => 'key',
    ),
  ),
  'category_childs' => 
  array (
    'dirname' => '/default',
    'typename' => '',
    'name' => 'category_childs',
    'cnname' => '指定分类id的一级子分类',
    'seltable' => 'mall_goods_category',
    'limit_start' => '0',
    'limit_end' => '$num',
    'pagesize' => 0,
    'datasource_name' => NULL,
    'where' => 
    array (
      0 => 
      array (
        'name' => 'category_pid',
        'condition' => '=',
        'val' => '$id',
      ),
    ),
    'sort' => 
    array (
      0 => 
      array (
        'name' => 'category_sort',
        'by' => 'asc',
      ),
    ),
    'fields' => 
    array (
      0 => 'category_id',
      1 => 'category_name',
      2 => 'category_pic',
    ),
    'param_name' => 
    array (
      0 => 'id',
      1 => 'num',
    ),
  ),
  'category_goods' => 
  array (
    'dirname' => '/default',
    'typename' => '',
    'name' => 'category_goods',
    'cnname' => '指定分类与数量的商品',
    'seltable' => 'mall_goods',
    'limit_start' => '0',
    'limit_end' => '$num',
    'pagesize' => 0,
    'datasource_name' => NULL,
    'where' => 
    array (
      0 => 
      array (
        'name' => 'category_pids',
        'condition' => 'like',
        'val' => '$id',
      ),
      1 => 
      array (
        'name' => 'goods_state',
        'condition' => '>',
        'val' => '0',
      ),
    ),
    'sort' => 
    array (
      0 => 
      array (
        'name' => 'goods_addtime',
        'by' => 'desc',
      ),
    ),
    'fields' => 
    array (
      0 => 'goods_id',
      1 => 'goods_name',
      2 => 'goods_price',
      3 => 'goods_price_market',
      4 => 'goods_pic',
      5 => 'goods_pic_small',
      6 => 'goods_sold',
    ),
    'param_name' => 
    array (
      0 => 'id',
      1 => 'num',
    ),
  ),
  'get_goods_hot' => 
  array (
    'dirname' => '/default',
    'typename' => '',
    'name' => 'get_goods_hot',
    'cnname' => '取指定数量最热销商品',
    'seltable' => 'mall_goods',
    'limit_start' => '$start',
    'limit_end' => '$end',
    'pagesize' => 0,
    'datasource_name' => NULL,
    'where' => 
    array (
      0 => 
      array (
        'name' => 'goods_state',
        'condition' => '>',
        'val' => '0',
      ),
    ),
    'sort' => 
    array (
      0 => 
      array (
        'name' => 'goods_sold',
        'by' => 'desc',
      ),
    ),
    'fields' => 
    array (
      0 => 'goods_id',
      1 => 'goods_shop_id',
      2 => 'goods_name',
      3 => 'goods_price',
      4 => 'goods_price_market',
      5 => 'goods_pic',
      6 => 'goods_pic_small',
      7 => 'goods_hits',
      8 => 'goods_sold',
    ),
    'param_name' => 
    array (
      0 => 'start',
      1 => 'end',
    ),
  ),
  'get_goods_bysold' => 
  array (
    'dirname' => '/default',
    'typename' => '',
    'name' => 'get_goods_bysold',
    'cnname' => '取指定数量热销商品',
    'seltable' => 'mall_goods',
    'limit_start' => '$start',
    'limit_end' => '$end',
    'pagesize' => 0,
    'datasource_name' => NULL,
    'where' => 
    array (
      0 => 
      array (
        'name' => 'category_pids',
        'condition' => 'like',
        'val' => '$cid',
      ),
      1 => 
      array (
        'name' => 'goods_state',
        'condition' => '>',
        'val' => '0',
      ),
    ),
    'sort' => 
    array (
      0 => 
      array (
        'name' => 'goods_sold',
        'by' => 'desc',
      ),
    ),
    'fields' => 
    array (
      0 => 'goods_id',
      1 => 'goods_shop_id',
      2 => 'goods_name',
      3 => 'goods_store',
      4 => 'goods_price',
      5 => 'goods_price_market',
      6 => 'goods_pic',
      7 => 'goods_pic_small',
      8 => 'goods_hits',
      9 => 'goods_sold',
    ),
    'param_name' => 
    array (
      0 => 'cid',
      1 => 'start',
      2 => 'end',
    ),
  ),
  'get_goods_bytime' => 
  array (
    'dirname' => '/default',
    'typename' => '',
    'name' => 'get_goods_bytime',
    'cnname' => '取指定数量最新商品',
    'seltable' => 'mall_goods',
    'limit_start' => '$start',
    'limit_end' => '$end',
    'pagesize' => 0,
    'datasource_name' => NULL,
    'where' => 
    array (
      0 => 
      array (
        'name' => 'category_pids',
        'condition' => 'like',
        'val' => '$cid',
      ),
      1 => 
      array (
        'name' => 'goods_state',
        'condition' => '>',
        'val' => '0',
      ),
    ),
    'sort' => 
    array (
      0 => 
      array (
        'name' => 'goods_id',
        'by' => 'desc',
      ),
    ),
    'fields' => 
    array (
      0 => 'goods_id',
      1 => 'goods_name',
      2 => 'goods_store',
      3 => 'goods_price',
      4 => 'goods_price_market',
      5 => 'goods_pic',
      6 => 'goods_pic_small',
      7 => 'goods_hits',
      8 => 'goods_sold',
    ),
    'param_name' => 
    array (
      0 => 'cid',
      1 => 'start',
      2 => 'end',
    ),
  ),
  'get_goods_tj1' => 
  array (
    'dirname' => '/default',
    'typename' => '',
    'name' => 'get_goods_tj1',
    'cnname' => '取推荐1商品',
    'seltable' => 'mall_goods',
    'limit_start' => '$start',
    'limit_end' => '$end',
    'pagesize' => 0,
    'datasource_name' => NULL,
    'where' => 
    array (
      0 => 
      array (
        'name' => 'goods_state',
        'condition' => '>',
        'val' => '0',
      ),
      1 => 
      array (
        'name' => 'goods_tj1',
        'condition' => '=',
        'val' => '1',
      ),
    ),
    'sort' => 
    array (
      0 => 
      array (
        'name' => 'goods_id',
        'by' => 'desc',
      ),
    ),
    'fields' => 
    array (
      0 => 'goods_id',
      1 => 'goods_shop_id',
      2 => 'goods_name',
      3 => 'goods_price',
      4 => 'goods_price_market',
      5 => 'goods_pic',
      6 => 'goods_pic_small',
      7 => 'goods_sold',
    ),
    'param_name' => 
    array (
      0 => 'start',
      1 => 'end',
    ),
  ),
  'get_goods_tj2' => 
  array (
    'dirname' => '/default',
    'typename' => '',
    'name' => 'get_goods_tj2',
    'cnname' => '取推荐2商品',
    'seltable' => 'mall_goods',
    'limit_start' => '$start',
    'limit_end' => '$end',
    'pagesize' => 0,
    'datasource_name' => NULL,
    'where' => 
    array (
      0 => 
      array (
        'name' => 'category_pids',
        'condition' => 'like',
        'val' => '$cid',
      ),
      1 => 
      array (
        'name' => 'goods_tj2',
        'condition' => '=',
        'val' => '1',
      ),
      2 => 
      array (
        'name' => 'goods_state',
        'condition' => '>',
        'val' => '0',
      ),
    ),
    'sort' => 
    array (
      0 => 
      array (
        'name' => 'goods_id',
        'by' => 'desc',
      ),
    ),
    'fields' => 
    array (
      0 => 'goods_id',
      1 => 'goods_shop_id',
      2 => 'goods_name',
      3 => 'goods_price',
      4 => 'goods_price_vip',
      5 => 'goods_price_market',
      6 => 'goods_pic',
      7 => 'goods_pic_small',
      8 => 'goods_hits',
      9 => 'goods_sold',
    ),
    'param_name' => 
    array (
      0 => 'cid',
      1 => 'start',
      2 => 'end',
    ),
  ),
);