Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 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));
 }