Explorar o código

Merge branch 'new_2.6'

ziwen hai 1 ano
pai
achega
1cc854e26f
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      controller/census/invoice_payment.go

+ 3 - 1
controller/census/invoice_payment.go

@@ -781,7 +781,9 @@ func (ct *InvoicePaymentController) List(c *gin.Context) {
 				v.SellerName = summaryList[i].SellerName
 				v.SellerGroupId = summaryList[i].SellerGroupId
 				v.SellerGroupName = summaryList[i].SellerGroupName
-				v.SellerType = sellerTypeMap[sellerMap[summaryList[i].SellerId].DepartmentId]
+				if seller, ok := sellerMap[summaryList[i].SellerId]; ok{
+					v.SellerType = sellerTypeMap[seller.DepartmentId]
+				}
 				v.PaymentId = summaryList[i].PaymentId
 				v.PaymentDate = utils.TimeTransferString(utils.FormatDate, summaryList[i].PaymentDate)
 				v.PaymentAmount = summaryList[i].PaymentAmount