zwxi 11 mesi fa
parent
commit
dccf17f44a
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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]
 					}