diff --git a/common/models/Card.php b/common/models/Card.php index 9286ba3..9bf27f5 100644 --- a/common/models/Card.php +++ b/common/models/Card.php @@ -58,7 +58,7 @@ class Card extends \common\models\BaseFitnessActiveRecord "; public static $SQL_CLEAR_KEY_STATUS = " - UPDATE card set flag = ( flag & ~(1 << 2 ) ) WHERE card.type <> 50 + UPDATE card set flag = ( flag & ~(1 << 2 ) ) , flag_out = ( flag_out & ~(1 << 2 ) ) WHERE card.type <> 50 "; public static $SQL_CLEARS_STATUS_DOOR_IN = "