Home > Back-end >  Mybatis - plus repeated problems using Mysql 57 UUID function
Mybatis - plus repeated problems using Mysql 57 UUID function

Time:09-17

T. ` personnel_id ` is a primary key
T. ` order_id ` is a foreign key, more than 1 to
The same database, the same table, the same Linux JDK environment... All the same

When the black window, execute the following statements not to repeat inconsistent code_uuid
When using tomcat7 + mybatis start, perform the following statements inconsistent code_uuid don't repeat
When using springboot integration MP (mybatis - plus), run the following statement is, code_uuid is exactly the same as

UPDATE ` booking_personnel_info ` AS T SET t. ` code_uuid `=MD5 ((SELECT the REPLACE (UUID (), '-', ')))
WHERE t. ` order_id `=1
  • Related