Browse Source

Merge branch 'fms_2.8'

ziwen 1 year ago
parent
commit
e0b14d457f
1 changed files with 3 additions and 2 deletions
  1. 3 2
      controller/census/invoice_payment.go

+ 3 - 2
controller/census/invoice_payment.go

@@ -994,8 +994,9 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
 	defer func() {
 		if err != nil {
 			global.LOG.Error(err)
-			go alarm_msg.SendAlarmMsg("获取业务收入金额统计数据异常,Err:"+err.Error(), 3)
-			//go utils.SendEmail(utils.APPNAME+"获取近12个月的收入统计数据异常:"+time.Now().Format("2006-01-02 15:04:05"), err.Error(), utils.EmailSendToUsers)
+			if err != utils.ErrNoRow{
+				go alarm_msg.SendAlarmMsg("获取业务收入金额统计数据异常,Err:"+err.Error(), 3)
+			}
 		}
 		ch <- incomeChart
 	}()