This commit is contained in:
2025-09-03 16:10:36 +08:00
parent 3d6702646f
commit 2d1e98f25a
3 changed files with 203 additions and 0 deletions
+6
View File
@@ -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');
}
}