ziwen 1 سال پیش
والد
کامیت
96ab20f148
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  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