Connect mybatis with repositories,add typeHandler for type enum, refactor type enum