|
|
@ -15,6 +15,7 @@ type RealSignList struct { |
|
|
|
|
|
|
|
ActivityId int64 `json:"activity_id" xorm:"not null default 0 comment('主活动id') INT(11)"` |
|
|
|
JsonList string `json:"json_list" xorm:"not null comment('名单记录') TEXT"` |
|
|
|
Status int `json:"status" xorm:"not null comment('是否已被验证[0/1]') TINYINT(1)"` |
|
|
|
} |
|
|
|
|
|
|
|
func (t *RealSignList) TableName() string { |
|
|
@ -23,7 +24,6 @@ func (t *RealSignList) TableName() string { |
|
|
|
|
|
|
|
// 可能使用模糊匹配
|
|
|
|
func (t *RealSignList) CheckSignIn(aid int64, ext string) (bool, error) { |
|
|
|
//var sql = fmt.Sprintf("is_delete=0 and activity_id=%d and ", aid, ext)
|
|
|
|
ext += " 1 = 1 " |
|
|
|
return core.GetXormAuto().Where("is_delete=0 and activity_id=?", aid).Where(ext).Get(t) |
|
|
|
} |