Commit f1cc3fbb by 杨树贤

询价默认优先级问题

parent 7257dc2e
......@@ -19,6 +19,7 @@ class InquiryService
'inquiry_sn' => self::generateSn(),
'user_id' => $user->id,
'sales_id' => $user->sale_id,
'priority' => InquiryModel::PRIORITY_HIGH,
'user_types' => $user->account_properties,
'remark' => $remark,
'create_time' => time(),
......
......@@ -11,6 +11,8 @@ class InquiryModel extends Model
public $timestamps = false;
const PRIORITY_HIGH = 2;
public function inquiry_items()
{
return $this->hasMany(InquiryItemsModel::class, 'inquiry_id', 'inquiry_id');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment