|
@@ -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]
|
|
|
}
|