|
|
@@ -45,16 +45,7 @@ class PropertyOrderLogic extends BaseLogic
|
|
|
throw new Exception('物业代理不存在');
|
|
|
}
|
|
|
$order = PropertyOrder::where(['property_user_id'=>$propertyUserId,'property_head_id'=>$params['property_head_id'],'order_status'=>0])->where('work_id','<>',0)->order('id desc')->findOrEmpty();
|
|
|
- Log::info('物业下单-'.$order);
|
|
|
if($order->isEmpty()){
|
|
|
- Log::info('物业下单-'.json_encode([
|
|
|
- 'property_head_id' => $params['property_head_id'],
|
|
|
- 'property_user_id' => $propertyUserId,
|
|
|
- 'remark' => $params['remark']??'',
|
|
|
- 'address' => $address??'',
|
|
|
- 'order_status' => 0,
|
|
|
- 'work_id' => 0,
|
|
|
- ],JSON_UNESCAPED_UNICODE));
|
|
|
PropertyOrder::create([
|
|
|
'property_head_id' => $params['property_head_id'],
|
|
|
'property_user_id' => $propertyUserId,
|