报错
[github.com/flipped-aurora/gin-vue-admin/server]2024-06-26 17:04:07.099 error E:/tool/go/gopath/src/gin-vue-admin-main/server/api/v1/b_opmanage/t_crm_check_result.go:142 获取失败! {“error”: “sql: Scan error on column
index 4, name “CHECKTIME”: unsupported Scan, storing driver.Value type []uint8 into type *time.Time; sql: Scan error on column index 4, name “CHECKTIME”: unsupported Scan, storing driver.Value type []uint8 into type *time.T
ime; sql: Scan error on column index 4, name “CHECKTIME”: unsupported Scan, storing driver.Value type []uint8 into type *time.Time; sql: Scan error on column index 4, name “CHECKTIME”: unsupported Scan, storing driver.Value
type []uint8 into type *time.Time; sql: Scan error on column index 4, name “CHECKTIME”: unsupported Scan, storing driver.Value type []uint8 into type *time.Time; sql: Scan error on column index 4, name “CHECKTIME”: unsupport
ed Scan, storing driver.Value type []uint8 into type *time.Time; sql: Scan error on column index 4, name “CHECKTIME”: unsupported Scan, storing driver.Value type []uint8 into type *time.Time; sql: Scan error on column index 4,
name “CHECKTIME”: unsupported Scan, storing driver.Value type []uint8 into type *time.Time; sql: Scan error on column index 4, name “CHECKTIME”: unsupported Scan, storing driver.Value type []uint8 into type *time.Time; sql: Scan error on column index 4, name “CHECKTIME”: unsupported Scan, storing driver.Value type []uint8 into type *time.Time”}
解决办法
设置mysql连接配置
config: charset=utf8mb4&parseTime=True&loc=Local