mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 04:16:51 +08:00
Caused by: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
This commit is contained in:
@@ -39,8 +39,8 @@ public class DataUserSyncServiceImpl implements IDataUserSyncService{
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
// @Transactional
|
||||||
public void syncUserFull(UserData user) {
|
public synchronized void syncUserFull(UserData user) {
|
||||||
log.info("同步用户【"+user.getId()+","+user.getCode()+"】");
|
log.info("同步用户【"+user.getId()+","+user.getCode()+"】");
|
||||||
//如果删除状态为空,则设置为不删除
|
//如果删除状态为空,则设置为不删除
|
||||||
if(user.getDeleted()==null) {
|
if(user.getDeleted()==null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user