add rfid_key to card and key
This commit is contained in:
@@ -23,7 +23,7 @@ class CardSearch extends Card
|
||||
{
|
||||
return [
|
||||
[['id_card', 'status', 'type'], 'integer'],
|
||||
[[ 'searchCustomerName', 'number', 'created_at', 'updated_at'], 'safe'],
|
||||
[[ 'searchCustomerName', 'number','rfid_key', 'created_at', 'updated_at'], 'safe'],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@ class CardSearch extends Card
|
||||
]);
|
||||
|
||||
$query->andFilterWhere(['like', 'card.number', $this->number]);
|
||||
$query->andFilterWhere(['like', 'card.rfid_key', $this->rfid_key]);
|
||||
$query->andFilterWhere(['like', 'customer.name', $this->searchCustomerName]);
|
||||
|
||||
return $dataProvider;
|
||||
|
||||
@@ -20,7 +20,8 @@ class KeySearch extends Key
|
||||
return [
|
||||
/*[['id_key', 'status', 'type'], 'integer'],
|
||||
[['number', 'created_at', 'updated_at'], 'safe'],*/
|
||||
[['number'], 'safe']
|
||||
[['number'], 'safe'],
|
||||
[['rfid_key'], 'safe']
|
||||
];
|
||||
}
|
||||
|
||||
@@ -59,6 +60,7 @@ class KeySearch extends Key
|
||||
$query->andFilterWhere([
|
||||
'id_key' => $this->id_key,
|
||||
'number' => $this->number,
|
||||
'rfid_key' => $this->rfid_key,
|
||||
'status' => $this->status,
|
||||
'type' => $this->type,
|
||||
'created_at' => $this->created_at,
|
||||
|
||||
Reference in New Issue
Block a user