From 7917274c26c8a199ec07492ba24d84467c42f64b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 11 Mar 2021 09:52:16 +0800 Subject: [PATCH] aa --- business/jxstore/report/report.go | 1 + 1 file changed, 1 insertion(+) diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index 9003b8de4..1227fef30 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -560,6 +560,7 @@ func CalculateCoverArea(coordinate []string, vendorID int) (area float64) { for i := 0; i < len(xyList)-1; i++ { // sum += (xyList[i+1][0] - xyList[i][0]) * (xyList[i+1][1] + xyList[i][1]) sum += (xyList[i][0]*xyList[i+1][1] - xyList[i+1][0]*xyList[i][1]) + fmt.Println("CalculateCoverArea ,", sum, xyList[i][0]*xyList[i+1][1], xyList[i+1][0]*xyList[i][1]) } // sum += (xyList[0][0] - xyList[len(xyList)-1][0]) * (xyList[0][1] + xyList[len(xyList)-1][1]) sum += (xyList[len(xyList)-1][0]*xyList[0][1] - xyList[0][0]*xyList[len(xyList)-1][1])