123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977 |
- <?php
- # 获取分类权限
- $status = array
- (
- 1 => '合作中',
- 2 => '已终止合作',
- //3 => '申请合作中',
- );
- $type = array
- (
- 1 => '体验店',
- 2 => '零售店',
- 10 => '平台商城',#'平台店',
- );
- $invoice = array
- (
- 1 => '可以开发票',
- 2 => '不可以开发票',
- );
- $is_agent = array
- (
- 1 => '代理商可以归店',
- 2 => '代理商不可以归店',
- );
- $col = 'id,name,`desc`,ps_cash,free_ps_cash,truename,mobile,lng,lat,address,open,worktime,method,gotime,city,area,province,county,town,coupon_city,pdesc,license,food_license,jy_license,license_number,company_name,coord_address,invoice,type,mid,sid';
- $act = function()
- {
- $info = Dever::db('act/info')->select();
-
- $id = Dever::input('where_id');
- $coupon = Dever::db('shop/coupon')->select(array('shop_id' => $id));
- if ($coupon) {
- foreach ($coupon as $k => $v) {
- $coupon_info = Dever::db('goods/coupon')->find($v['coupon_id']);
- if (isset($coupon_info['method'])) {
- $prefix = '('.Dever::db('goods/coupon')->config['method'][$coupon_info['method']].')';
- $coupon[$k]['name'] = $prefix . $coupon_info['name'];
- }
- }
- }
- foreach ($info as $k => $v) {
- if ($v['id'] == 1) {
- $info[$k]['child'] = $coupon;
- }
- }
- $info['state'] = 2;//1是无需记录上级id,字符串逗号隔开。2是需要记录上级id,json格式
- return $info;
- };
- $yes = array
- (
- 1 => '可用',
- 2 => '不可用',
- );
- $open = array
- (
- 1 => '开启',
- 2 => '关闭',
- );
- $method = array
- (
- 1 => '自提',
- 2 => '外送',
- 3 => '以上全支持',
- );
- $stat_type = Dever::db('cash/shop')->config['config_type'];
- $add = false;
- //$add = array('银联签约','"sign&search_option_shop_id={id}&oper_table=info&where_id={id}"', '"{mid}" == ""');
- return array
- (
- # 表名
- 'name' => 'info',
- # 显示给用户看的名称
- 'lang' => '门店列表',
- # 后台菜单排序
- 'order' => 99,
- 'act' => $act,
- 'config_col' => $col,
- 'check' => 'sid',
- 'config_type' => $type,
- 'end' => array
- (
- 'insert' => 'shop/lib/manage.infoUpdate',
- 'update' => 'shop/lib/manage.infoUpdate',
- ),
- # 数据结构
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => '店铺ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'search' => 'order',
- 'list' => true,
- 'order' => 'desc',
- ),
- 'hr1' => array
- (
- 'name' => '门店基本信息',
- 'class' => '',//本项必须填写
- 'attr' => '',
- ),
- 'uid' => array
- (
- 'type' => 'int-11',
- 'name' => '用户名',
- 'default' => '0',
- 'desc' => '请选择用户',
- 'match' => 'is_numeric',
- //'update' => 'text',
- //'search' => 'select',
- 'searchs' => array
- (
- 'api' => 'passport/user-select',
- 'col' => 'username',
- 'result' => 'id',
- ),
- //'list' => '{uid} > 0 ? Dever::load("passport/user-find#username", {uid}) : "匿名用户"',
- ),
- 'sid' => array
- (
- 'type' => 'varchar-30',
- 'name' => '店铺编号-一般为5位数字,不能重复',
- 'default' => '',
- 'desc' => '店铺编号',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
-
- 'name' => array
- (
- 'type' => 'varchar-300',
- 'name' => '门店名称',
- 'default' => '',
- 'desc' => '请输入门店名称',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
- 'desc' => array
- (
- 'type' => 'varchar-800',
- 'name' => '门店介绍',
- 'default' => '',
- 'desc' => '门店介绍',
- 'match' => 'is_string',
- 'update' => 'textarea',
- ),
- 'truename' => array
- (
- 'type' => 'varchar-100',
- 'name' => '联系人姓名',
- 'default' => '',
- 'desc' => '请输入联系人姓名',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
- 'mobile' => array
- (
- 'type' => 'bigint-11',
- 'name' => '联系人电话',
- 'default' => '',
- 'desc' => '请输入联系人电话',
- 'match' => 'is_numeric',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
- 'idcard' => array
- (
- 'type' => 'varchar-32',
- 'name' => '身份证号码',
- 'default' => '',
- 'desc' => '身份证号码',
- 'match' => Dever::rule('idcard'),
- 'update' => 'text',
- ),
- 'area' => array
- (
- 'type' => 'varchar-500',
- 'name' => '所在街道',
- 'default' => '',
- 'desc' => '所在街道',
- 'match' => 'option',
- 'search' => 'linkage',
- 'update' => 'linkage',
- 'option' => Dever::url('api.get?level_total=4', 'area'),
- //'list' => 'Dever::load("area/api.string", "{area}")',
- ),
- 'province' => array
- (
- 'type' => 'int-11',
- 'name' => '省份',
- 'default' => '',
- 'desc' => '省份',
- 'match' => 'option',
- //'update' => 'text',
- ),
- 'city' => array
- (
- 'type' => 'int-11',
- 'name' => '城市',
- 'default' => '',
- 'desc' => '城市',
- 'match' => 'option',
- //'update' => 'text',
- ),
- 'county' => array
- (
- 'type' => 'int-11',
- 'name' => '县区',
- 'default' => '',
- 'desc' => '县区',
- 'match' => 'option',
- //'update' => 'text',
- ),
- 'town' => array
- (
- 'type' => 'int-11',
- 'name' => '街道',
- 'default' => '',
- 'desc' => '街道',
- 'match' => 'option',
- //'update' => 'text',
- ),
- 'map' => array
- (
- 'type' => 'varchar-300',
- 'name' => '地理位置',
- 'default' => '',
- 'desc' => '地理位置',
- 'match' => 'is_string',
- # 如果是map,必须在config的base.php中设置map信息
- //'update' => 'map',
- ),
- 'lng' => array
- (
- 'type' => 'varchar-100',
- 'name' => '经度',
- 'default' => '',
- 'desc' => '经度',
- 'match' => 'option',
- //'update' => 'text',
- //'list' => true,
- ),
- 'lat' => array
- (
- 'type' => 'varchar-100',
- 'name' => '纬度',
- 'default' => '',
- 'desc' => '纬度',
- 'match' => 'option',
- //'update' => 'text',
- //'list' => true,
- ),
- 'coord_address' => array
- (
- 'type' => 'varchar-1000',
- 'name' => '门店坐标地址',
- 'default' => '',
- 'desc' => '门店坐标地址',
- 'match' => 'option',
- //'update' => 'text',
- //'list' => true,
- ),
- 'address' => array
- (
- 'type' => 'varchar-1000',
- 'name' => '门店地址',
- 'default' => '',
- 'desc' => '门店地址',
- 'match' => 'option',
- 'update' => 'text',
- //'list' => true,
- ),
- 'goods' => array
- (
- 'type' => 'text-255',
- 'name' => '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置库存',
- 'default' => '',
- 'desc' => '生产能力',
- 'match' => 'option',
- // 多级联动+多选
- 'update' => Dever::input('col') ? 'linkage' : false,
- 'option' => array(Dever::url('api.get', 'category'), 'cate_id', Dever::url('lib/info.getGoods', 'goods'), '快速设置', Dever::url('project/database/list?project=goods&table=info_sku&page_type=1&other=shop&other_id={where_id}&goods_id={id}', 'manage')),
- ),
- 'factory' => array
- (
- 'type' => 'text-255',
- 'name' => '分配工厂-请先选择地区,再选择工厂',
- 'default' => '',
- 'desc' => '分配工厂',
- 'match' => 'option',
- // 多级联动+多选
- 'update' => Dever::input('col') ? 'linkage' : false,
- 'option' => array(Dever::url('api.get?level_total=3', 'area'), 'city', Dever::url('lib/manage.getInfo', 'factory'), '分配工厂'),
- ),
- 'store' => array
- (
- 'type' => 'text-255',
- 'name' => '分配仓库-请先选择地区,再选择仓库',
- 'default' => '',
- 'desc' => '分配仓库',
- 'match' => 'option',
- // 多级联动+多选
- 'update' => Dever::input('col') ? 'linkage' : false,
- 'option' => array(Dever::url('api.get?level_total=3', 'area'), 'city', Dever::url('lib/manage.getInfo', 'store'), '分配仓库'),
- ),
- 'hr2' => array
- (
- 'name' => '门店营业设置',
- 'class' => '',//本项必须填写
- 'attr' => '',
- ),
- 'open' => array
- (
- 'type' => 'int-11',
- 'name' => '营业状态',
- 'default' => '1',
- 'desc' => '营业状态',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'option' => $open,
- 'search' => 'select',
- 'list' => true,
- ),
- 'method' => array
- (
- 'type' => 'int-11',
- 'name' => '门店能力',
- 'default' => '3',
- 'desc' => '门店能力',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'option' => $method,
- 'control' => 'method',
- ),
- 'worktime' => array
- (
- 'type' => 'varchar-100',
- 'name' => '营业时间-如10:00~22:00,24小时制',
- 'default' => '',
- 'desc' => '营业时间',
- 'match' => 'is_string',
- 'update' => 'text',
- //'show' => 'method=1,3',
- ),
- 'gotime' => array
- (
- 'type' => 'varchar-100',
- 'name' => '外送时间-如10:00~22:00,24小时制',
- 'default' => '',
- 'desc' => '外送时间',
- 'match' => 'is_string',
- //'update' => 'text',
- //'show' => 'method=2,3',
- ),
- 'hr3' => array
- (
- 'name' => '门店认证信息',
- 'class' => '',//本项必须填写
- 'attr' => '',
- ),
- 'license' => array
- (
- 'type' => 'varchar-150',
- 'name' => '营业执照',
- 'default' => '',
- 'desc' => '营业执照',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '8',
- 'place' => '660*660',
- ),
- 'license_number' => array
- (
- 'type' => 'varchar-200',
- 'name' => '营业执照号码',
- 'default' => '',
- 'desc' => '营业执照号码',
- 'match' => 'option',
- 'update' => 'text',
- ),
- 'company_name' => array
- (
- 'type' => 'varchar-200',
- 'name' => '公司名称',
- 'default' => '',
- 'desc' => '公司名称',
- 'match' => 'option',
- 'update' => 'text',
- ),
- 'idcard_front' => array
- (
- 'type' => 'varchar-150',
- 'name' => '身份证正面',
- 'default' => '',
- 'desc' => '身份证正面',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '8',
- 'place' => '660*660',
- ),
- 'idcard_back' => array
- (
- 'type' => 'varchar-150',
- 'name' => '身份证背面',
- 'default' => '',
- 'desc' => '身份证背面',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '8',
- 'place' => '660*660',
- ),
- 'jy_license' => array
- (
- 'type' => 'varchar-150',
- 'name' => '经营许可证',
- 'default' => '',
- 'desc' => '经营许可证',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '8',
- 'place' => '660*660',
- ),
- 'food_license' => array
- (
- 'type' => 'varchar-150',
- 'name' => '食品许可证',
- 'default' => '',
- 'desc' => '食品许可证',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '8',
- 'place' => '660*660',
- ),
- 'hr4' => array
- (
- 'name' => '其他设置',
- 'class' => '',//本项必须填写
- 'attr' => '',
- ),
- 'type' => array
- (
- 'type' => 'int-11',
- 'name' => '门店类型-自营为平台店,当没有找到加盟店时,将自动获取平台店',
- 'default' => '1',
- 'desc' => '门店类型',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'option' => $type,
- 'search' => 'select',
- 'list' => true,
- ),
- 'invoice' => array
- (
- 'type' => 'int-11',
- 'name' => '是否可以开发票',
- 'default' => '1',
- 'desc' => '是否可以开发票',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'option' => $invoice,
- ),
- 'is_agent' => array
- (
- 'type' => 'int-11',
- 'name' => '是否可以归店',
- 'default' => '1',
- 'desc' => '是否可以归店',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'value' => '2',
- 'option' => $is_agent,
- ),
- 'agent_mid' => array
- (
- 'type' => 'int-11',
- 'name' => '所属代理商',
- 'default' => '-1',
- 'desc' => '代理商',
- 'match' => 'is_string',
- //'update' => 'text',
- 'update' => 'select',
- 'update_search' => 'agent/lib/manage.search',
- ),
- 'coupon_city' => array
- (
- 'type' => 'int-11',
- 'name' => '优惠券是否同城可用-废弃',
- 'default' => '2',
- 'desc' => '优惠券是否同城可用',
- 'match' => 'is_numeric',
- //'update' => 'radio',
- //'update' => Dever::input('col') ? 'radio' : false,
- 'option' => $yes,
- ),
- 'act' => array
- (
- 'type' => 'text-255',
- 'name' => '参与活动',
- 'default' => '',
- 'desc' => '参与活动',
- 'match' => 'option',
- 'update' => 'checkbox',
- 'update' => Dever::input('col') ? 'checkbox' : false,
- 'data' => 'parent',
- 'option' => $act,
- ),
- 'sign_id' => array
- (
- 'type' => 'int-11',
- 'name' => '签约id',
- 'default' => '',
- 'desc' => '签约id',
- 'match' => 'option',
- 'update' => 'text',
- ),
- 'mid' => array
- (
- 'type' => 'varchar-50',
- 'name' => '分账商户号',
- 'default' => '',
- 'desc' => '分账商户号',
- 'match' => 'option',
- 'update' => 'text',
- ),
- 'ps_cash' => array
- (
- 'type' => 'varchar-50',
- 'name' => '运费-单位为元',
- 'default' => '0',
- 'desc' => '运费',
- 'match' => 'option',
- 'update' => 'text',
- ),
- 'free_ps_cash' => array
- (
- 'type' => 'varchar-50',
- 'name' => '免运费额度-满多少免运费,这里直接填写一个订单满多少金额就免费配送的金额,单位为元',
- 'default' => '0',
- 'desc' => '免运费额度',
- 'match' => 'option',
- 'update' => 'text',
- ),
- 'pdesc' => array
- (
- 'type' => 'text-255',
- 'name' => '配送与自提说明',
- 'default' => '',
- 'desc' => '配送与自提说明',
- 'match' => 'is_string',
- 'update' => 'textarea',
- ),
- 'price' => array
- (
- 'type' => 'varchar-50',
- 'name' => '资金账户-单位为元',
- 'default' => '0',
- 'desc' => '资金账户',
- 'match' => 'option',
- // 'update' => 'text',
- ),
- 'stat_type' => array
- (
- 'type' => 'int-11',
- 'name' => '对账周期-可以选择周期生成对账单,选择按天生成对账单,则每天会生成前一天的对账单',
- 'default' => '1',
- 'desc' => '对账周期',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'option' => $stat_type,
- 'control' => 'stat_type',
- ),
- 'stat_day' => array
- (
- 'type' => 'int-11',
- 'name' => '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单',
- 'default' => '10',
- 'desc' => '对账单生成日期',
- 'match' => 'option',
- 'update' => 'text',
- 'show' => 'stat_type=1,2',
- ),
- 'status' => array
- (
- 'type' => 'int-11',
- 'name' => '合作状态',
- 'default' => '1',
- 'desc' => '合作状态',
- 'match' => 'is_numeric',
- //'update' => 'select',
- 'option' => $status,
- 'search' => 'select',
- 'list' => true,
- 'edit' => true,
- ),
- 'reorder' => array
- (
- 'type' => 'int-11',
- 'name' => '排序(数值越大越靠前)',
- 'default' => '1',
- 'desc' => '请输入排序',
- 'match' => 'option',
- 'update' => 'text',
- 'search' => 'order',
- //'list' => true,
- 'order' => 'desc',
- //'edit' => true,
- ),
- 'state' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '状态',
- 'default' => '1',
- 'desc' => '请选择状态',
- 'match' => 'is_numeric',
- ),
-
- 'cdate' => array
- (
- 'type' => 'int-11',
- 'name' => '录入时间',
- 'match' => array('is_numeric', time()),
- 'desc' => '',
- # 只有insert时才生效
- 'insert' => true,
- 'list' => 'date("Y-m-d H:i:s", {cdate})',
- ),
- ),
- 'alter' => array
- (
- 2 => array
- (
- array('update', 'sid', 'sid', 'varchar-30 店铺编号'),
- ),
- 'version' => 2,
- ),
- 'manage' => array
- (
- //'mul' => true,
- //'insert' => false,
- 'excel' => true,
- 'list_button' => array
- (
- 'delete' => '删除',
- 'br3' => array('<br /><br />'),
- 'location1' => array('分配工厂', Dever::url('lib/set.factory', 'shop')),
- 'location2' => array('分配仓库', Dever::url('lib/set.store', 'shop')),
- /*
- 'add12' => array('分配工厂', '"info&where_id={id}&col=factory&oper_save_jump=info&oper_table=info&oper_parent=info"'),
- 'add13' => array('分配仓库', '"info&where_id={id}&col=store&oper_save_jump=info&oper_table=info&oper_parent=info"'),
- */
- 'fast' => array('设置活动', '"info&where_id={id}&col=act&oper_save_jump=info&oper_table=info&oper_parent=info"'),
- 'br1' => array('<br /><br />'),
- 'location' => array('商品设置', Dever::url('lib/set.home', 'shop')),
- //'add1' => array('批量设置商品', '"info&where_id={id}&col=goods&oper_save_jump=info&oper_table=info&oper_parent=info"'),
- 'list22' => array('商品列表', '"goods&search_option_shop_id={id}&oper_table=info"'),
- 'list23' => array('账户管理', '"record&search_option_shop_id={id}&oper_table=info"'),
- 'br2' => array('<br /><br />'),
- 'list' => array('优惠券管理', '"coupon&search_option_shop_id={id}&oper_table=info"'),
- 'list1' => array('账号管理', '"member&search_option_shop_id={id}&oper_table=info"'),
- 'list2' => array('打印机管理', '"print&search_option_shop_id={id}&oper_table=info"'),
- //'br31' => array('<br /><br />'),
- //'add' => $add,
- //'list3' => array('销售订单', '"sell_order&search_option_shop_id={id}&oper_table=info"'),
- //'list4' => array('采购订单', '"buy_order&search_option_shop_id={id}&oper_table=info"'),
- ),
- ),
- 'request' => array
- (
- 'search' => array
- (
- 'option' => array
- (
- 'ids' => array('yes-id', 'in'),
- 'name' => array('yes-name,sid', 'like'),
- 'id' => 'yes',
- 'state' => 1,
- ),
- 'type' => 'all',
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
- 'limit' => '0,20',
- 'col' => 'name as name, id, id as value, "" as selected, "" as disabled,mid,type,sid|id',
- ),
- 'getSearch' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'col' => array('yes-sid,name', 'like'),
- ),
- 'type' => 'all',
- 'col' => '*|id',
- ),
- # 获取单条数据
- 'getOne' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'city' => 'yes',
- 'coupon_city' => 'yes',
- 'id' => 'yes',
- 'type' => 'yes',
- 'status' => 1,
- 'state' => 1,
- ),
- 'type' => 'one',
- 'col' => $col,
- ),
- # 获取城市
- 'getCity' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'city' => 'yes',
- 'id' => 'yes',
- 'status' => 1,
- 'state' => 1,
- ),
- 'type' => 'all',
- 'group' => 'city',
- 'col' => $col,
- ),
- # 获取城市
- 'getDataByType' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'type' => 'yes',
- 'id' => 'yes',
- 'status' => 1,
- 'state' => 1,
- ),
- 'type' => 'one',
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
- 'col' => $col,
- ),
- 'like' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'name' => array('yes', 'like'),
- 'sid' => array('yes', 'like'),
- 'type' => array('yes', 'like'),
- 'id' => 'yes',
- 'status' => 1,
- 'state' => 1,
- ),
- 'type' => 'all',
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
- 'col' => $col . '|id',
- ),
- 'likeOne' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'name' => array('yes', 'like'),
- 'sid' => array('yes', 'like'),
- 'mid' => array('yes', 'like'),
- 'type' => array('yes', 'like'),
- 'id' => 'yes',
- 'status' => 1,
- 'state' => 1,
- ),
- 'type' => 'one',
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
- 'col' => $col,
- ),
- 'getAll' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'type' => array('yes', '!='),
- 'town' => 'yes',
- 'area' => array('yes', 'like'),
- 'state' => 1,
- ),
- 'type' => 'all',
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
- 'col' => 'id,id as value, name',
- ),
- 'getguiAll' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'type' => array('yes', '!='),
- // 'town' => 'yes',
- // 'area' => array('yes', 'like'),
- 'status' => 1,
- 'state' => 1,
- ),
- 'type' => 'all',
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
- 'col' => 'id,id as value, name,agent_mid',
- ),
- 'getAllByType' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'town' => 'yes',
- 'is_agent' => 'yes',
- 'area' => array('yes', 'like'),
- 'type' => array('yes', 'in'),
- 'status' => 'yes',
- 'state' => 1,
- ),
- 'type' => 'all',
- 'order' => array('type' => 'desc', 'reorder' => 'desc', 'id' => 'desc'),
- 'col' => 'id,id as value, concat(sid, name) as name,type,reorder,cdate',
- ),
- 'getInfo' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'type' => 'yes',
- 'state' => 1,
- ),
- 'type' => 'one',
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
- 'col' => 'id,id as value, name',
- ),
- 'getAreaAll' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'city' => 'yes',
- 'county' => 'yes',
- 'town' => 'yes',
- 'type' => 'yes',
- 'state' => 1,
- ),
- 'type' => 'all',
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
- 'col' => 'id,province,city,county,town',
- ),
- 'getSerachNum' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'city' => 'yes',
- 'county' => 'yes',
- 'town' => 'yes',
- 'state' => 1,
- ),
- 'type' => 'count',
- 'col' => '*',
- ),
- 'getSerachTNum' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'city' => 'yes',
- 'county' => 'yes',
- 'town' => 'yes',
- 'type' => 1,
- 'state' => 1,
- ),
- 'type' => 'count',
- 'col' => '*',
- ),
- 'upCash' => array
- (
- 'type' => 'update',
- 'where' => array
- (
- 'id' => 'yes',
- ),
- 'set' => array
- (
- 'price' => array('yes', '+='),
- ),
- ),
- ),
- );
|