feat:完善项目管理

This commit is contained in:
henry
2021-12-14 09:05:47 +08:00
parent 4e1f179af7
commit 3bb8f96d84
9 changed files with 312 additions and 4 deletions

View File

@ -27,7 +27,7 @@ func (m *ActivityInstance) Joins(page, pageSize int, count *int64, where ...*mod
Where("j.status = ?", model.ActivityJoinStatusForSuccess)
if len(where) > 0 {
for _, v := range where {
` for _, v := range where {
db = db.Where(v.Condition, v.Value)
}
}
@ -39,7 +39,7 @@ func (m *ActivityInstance) Joins(page, pageSize int, count *int64, where ...*mod
if err := db.Order("j.id " + model.OrderModeToDesc).Offset((page - 1) * pageSize).Limit(pageSize).Scan(&out).Error; err != nil {
return nil, err
}
return out, nil
return out, nil`
}
func NewActivityInstance() *ActivityInstance {