|
|
|
@@ -17,6 +17,7 @@ class LoginUserRepository extends BaseRepository |
|
|
|
const CONDITION_NAME = 'name'; |
|
|
|
const CONDITION_ROLE = 'role'; |
|
|
|
const CONDITION_EMAIL = 'email'; |
|
|
|
const CONDITION_CUSTOMER_CODE = 'customer_code'; |
|
|
|
|
|
|
|
const TABLE_USER = "user"; |
|
|
|
const TABLE_CUSTOMER = "customer"; |
|
|
|
@@ -43,6 +44,9 @@ class LoginUserRepository extends BaseRepository |
|
|
|
// ID |
|
|
|
$this->where($table, $condition, static::CONDITION_ID, $this->makeColumnName([static::TABLE_USER, User::COL_NAME_ID])); |
|
|
|
|
|
|
|
// 顧客コード |
|
|
|
$this->where($table, $condition, static::CONDITION_CUSTOMER_CODE, $this->makeColumnName([static::TABLE_USER, User::COL_NAME_CUSTOMER_CODE])); |
|
|
|
|
|
|
|
// 名前 |
|
|
|
$name = data_get($condition, static::CONDITION_NAME); |
|
|
|
if ($name) { |
|
|
|
|