xingzai %!s(int64=2) %!d(string=hai) anos
pai
achega
b5b1d5a9a6
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 {