Browse Source

圣牧集团端问题处理

baishaojie 2 ngày trước cách đây
mục cha
commit
fb43dca810
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      module/group.go

+ 1 - 1
module/group.go

@@ -100,7 +100,7 @@ func SprinkleFodderData(req *models.AnalysisAccuracyRequest) ([]*models.Sprinkle
 		FROM downloadplandtl2 de 
 		JOIN downloadedplan d ON d.id=de.pid AND d.pastureid = de.pastureid 
 		LEFT JOIN feedtemplet f ON f.id = d.tempid
-		WHERE  de.pastureid = %d AND DATE(de.date)  BETWEEN '%s' AND '%s' %s GROUP BY de.date`, req.PastureId, req.StartDate, req.EndDate, whereFeedFormulaIdStr)
+		WHERE  de.pastureid = %d AND DATE(de.date)  BETWEEN '%s' AND '%s' %s  and type = 0 and  d.lpplantype IN (0,2) GROUP BY de.date`, req.PastureId, req.StartDate, req.EndDate, whereFeedFormulaIdStr)
 	if err := restful.Engine.SQL(sql).Find(&res); err != nil {
 		return nil, err
 	}