ziwen 1 year ago
parent
commit
d10d7a8275
1 changed files with 8 additions and 8 deletions
  1. 8 8
      controller/census/invoice_payment.go

+ 8 - 8
controller/census/invoice_payment.go

@@ -1860,29 +1860,29 @@ func (ct *InvoicePaymentController) NotInvoiceList(c *gin.Context) {
 					}
 					if v.SellerId > 0 && v.RaiSellerId > 0 {
 						if v.ServiceProductId == 1 {
-							v.SellerGroupId = sellerMap[v.SellerId].GroupId
-							v.SellerGroupName = sellerMap[v.SellerId].GroupName
 							if seller, ok := sellerMap[v.SellerId]; ok{
 								v.SellerType = sellerTypeMap[seller.DepartmentId]
+								v.SellerGroupId = sellerMap[v.SellerId].GroupId
+								v.SellerGroupName = sellerMap[v.SellerId].GroupName
 							}
 						} else {
-							v.RaiSellerGroupId = sellerMap[v.RaiSellerId].GroupId
-							v.RaiSellerGroupName = sellerMap[v.RaiSellerId].GroupName
 							if seller, ok := sellerMap[v.RaiSellerId]; ok{
 								v.SellerType = sellerTypeMap[seller.DepartmentId]
+								v.RaiSellerGroupId = sellerMap[v.RaiSellerId].GroupId
+								v.RaiSellerGroupName = sellerMap[v.RaiSellerId].GroupName
 							}
 						}
 					} else if v.SellerId > 0 && v.RaiSellerId == 0 {
-						v.SellerGroupId = sellerMap[v.SellerId].GroupId
-						v.SellerGroupName = sellerMap[v.SellerId].GroupName
 						if seller, ok := sellerMap[v.SellerId]; ok{
 							v.SellerType = sellerTypeMap[seller.DepartmentId]
+							v.SellerGroupId = sellerMap[v.SellerId].GroupId
+							v.SellerGroupName = sellerMap[v.SellerId].GroupName
 						}
 					} else if v.SellerId == 0 && v.RaiSellerId > 0 {
-						v.RaiSellerGroupId = sellerMap[v.RaiSellerId].GroupId
-						v.RaiSellerGroupName = sellerMap[v.RaiSellerId].GroupName
 						if seller, ok := sellerMap[v.RaiSellerId]; ok{
 							v.SellerType = sellerTypeMap[seller.DepartmentId]
+							v.RaiSellerGroupId = sellerMap[v.RaiSellerId].GroupId
+							v.RaiSellerGroupName = sellerMap[v.RaiSellerId].GroupName
 						}
 					}
 				}