Merge branch 'develop' into feature/mzl_dev
This commit is contained in:
@@ -346,7 +346,7 @@ class CustomerController extends BaseController
|
||||
'address' => Util::getParam($request, 'address', ''),
|
||||
'sex' => Util::getParam($request, 'sex', 0),
|
||||
'obtain' => time(),
|
||||
'company' => Util::getParam($request, 'company', 0),
|
||||
'company' => Util::getParam($request, 'company', ''),
|
||||
];
|
||||
|
||||
if (Util::isEmpty($id)) {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace app\crm\model;
|
||||
|
||||
|
||||
use app\common\model\Country;
|
||||
use app\crm\utils\Util;
|
||||
use config\constants\Constants;
|
||||
use DateTimeInterface;
|
||||
@@ -106,4 +107,9 @@ class Customer extends Model
|
||||
return $this->save($options);
|
||||
});
|
||||
}
|
||||
|
||||
public function countryInfo()
|
||||
{
|
||||
return $this->hasOne(Country::class, 'id', 'country_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user