https://dev.mysql.com/doc/refman/5.5/en/innodb-locking-reads.html
If you query data and then insert or update related data within the same transaction, the regular SELECT
statement does not give enough protection. Other transactions can update or delete the same rows you just queried. InnoDB
supports two types of locking reads that offer extra safety:
1)SELECT ... LOCK IN SHARE MODE
ok Innodb transaction select lock Read 解决~~。