|
|
@ -36,11 +36,11 @@ func (t *SignHistory) GetByUserId(activityId, archId, userId, rehearsalId, areaI |
|
|
|
"rehearsal_id=? and area_id=?", activityId, archId, userId, rehearsalId, areaId).Get(t) |
|
|
|
} |
|
|
|
|
|
|
|
func (t *SignHistory) Count(signUpId, activityId, archId, rehearsalId interface{}) (int64, error) { |
|
|
|
func (t *SignHistory) Count(signUpId, activityId, archId, rehearsalId, status interface{}) (int64, error) { |
|
|
|
// 签到人数
|
|
|
|
return core.GetXormAuto().Where("is_delete=0 and sign_rule_id=? and "+ |
|
|
|
" activity_id=? and arch_id=? and rehearsal_id=? and status=2", |
|
|
|
signUpId, activityId, archId, rehearsalId).Count(t) |
|
|
|
" activity_id=? and arch_id=? and rehearsal_id=? and status=?", |
|
|
|
signUpId, activityId, archId, rehearsalId, status).Count(t) |
|
|
|
} |
|
|
|
|
|
|
|
func (t *SignHistory) UpdateByIds(ids interface{}, fields ...string) (err error) { |
|
|
|