com.fr.third.org.hibernate.exception.ConstraintViolationException: could not execute batch at com.fr.third.org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:112) at com.fr.third.org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42) at com.fr.third.org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111) at com.fr.third.org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:119) at com.fr.third.org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:97) at com.fr.third.org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:147) at com.fr.third.org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcCoordinatorImpl.java:236) at com.fr.third.org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:617) at com.fr.third.org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:462) at com.fr.third.org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337) at com.fr.third.org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39) at com.fr.third.org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1294) at com.fr.stable.db.session.SessionManager$DBSessionImpl.flush(SessionManager.java) at com.fr.stable.db.session.DAOSessionStore$1.remove(DAOSessionStore.java) at com.fr.stable.db.tenant.dao.BaseCombinedIdDao.remove(BaseCombinedIdDao.java) at com.fr.decision.authority.controller.SoftDataControllerImpl.transferToSoftData(SoftDataControllerImpl.java:163) at com.fr.decision.sync.work.impl.OneToOneSyncWork.delete(OneToOneSyncWork.java:142) at com.fr.decision.sync.TableDataSyncAction.delete(TableDataSyncAction.java:142) at com.fr.decision.sync.TableDataSyncAction.execute(TableDataSyncAction.java:68) at com.fr.decision.authority.controller.personnel.PersonnelActionManager.execute(PersonnelActionManager.java:75) at com.fr.decision.authority.controller.personnel.PersonnelActionManager.doWork(PersonnelActionManager.java:50) at com.fr.decision.authority.AuthorityContext.doPersonnelWork(AuthorityContext.java:421) at com.fr.decision.webservice.v10.user.SyncService.synchronize(SyncService.java:160) at com.fr.decision.webservice.v10.user.SyncService.lambda$setSyncConfig$0(SyncService.java:112) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)Caused by: java.sql.BatchUpdateException: 违反了 UNIQUE KEY 约束“UKinws3an4js1ibprri9efepxni”。 at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeBatch(SQLServerPreparedStatement.java:1870) at com.fr.third.alibaba.druid.pool.DruidPooledPreparedStatement.executeBatch(DruidPooledPreparedStatement.java:565) at com.fr.third.org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:110) ... 23 more