public function countGoodsFee() { $seller_id = $this->seller['seller_id']; $start_time = IFilter::act(IReq::get('start_time')); $end_time = IFilter::act(IReq::get('end_time')); $queryObject = CountSum::getSellerGoodsFeeQuery($seller_id, $start_time, $end_time, 0); $countData = CountSum::countSellerOrderFee($queryObject->find()); if ($countData['orderAmountPrice'] > 0) { $replaceData = array('{startTime}' => $start_time, '{endTime}' => $end_time, '{goodsNums}' => count($countData['order_goods_ids']), '{goodsSums}' => $countData['goodsSum'], '{deliveryPrice}' => $countData['deliveryPrice'], '{protectedPrice}' => $countData['insuredPrice'], '{taxPrice}' => $countData['taxPrice'], '{totalSum}' => $countData['orderAmountPrice']); $billString = AccountLog::sellerBillTemplate($replaceData); $result = array('result' => 'success', 'data' => $billString); } else { $result = array('result' => 'fail', 'data' => '当前没有任何款项可以结算'); } die(JSON::encode($result)); }
?> <?php foreach ($search as $key => $item) { ?> <?php if ($item !== "") { $where .= " and " . $key . "'" . $item . "'"; } ?> <?php } ?> <?php $page = isset($_GET['page']) && intval($_GET['page']) > 0 ? intval($_GET['page']) : 1; $orderGoodsQuery = CountSum::getSellerGoodsFeeQuery(); $orderGoodsQuery->page = $page; $orderGoodsQuery->where = $orderGoodsQuery->getWhere() . $where; ?> <?php foreach ($orderGoodsQuery->find() as $key => $item) { ?> <?php $goodsSum = $item['goods_price'] * $item['goods_nums']; ?> <?php $orderWeight = $item['goods_weight'] * $item['goods_nums']; ?> <?php $orderCount = CountSum::countOrderFee($goodsSum, $goodsSum, $orderWeight, $item['province'], $item['distribution'], 0, false, $item['if_insured'], $item['invoice']);
<tr> <th>订单号</th> <th>商品信息</th> <th>货款计费</th> <th>其他计费</th> <th>总计</th> <th>下单时间</th> <th>结算状态</th> <th>操作</th> </tr> </thead> <tbody> <?php $page = isset($_GET['page']) && intval($_GET['page']) > 0 ? intval($_GET['page']) : 1; $orderGoodsQuery = CountSum::getSellerGoodsFeeQuery($seller_id); $orderGoodsQuery->page = $page; ?> <?php foreach ($orderGoodsQuery->find() as $key => $item) { ?> <?php $goodsSum = $item['goods_price'] * $item['goods_nums']; ?> <?php $orderWeight = $item['goods_weight'] * $item['goods_nums']; ?> <?php $orderCount = CountSum::countOrderFee($goodsSum, $goodsSum, $orderWeight, $item['province'], $item['distribution'], 0, false, $item['if_insured'], $item['invoice']); ?>
public function countGoodsFee() { $seller_id = $this->seller['seller_id']; $start_time = IFilter::act(IReq::get('start_time')); $end_time = IFilter::act(IReq::get('end_time')); $queryObject = CountSum::getSellerGoodsFeeQuery($seller_id, $start_time, $end_time, 0); $countData = CountSum::countSellerOrderFee($queryObject->find()); if ($countData['countFee'] > 0) { $countData['start_time'] = $start_time; $countData['end_time'] = $end_time; $billString = AccountLog::sellerBillTemplate($countData); $result = array('result' => 'success', 'data' => $billString); } else { $result = array('result' => 'fail', 'data' => '当前没有任何款项可以结算'); } die(JSON::encode($result)); }