忘记给contract_product_c 表的CONTRACT_PRODUCT_ID字段赋值
### SQL: insert into contract_product_c (CONTRACT_PRODUCT_ID,CONTRACT_ID,FACTORY_ID,PRODUCT_NO,PRODUCT_DESC,PACKING_UNIT,CNUMBER,PRICE,AMOUNT) values (?,?,?,?,?,?,?,?,?)
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'CONTRACT_PRODUCT_ID' cannot be null
; SQL []; Column 'CONTRACT_PRODUCT_ID' cannot be null; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'CONTRACT_PRODUCT_ID' cannot be null