wangbin лет назад: 3
Родитель
Сommit
c067cc2f25
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      service/dataStatistics/oldDataShow.go

+ 6 - 6
service/dataStatistics/oldDataShow.go

@@ -87,16 +87,16 @@ func (s *ServiceOldDataShow) ParseInfoList2Excel(infoList []*dataStatistics.OldD
 			completeLc = 0
 		}
 		imcompleteNew := one.TargetNew - one.CompleteNew
-		if targetLc < 0 {
-			targetLc = 0
+		if imcompleteNew < 0 {
+			imcompleteNew = 0
 		}
 		imcompleteLc := targetLc - (one.CompleteActive - one.CompleteNew)
-		if targetLc < 0 {
-			targetLc = 0
+		if imcompleteLc < 0 {
+			imcompleteLc = 0
 		}
 		imcompletePay := one.TargetPay - one.CompletePay
-		if targetLc < 0 {
-			targetLc = 0
+		if imcompletePay < 0 {
+			imcompletePay = 0
 		}
 		err = excel.SetSheetRow("Sheet1", axis, &[]interface{}{
 			one.NewDate,