|
@@ -25,7 +25,12 @@ func (d ProjectTaskInfoDao) CountByTaskStage(projectId string, taskStage int64)
|
|
|
func (d ProjectTaskInfoDao) GetListByTaskStage(projectId string, taskStage int64, time string, page int, pageSize int, talentNickname string) ([]*entity.ProjectTaskInfo, int64, error) {
|
|
|
var taskInfos []*entity.ProjectTaskInfo
|
|
|
var total int64
|
|
|
- query := Db.Model(&entity.ProjectTaskInfo{}).Where("project_id = ? AND task_stage = ?", projectId, taskStage)
|
|
|
+ query := Db.Model(&entity.ProjectTaskInfo{})
|
|
|
+ if taskStage == 6 {
|
|
|
+ query = query.Where("project_id = ? AND task_stage >= ?", projectId, taskStage)
|
|
|
+ } else {
|
|
|
+ query = query.Where("project_id = ? AND task_stage = ?", projectId, taskStage)
|
|
|
+ }
|
|
|
if talentNickname != "" {
|
|
|
var talentInfos []entity.YoungeeTalentInfo
|
|
|
err1 := Db.Model(&entity.YoungeeTalentInfo{}).Where("talent_wx_nickname = ?", talentNickname).Find(&talentInfos).Error
|