ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 分销明细 **非供应商用户** shop/controllers/Seller/Supplier/DistLogCtl.php Seller\_Shop\_Setshop 文件路径:shop/controllers/Seller/Supplier/DistLogCtl.php 一、分销明细 视图:shop/views/default/Seller/Supplier/DistLogCtl/index.php 方法:index() ``` <pre class="calibre14">``` <span class="token5">//分销明细</span> $data <span class="token">=</span> $Order_GoodsModel<span class="token">-</span><span class="token">></span><span class="token3">listByWhere</span><span class="token1">(</span>$cond_row<span class="token1">,</span>$order_row<span class="token1">,</span>$page<span class="token1">,</span>$rows<span class="token1">)</span><span class="token1">;</span> <span class="token5">//所有分销订单总和</span> $orders <span class="token">=</span> $Order_GoodsModel <span class="token">-</span><span class="token">></span><span class="token3">getByWhere</span><span class="token1">(</span>$cond_row<span class="token1">)</span><span class="token1">;</span> $dist_total <span class="token">=</span> <span class="token3">array_sum</span><span class="token1">(</span><span class="token3">array_column</span><span class="token1">(</span>$orders<span class="token1">,</span><span class="token4">'goods_price'</span><span class="token1">)</span><span class="token1">)</span><span class="token1">;</span> ``` ``` 二、我的采购单 视图:shop/views/default/Seller/Supplier/DistLogCtl/buy\_order.php 方法:buy\_order() `$data = $Order_BaseModel->listByWhere($cond_row,$order_row,$page,$rows);`