zwxi 11 月之前
父節點
當前提交
dccf17f44a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      controller/census/invoice_payment.go

+ 3 - 1
controller/census/invoice_payment.go

@@ -2461,7 +2461,9 @@ func ExportNotInvoiceCensusList(c *gin.Context, results *fms.NotInvoicePaymentCe
 						dataRow.AddCell().SetString(item.SellerType)         // 销售类型
 					}
 				} else if item.SellerId > 0 && item.RaiSellerId == 0 {
-					item.SellerGroupName = sellerMap[item.SellerId].GroupName
+					if seller, ok := sellerMap[item.SellerId]; ok {
+						item.SellerGroupName = seller.GroupName
+					}
 					if seller, ok := sellerMap[item.SellerId]; ok {
 						item.SellerType = sellerTypeMap[seller.DepartmentId]
 					}