ziwen 1 year ago
parent
commit
96ab20f148
1 changed files with 3 additions and 1 deletions
  1. 3 1
      services/cygx/activity_special.go

+ 3 - 1
services/cygx/activity_special.go

@@ -683,7 +683,9 @@ func GetSpecialSurplusByCompanyNew(companyId int) (specialSurplus string, err er
 			err = e
 			return
 		}
-		specialSurplus = billItem.Total
+		if billItem != nil {
+			specialSurplus = billItem.Total
+		}
 		return
 	}
 	return