数据库违反唯一约束错误

org.springframework.dao.DuplicateKeyException: 
### Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件 (HISTEST.idx_treatment_card_no) 找到那个字段违反约束条件


### The error may exist in file [D:\giddl\qingdao_his_srv\automatic_framework\target\artifacts\main1_war_exploded\WEB-INF\classes\mybatis\rest_clinic\ PatientInfoMapper.xml]   <---找到mapper文件所在位置
### The error may involve PatientInfoMapper.save-Inline
### The error occurred while setting parameters
### SQL: insert into "his_clinic_patient_info"(    "patient_id",     "clinic_patient_id",     "clinic_patient_record_id",     "patient_name",                "treatment_card_no",            "idcard_no",                                                "mobile",                            "contacts_mobile",                "operator_name",    "operator_id",     "operator_date",        "id_categ_code",                "id"   ) values (    ?,     ?,     ?,     ?,                ?,            ?,                                                ?,                            ?,                ?,    ?,     SYSDATE,        ?,                ?   )
### Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件 (HISTEST.idx_treatment_card_no)


; SQL []; ORA-00001: 违反唯一约束条件 (HISTEST.idx_treatment_card_no)
; nested exception is java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件 (HISTEST.idx_treatment_card_no)

你可能感兴趣的:(错误)