xingzai 2 жил өмнө
parent
commit
b5b1d5a9a6
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      controllers/report.go

+ 2 - 1
controllers/report.go

@@ -543,7 +543,8 @@ func (this *MobileReportController) List() {
 		if detail.PolymerizationId != "" {
 			condition = ` AND category_id IN(` + detail.PolymerizationId + `)`
 		} else {
-			condition = ` AND category_id IN(` + strconv.Itoa(categoryId) + `)`
+			//condition = ` AND category_id IN(` + strconv.Itoa(categoryId) + `)`
+			condition = ` AND match_type_name  = '` + detail.MatchTypeName + `'`
 		}
 
 		if industrialManagementId > 0 {