|
@@ -415,7 +415,6 @@ func ExportInvoicePaymentCensusList(c *gin.Context, results *fms.InvoicePaymentC
|
|
}
|
|
}
|
|
|
|
|
|
newCompanyMap := map[int]string{0: "/", 1: "是", 2: "否"}
|
|
newCompanyMap := map[int]string{0: "/", 1: "是", 2: "否"}
|
|
- sellerTypeMap := map[int]string{1: "FICC销售", 2: "权益销售"}
|
|
|
|
for k, v := range list {
|
|
for k, v := range list {
|
|
dataRow := sheet.AddRow()
|
|
dataRow := sheet.AddRow()
|
|
|
|
|
|
@@ -448,7 +447,7 @@ func ExportInvoicePaymentCensusList(c *gin.Context, results *fms.InvoicePaymentC
|
|
fms.ContractPaymentPayTypeNameMap[v2.PayType],
|
|
fms.ContractPaymentPayTypeNameMap[v2.PayType],
|
|
v2.SellerName,
|
|
v2.SellerName,
|
|
v2.SellerGroupName,
|
|
v2.SellerGroupName,
|
|
- sellerTypeMap[v2.SellerType],
|
|
+ v2.SellerType,
|
|
}
|
|
}
|
|
|
|
|
|
serviceTempShowAmount := make(map[int]string)
|
|
serviceTempShowAmount := make(map[int]string)
|
|
@@ -760,7 +759,16 @@ func (ct *InvoicePaymentController) List(c *gin.Context) {
|
|
serviceAmountMap[serviceAmountList[i].ContractPaymentId] = append(serviceAmountMap[serviceAmountList[i].ContractPaymentId], serviceAmountList[i])
|
|
serviceAmountMap[serviceAmountList[i].ContractPaymentId] = append(serviceAmountMap[serviceAmountList[i].ContractPaymentId], serviceAmountList[i])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
+ sellerTypeMap := map[int]string{2: "FICC销售", 5: "权益销售"}
|
|
|
|
+ sellerList, e := crmService.GetSellerDepartmentListWithGroupAndTeam()
|
|
|
|
+ if e != nil {
|
|
|
|
+ resp.FailData("获取销售失败", "Err:"+e.Error(), c)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ sellerMap := make(map[int]*crm.SellerAdminWithGroupTeam)
|
|
|
|
+ for i := range sellerList {
|
|
|
|
+ sellerMap[sellerList[i].SellerId] = sellerList[i]
|
|
|
|
+ }
|
|
|
|
|
|
summaryMap := make(map[int][]*fms.InvoicePaymentCensusInfo)
|
|
summaryMap := make(map[int][]*fms.InvoicePaymentCensusInfo)
|
|
amountMap := make(map[string]*fms.ContractPaymentServiceAmount)
|
|
amountMap := make(map[string]*fms.ContractPaymentServiceAmount)
|
|
@@ -773,7 +781,7 @@ func (ct *InvoicePaymentController) List(c *gin.Context) {
|
|
v.SellerName = summaryList[i].SellerName
|
|
v.SellerName = summaryList[i].SellerName
|
|
v.SellerGroupId = summaryList[i].SellerGroupId
|
|
v.SellerGroupId = summaryList[i].SellerGroupId
|
|
v.SellerGroupName = summaryList[i].SellerGroupName
|
|
v.SellerGroupName = summaryList[i].SellerGroupName
|
|
- v.SellerType = summaryList[i].ServiceProductId
|
|
+ v.SellerType = sellerTypeMap[sellerMap[summaryList[i].SellerId].DepartmentId]
|
|
v.PaymentId = summaryList[i].PaymentId
|
|
v.PaymentId = summaryList[i].PaymentId
|
|
v.PaymentDate = utils.TimeTransferString(utils.FormatDate, summaryList[i].PaymentDate)
|
|
v.PaymentDate = utils.TimeTransferString(utils.FormatDate, summaryList[i].PaymentDate)
|
|
v.PaymentAmount = summaryList[i].PaymentAmount
|
|
v.PaymentAmount = summaryList[i].PaymentAmount
|
|
@@ -2105,43 +2113,6 @@ func (ct *InvoicePaymentController) NotPaymentList(c *gin.Context) {
|
|
cond += ` AND a.service_product_id = 2 `
|
|
cond += ` AND a.service_product_id = 2 `
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
page := new(base.Page)
|
|
page := new(base.Page)
|
|
page.SetPageSize(req.PageSize)
|
|
page.SetPageSize(req.PageSize)
|
|
page.SetCurrent(req.Current)
|
|
page.SetCurrent(req.Current)
|
|
@@ -2271,6 +2242,7 @@ func (ct *InvoicePaymentController) NotPaymentList(c *gin.Context) {
|
|
v.PaymentAmount = summaryList[i].PaymentAmount
|
|
v.PaymentAmount = summaryList[i].PaymentAmount
|
|
v.PayType = summaryList[i].PayType
|
|
v.PayType = summaryList[i].PayType
|
|
v.NotPaymentAmount = summaryList[i].InvoiceAmount - summaryList[i].PaymentAmount
|
|
v.NotPaymentAmount = summaryList[i].InvoiceAmount - summaryList[i].PaymentAmount
|
|
|
|
+ v.ServiceProductId = summaryList[i].ServiceProductId
|
|
|
|
|
|
summaryMap[summaryList[i].SummaryId] = append(summaryMap[summaryList[i].SummaryId], v)
|
|
summaryMap[summaryList[i].SummaryId] = append(summaryMap[summaryList[i].SummaryId], v)
|
|
}
|
|
}
|