日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > windows >内容正文

windows

方维O2O系统 后台业务员功能开发

發(fā)布時(shí)間:2023/12/19 windows 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 方维O2O系统 后台业务员功能开发 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
方維O2O系統(tǒng) 后臺(tái)業(yè)務(wù)員功能開(kāi)發(fā)

?

需求如下:?

  開(kāi)發(fā)一個(gè)管理員,叫做業(yè)務(wù)員有特別的權(quán)限,就是后臺(tái)可以給業(yè)務(wù)員一個(gè)賬號(hào),然后業(yè)務(wù)員每次出去拉到團(tuán)購(gòu)回來(lái),上傳商戶(hù),之后,運(yùn)營(yíng)后能在業(yè)務(wù)員自己的賬號(hào)權(quán)限內(nèi)看到自己所拉業(yè)務(wù)下面的詳細(xì)統(tǒng)計(jì),包括多少個(gè)商戶(hù),成交了多少團(tuán)購(gòu),,等,,但是看不到別的業(yè)務(wù)員的。

?

思路如下:

? ? 商戶(hù)添加的時(shí)候填寫(xiě)推薦人,然后關(guān)聯(lián)管理員數(shù)據(jù)表,只查詢(xún)登錄用戶(hù)的推薦商戶(hù)數(shù)據(jù)。

?

大體步驟如下:

①修改表,添加操作者字段;

alter table fanwe_supplier
add column operator_id varchar(55);

② 后臺(tái)添加商戶(hù)的時(shí)候,加當(dāng)前登錄管理員的ID,

? ?通過(guò)session數(shù)據(jù)或者手動(dòng)填表單的形式,將操作者寫(xiě)入商戶(hù)列表的數(shù)據(jù)表。

③統(tǒng)計(jì)報(bào)表選項(xiàng)添加, ?查看left.html 得知是數(shù)據(jù)庫(kù)出來(lái)的:

show tables like '%group%';

?

Tables_in_hdm1430549_db (%group%)
fanwe_filter_group
fanwe_images_group
fanwe_images_group_link
fanwe_link_group
fanwe_point_group
fanwe_point_group_link
fanwe_role_group
fanwe_supplier_tag_group_preset
fanwe_tag_group
fanwe_tag_group_link
fanwe_topic_group
fanwe_topic_group_cate
fanwe_user_group
fanwe_user_topic_group

select * from fanwe_role_group where name like '%報(bào)表%';

idnamenav_idis_deleteis_effectsort
68報(bào)表與結(jié)算80114

?

select * from fanwe_role_group where nav_id=8;

idnamenav_idis_deleteis_effectsort
16支付接口80114
17配送方式80115
23訂單管理80113
24充值訂單80113
68報(bào)表與結(jié)算80114

查看action文件:

$nav_group = M("RoleGroup")->where("nav_id=".$nav_id." and is_effect = 1 and is_delete = 0")->order("sort asc")->findAll(); foreach($nav_group as $k=>$v){$sql = "select role_node.`action` as a,role_module.`module` as m,role_node.id as nid,role_node.name as name from ".conf("DB_PREFIX")."role_node as role_node left join ".conf("DB_PREFIX")."role_module as role_module on role_module.id = role_node.module_id "."where role_node.is_effect = 1 and role_node.is_delete = 0 and role_module.is_effect = 1 and role_module.is_delete = 0 and role_node.group_id = ".$v['id']." order by role_node.id asc";$nav_group[$k]['nodes'] = M()->query($sql);}

select * from fanwe_role_node where name like '%報(bào)表%' limit 3;

idactionnameis_effectis_deletegroup_idmodule_id
604index報(bào)表列表1068112

select * from fanwe_role_module where name like '%報(bào)表%' limit 3;

idmodulenameis_effectis_delete
112Statistic報(bào)表10

?

insert into fanwe_role_node values(null,'tongji','業(yè)務(wù)員列表',1,0,68,112);

?

新建tpl與action;

action:

$sql = "SELECT c.id, c.name,count(*) as num, sum(a.pay_amount) as money FROM `fanwe_deal_order` as a left join fanwe_deal as b on a.deal_ids = b.id left join fanwe_supplier as c on c.id = b.supplier_idWHERE a.is_delete = 0 and a.type = 0 and a.pay_status = 2 and c.operator_id is nullgroup by c.idlimit 33";

?

posted on 2014-11-28 07:44 方維二次開(kāi)發(fā) 閱讀(...) 評(píng)論(...) 編輯 收藏

轉(zhuǎn)載于:https://www.cnblogs.com/wangtongphp/p/4127626.html

總結(jié)

以上是生活随笔為你收集整理的方维O2O系统 后台业务员功能开发的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。