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