fix tests

This commit is contained in:
Lunny Xiao 2017-10-24 15:58:05 +08:00
parent c25d5751f6
commit da6936580e
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 2 additions and 2 deletions

View File

@ -1034,8 +1034,8 @@ type AfterInsertStruct struct {
Id int64
}
func (a *AfterInsertStruct) AftertInsert(bean interface{}) {
if a.Id != 0 {
func (a *AfterInsertStruct) AfterInsert() {
if a.Id == 0 {
panic("a.Id")
}
}