錯誤
dao.DataIntegrityViolationException: Error attempting to get column 'owner_name' from result set. Cause: java.sql.SQLDataException: Cannot determine value type from string '大老板'
原因:
- 數據庫字段與實體類字段類型不匹配
- 如果代碼中使用了union,union中的每個sql字段必須一一對應,當對應的數據類型有誤時則會報上述異常