作者 郑周

1. 修复DAO 语句字符串问题

@@ -150,12 +150,12 @@ func (d *SummaryEvaluationDao) TargetUnconfirmedCycleList(companyId int, executo @@ -150,12 +150,12 @@ func (d *SummaryEvaluationDao) TargetUnconfirmedCycleList(companyId int, executo
150 and summary_evaluation.company_id='?' 150 and summary_evaluation.company_id='?'
151 and summary_evaluation.target_user ->>'userId'='?' 151 and summary_evaluation.target_user ->>'userId'='?'
152 and summary_evaluation.types='?' 152 and summary_evaluation.types='?'
153 - and summary_evaluation.status='?'  
154 - and summary_evaluation.check_result='?' 153 + and summary_evaluation.status=?
  154 + and summary_evaluation.check_result=?
155 ` 155 `
156 tx := d.transactionContext.PgTx 156 tx := d.transactionContext.PgTx
157 condition := []interface{}{companyId, executorId, domain.EvaluationFinish, domain.EvaluationCompleted, domain.EvaluationCheckUncompleted} 157 condition := []interface{}{companyId, executorId, domain.EvaluationFinish, domain.EvaluationCompleted, domain.EvaluationCheckUncompleted}
158 - sqlStr += ` order by summary_evaluation.begin_time desc ` 158 + sqlStr += ` order by summary_evaluation.begin_time desc;`
159 result := make([]TargetUserCycle, 0) 159 result := make([]TargetUserCycle, 0)
160 _, err := tx.Query(&result, sqlStr, condition...) 160 _, err := tx.Query(&result, sqlStr, condition...)
161 return result, err 161 return result, err