错误信息:
Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件 (BIM.PK_METERUSER_ID)\n\r\n### The error may exist in com/bim/dao/UnityMeterUserManageMapper.java (best guess)\r\n### The error may involve com.bim.dao.UnityMeterUserManageMapper.insert-Inline\r\n### The error occurred while setting parameters\r\n### SQL: INSERT INTO METER_USER_INFO ( METER_USER_ID, METER_USER_NAME, COMPANY_NAME, USE_POSITION, CONTACTER, CONTACT_PHONE, BUILDING_UID, FLOOR_UID, USE_AREA ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ? )\r\n### Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件 (BIM.PK_METERUSER_ID)\n\n; ORA-00001: 违反唯一约束条件 (BIM.PK_METERUSER_ID)\n; nested exception is java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件 (BIM.PK_METERUSER_ID)\n"
原因是: 主键数据重复,
解决方法: 要设置成与数据库中不同的添加数据