Merge pull request 'flow_id 解决' (#21) from zm into master

Reviewed-on: mengfucius/wkcrm#21
pull/40/head
张萌 2 years ago
commit 6e9afbeed9

@ -125,7 +125,7 @@ class Customer extends ApiCommon
}
// 判断是否有客户捞取审批
$customerCheck = db('crm_customer_check')->where(['customer_id' => $param['id']])->where(['check_status' => 0])->find();
if(!$customerCheck){
if (!empty($customerCheck)) {
$data['flow_id'] = $customerCheck['flow_id'];
}
return resultArray(['data' => $data]);

@ -108,7 +108,7 @@ class CustomerCheck extends Common
->where($partMap)
->where($dealtWhere)
->limit($request['offset'], $request['length'])
->field('customer_check.*,customer.name as name'.$customerField)
->field('customer_check.*,customer.name as name,'.$customerField)
->orderRaw($order)
->select();

Loading…
Cancel
Save