Browse Source

Merge remote-tracking branch 'origin/master'

dev
xcodebin 3 years ago
parent
commit
87186a3cda
2 changed files with 4 additions and 5 deletions
  1. +3
    -4
      application/admin/service/OrderItemDao.php
  2. +1
    -1
      application/admin/service/PurchaseDao.php

+ 3
- 4
application/admin/service/OrderItemDao.php View File

@@ -11,7 +11,6 @@ namespace app\admin\service;

use app\admin\command\Util;
use app\admin\model\CfItem;
use app\admin\model\OrderHotel;
use app\admin\model\OrderItem;
use app\admin\model\Purchase;
use think\Exception;
@@ -55,12 +54,12 @@ class OrderItemDao
"trade_order_number" => $param['trade_order_number'],
"del_flag"=>0
];
$orderHotelModel = new OrderHotel();
$model = new OrderItem();
if (empty($param['id'])) {
$id = $orderHotelModel->insertGetId($data);
$id = $model->insertGetId($data);
return Util::returnArrSu("",$id);
}else {
$orderHotelModel->save($data,["id"=>$param['id']]);
$model->save($data,["id"=>$param['id']]);
return Util::returnArrSu("",$param['id']);
}
}catch (Exception $e){


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

@@ -111,7 +111,7 @@ class PurchaseDao
return Util::returnArrSu("", $param['purchase_id']);
}
}catch (Exception $e){
return Util::returnArrEr("新增采购失败:".$e->getMessage());
return Util::returnArrEr("新增采购失败:".$e->getMessage());
}
}



Loading…
Cancel
Save