ソースを参照

老数据导出更新

wangbin 3 年 前
コミット
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,