Skip to content

Commit

Permalink
add result map check
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jun 30, 2020
1 parent 8b94a60 commit a5a63c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GoMybatis.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,13 @@ func mapperCheck(arg map[string]*Mapper) {
}

func mapperResultMapCheck(arg map[string]map[string]*ResultProperty) {
if arg == nil {
return
}
for resultMap, item := range arg {
if item == nil {
return
}
for k, v := range item {
if v.Column == "" {
panic("[GoMybatis] in mapper .resultMap: " + resultMap + "." + k + " 'column' can not be empty!")
Expand Down

0 comments on commit a5a63c7

Please sign in to comment.