...
|
...
|
@@ -150,9 +150,13 @@ func (dao *TaskDao) CalculateSystemTask(companyId int64) (map[string]interface{} |
|
|
} else {
|
|
|
underway = int64(count)
|
|
|
}
|
|
|
// TODO 同步搜索任务条件
|
|
|
if count, err := tx.Model(taskModel).
|
|
|
Where("task.company_id = ?", companyId).
|
|
|
Where("task.task_status = ? ", domain.TASK_STATUS_COMPLETED).
|
|
|
Where("task.task_status <> ? ", domain.TASK_STATUS_CLOSED).
|
|
|
Where("task.task_status <> ? ", domain.TASK_STATUS_UNRELEASED).
|
|
|
Where(`task.is_reward_take = ?`, true).
|
|
|
Count(); err != nil {
|
|
|
return nil, err
|
|
|
} else {
|
...
|
...
|
|