插入到数据库异常org.springframework.dao.DataIntegrityViolationException

这个的意思大概是,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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值