|
@@ -127,7 +127,7 @@ func ApproveProject(ctx context.Context, projectId string, isApprove int64) (err
|
|
|
|
|
|
func GetAllProject(ctx context.Context, pageSize, pageNum int32) ([]*http_model.GetAllProjectPreview, int64, error) {
|
|
|
db := GetReadDB(ctx)
|
|
|
- db = db.Debug().Model(gorm_model.ProjectInfo{})
|
|
|
+ db = db.Debug().Model(gorm_model.ProjectInfo{}).Where("project_status = 1 or project_status = 6")
|
|
|
var allProjects []*http_model.GetAllProjectPreview
|
|
|
// 查询总数
|
|
|
var total int64
|