update
This commit is contained in:
parent
dfb59d715b
commit
b8e5ad0c6d
@ -2,6 +2,7 @@
|
|||||||
namespace app\adminapi\logic\vehicle;
|
namespace app\adminapi\logic\vehicle;
|
||||||
|
|
||||||
use app\common\logic\GpsLogic;
|
use app\common\logic\GpsLogic;
|
||||||
|
use app\common\model\contract\Contract;
|
||||||
use app\common\model\logistics\Logistics;
|
use app\common\model\logistics\Logistics;
|
||||||
use app\common\model\logistics\Product;
|
use app\common\model\logistics\Product;
|
||||||
use app\common\model\vehicle\Vehicle;
|
use app\common\model\vehicle\Vehicle;
|
||||||
@ -108,6 +109,8 @@ class VehicleLogic extends BaseLogic
|
|||||||
if($data['status'] == 2){
|
if($data['status'] == 2){
|
||||||
//获取租赁信息
|
//获取租赁信息
|
||||||
$rentInfo = VehicleRent::where('car_id',$data['id'])->find();
|
$rentInfo = VehicleRent::where('car_id',$data['id'])->find();
|
||||||
|
$contract = Contract::where('id',$rentInfo['contract_id'])->find();
|
||||||
|
$rentInfo['contract_file'] = $contract['file'];
|
||||||
$data['rent_info'] = !empty($rentInfo) ? $rentInfo : [];
|
$data['rent_info'] = !empty($rentInfo) ? $rentInfo : [];
|
||||||
//获取物流信息
|
//获取物流信息
|
||||||
$logistic = Logistics::field('order_id,order_sn,shop_name,user_name,receiver_address,qh_time,ps_time')->where('courier_id',$rentInfo['use_user_id'])->where('status',1)->limit(10)->select()->each(function($item){
|
$logistic = Logistics::field('order_id,order_sn,shop_name,user_name,receiver_address,qh_time,ps_time')->where('courier_id',$rentInfo['use_user_id'])->where('status',1)->limit(10)->select()->each(function($item){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user