为什么update 方法,也会报 Duplicate entry '2222' for key 'PRIMARY'; nes
< 返回列表时间: 2019-08-29来源:开源中国
HDC调试需求开发(15万预算),能者速来!>>>
org.springframework.dao.DuplicateKeyException:
### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '201908291554169312352' for key 'PRIMARY'
### The error may involve com.rongan.rsdDataxSubjob.mapper.TRsdDataxSubjobMapper.updateTRsdDataxSubjob-Inline
### The error occurred while setting parameters
### SQL: update t_rsd_datax_subjob SET type = ?, priority = ?, create_time = ?, json_path = ?, name = ?, status = ?, id = ?, prejob_id = ?, nextjob_id = ?, filt_where = ?, orgjob_id = ?, min_time = ?, max_time = ?, remark = ?, update_time = ? where is_incret = ?
### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '201908291554169312352' for key 'PRIMARY'
; Duplicate entry '201908291554169312352' for key 'PRIMARY'; nested exception is java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '201908291554169312352' for key 'PRIMARY'
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:242)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446)
at com.sun.proxy.$Proxy92.update(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.update(SqlSessionTemplate.java:294)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:62)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
at com.sun.proxy.$Proxy210.updateTRsdDataxSubjob(Unknown Source)
热门排行