eventtracing / easyinsight-server

曙光 easyinsight 平台 server部分,隶属于 https://github.com/eventtracing/dawn 项目
https://eventtracing.github.io
Mozilla Public License 2.0
21 stars 13 forks source link

提示插入数据库行报错,因为创建时间字段为null #8

Closed Tracis closed 1 year ago

Tracis commented 1 year ago

1、新建需求组 2、输入表单信息,点击确定

服务器开了会小差,请稍后再试 ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'create_time' cannot be null ### The error may exist in file [/Users/tracis/github/easyinsight-server/eis-dao/target/classes/mybatis/mapper/EisReqPoolRelBaseReleaseMapper.xml] ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: insert into eis_req_pool_rel_base_release ( id,req_pool_id,terminal_id,base_release_id,current_use,auto_rebase,create_email,create_name,update_email,update_name,create_time,update_time ) values (?, ?,?,?,?,?,?,?, ?,?,?,?) , (?, ?,?,?,?,?,?,?, ?,?,?,?) , (?, ?,?,?,?,?,?,?, ?,?,?,?) ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'create_time' cannot be null ; Column 'create_time' cannot be null; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'create_time' cannot be null

不需要修改数据库配置可以正常插入

stuyang commented 1 year ago

已在最新版本优化