fix:修复bug
This commit is contained in:
@ -60,8 +60,10 @@ type (
|
||||
func (c *Achievement) Instance(status, page, pageSize int) (*controller.ReturnPages, error) {
|
||||
mTechnologyAchievement := model.NewTechnologyAchievement()
|
||||
|
||||
where := []*model2.ModelWhere{model2.NewWhere("a.status", status)}
|
||||
|
||||
where := []*model2.ModelWhere{
|
||||
model2.NewWhere("a.uid", c.UID),
|
||||
model2.NewWhere("a.status", status),
|
||||
}
|
||||
var count int64
|
||||
|
||||
out, err := mTechnologyAchievement.Achievement(page, pageSize, &count, where...)
|
||||
|
Reference in New Issue
Block a user