Browse Source

异常修复

dev
nizongfeng 2 years ago
parent
commit
f6e56bbd71
2 changed files with 11 additions and 1 deletions
  1. +10
    -0
      application/admin/dao/PurchasePriceDao.php
  2. +1
    -1
      application/admin/service/OrderMainService.php

+ 10
- 0
application/admin/dao/PurchasePriceDao.php View File

@@ -67,6 +67,16 @@ class PurchasePriceDao
}

/**
* 删除数据
* @param $purchase_id
*/
public function deleteByOrderId($orderId)
{
$model = new PurchasePrice();
$model->save(["del_flag" => 1], ["order_id" => $orderId]);
}

/**
* 删除子订单对于的每日价格
* @param $subOrderId
*/


+ 1
- 1
application/admin/service/OrderMainService.php View File

@@ -45,7 +45,7 @@ class OrderMainService
$orderItemDao = new OrderItemDao();
$orderItemDao->delete($orderId);
$purchasePriceDao = new PurchasePriceDao();
$purchasePriceDao->delete($orderId);
$purchasePriceDao->deleteByOrderId($orderId);
//循环子订单
foreach ($param['subOrderList'] as $subOrderParam) {
$subOrderParam['create_id'] = $param['create_id'];


Loading…
Cancel
Save