|
@@ -40,11 +40,11 @@ func (er *EnglishReportController) List(c *gin.Context) {
|
|
|
var tmpList []*english_report.Report
|
|
|
var list []*english_report.ReportListItem
|
|
|
|
|
|
- if req.ClassifyIdFirst != "" {
|
|
|
+ if req.ClassifyIdFirst >0 {
|
|
|
condition += " and classify_id_first = ?"
|
|
|
pars = append(pars, req.ClassifyIdFirst)
|
|
|
}
|
|
|
- if req.ClassifyIdSecond != "" {
|
|
|
+ if req.ClassifyIdSecond >0 {
|
|
|
condition += " and classify_id_second = ?"
|
|
|
pars = append(pars, req.ClassifyIdSecond)
|
|
|
}
|