这个的意思大概是,trade_order_item_id这一列数据不能为空,原因是在数据库中添加了非空约束
org.springframework.dao.DataIntegrityViolationException:
### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'trade_order_item_id' cannot be null
### The error may exist in file [C:\Users\zero\Desktop\qmp-cloud\qmp-cloud\ms-qmp-order-cyb\target\classes\mappers\TradeOrderTicketMapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: insert into trade_order_ticket ( id, base_order_no, trade_order_item_id, ticket_no, status, original_price, sale_price, actual_pay_fee, reduction_fee, play_date, check_time, refund_time, remain_enter_times, enter_times_type, print_times, qrcode_type, qrcode_refresh_time, person_quantity, is_fast_ticket, fast_fee, actual_fast_fee, deposit_fee, deposit_status, card_no, appointment_config_time_id, appointment_start_time, appointment_end_time, valid_start_date, valid_end_date, create_time, creator_id, modify_time, modifier_id, department, organization_id )values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) , ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
### Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'trade_order_item_id' cannot be null
; Column 'trade_order_item_id' cannot be null; nested exception is java.sql.SQLIntegrityConstraintViolationException: Column 'trade_order_item_id' cannot be null
tradeOrderTicketBaseService.batchSaveByDTO
博客指出某列数据不能为空,原因是数据库中添加了非空约束,围绕数据库数据约束情况进行了说明。
305

被折叠的 条评论
为什么被折叠?



