fix:修复bug
This commit is contained in:
@ -26,7 +26,7 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
// List 列表信息
|
||||
// Instance 列表信息
|
||||
func (c *Apply) Instance(title string, page, pageSize int) (*controller.ReturnPages, error) {
|
||||
mActivityApply := model.NewActivityApply()
|
||||
|
||||
|
@ -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