瀏覽代碼

Merge remote-tracking branch 'origin/dev' into dev

dev
nizongfeng 2 年之前
父節點
當前提交
c25d8de300
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      application/admin/dao/OrderHotelDao.php
  2. +1
    -1
      application/admin/dao/OrderItemDao.php

+ 1
- 1
application/admin/dao/OrderHotelDao.php 查看文件

@@ -152,7 +152,7 @@ class OrderHotelDao
public function setSubOrderAmount( int $subOrderId) {
try{
$purchaseModel = new Purchase();
$purchaseList = $purchaseModel->where(["order_detail_id"=>$subOrderId,"del_flag"=>0])->select()->toArray();
$purchaseList = $purchaseModel->where(["order_detail_id"=>$subOrderId,"del_flag"=>0,"prod_type"=>"hotel"])->select()->toArray();
$cost = 0;
$amount = 0;
$count = 0;


+ 1
- 1
application/admin/dao/OrderItemDao.php 查看文件

@@ -101,7 +101,7 @@ class OrderItemDao
public function setSubOrderAmount( int $subOrderId) {
try{
$purchaseModel = new Purchase();
$purchaseList = $purchaseModel->where(["order_detail_id"=>$subOrderId,"del_flag"=>0])->select()->toArray();
$purchaseList = $purchaseModel->where(["order_detail_id"=>$subOrderId,"del_flag"=>0,"prod_type"=>"item"])->select()->toArray();
$cost = 0;
$amount = 0;
$count = 0;


Loading…
取消
儲存