|
|
|
@ -40,7 +40,15 @@ class SelectHorseman extends Form |
|
|
|
$hid = $input['horseman_id']; |
|
|
|
$oid = $input['order_id']; |
|
|
|
$horseman = LanzuEmployees::getName($hid);//骑手名称
|
|
|
|
$result = ImsCjdcOrderMain::where('id',$oid)->update(['shipping_type'=>1,'horseman_id'=>$hid,'delivery_start_time'=>time(),'shipping_name'=>$horseman,'updated_at'=>time()]); |
|
|
|
$time = time(); |
|
|
|
$result = ImsCjdcOrderMain::where(['id' => $oid, 'horseman_id' => 0]) |
|
|
|
->update([ |
|
|
|
'shipping_type' => 1, |
|
|
|
'horseman_id' => $hid, |
|
|
|
'delivery_start_time' => $time, |
|
|
|
'shipping_name' => $horseman, |
|
|
|
'updated_at' => $time, |
|
|
|
]); |
|
|
|
if ($result){ |
|
|
|
//>>1.指定骑手后,初始化骑手位置,默认将市场经纬做为骑手默认经纬
|
|
|
|
$row = ImsCjdcOrderMain::where('id',$oid)->select('market_id','global_order_id')->first(); |
|
|
|
|