diff --git a/common/models/Card.php b/common/models/Card.php index 90020af..9484821 100644 --- a/common/models/Card.php +++ b/common/models/Card.php @@ -59,7 +59,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 = "