ziwen 1 year ago
parent
commit
6545712afb
1 changed files with 2 additions and 6 deletions
  1. 2 6
      controller/census/invoice_payment.go

+ 2 - 6
controller/census/invoice_payment.go

@@ -412,7 +412,7 @@ func ExportInvoicePaymentCensusList(c *gin.Context, results *fms.InvoicePaymentC
 		}
 	}
 
-	newCompanyMap := map[int]string{0: "否", 1: "是"}
+	newCompanyMap := map[int]string{0: "/", 1: "是" , 2: "否"}
 	sellerTypeMap := map[int]string{1: "FICC销售", 2: "权益销售"}
 	for k, v := range list {
 		dataRow := sheet.AddRow()
@@ -431,11 +431,7 @@ func ExportInvoicePaymentCensusList(c *gin.Context, results *fms.InvoicePaymentC
 		// 是否新客户
 		colC := dataRow.AddCell()
 		colC.VMerge = mergeRowNum
-		newCompany := 0
-		if v.ContractType == 1 {
-			newCompany = 1
-		}
-		colC.SetString(newCompanyMap[newCompany])
+		colC.SetString(newCompanyMap[v.ContractType])
 		// 合同有效期
 		colD := dataRow.AddCell()
 		colD.VMerge = mergeRowNum