ziwen 1 year ago
parent
commit
e6fd4a595a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      services/cygx/activity_special.go

+ 6 - 1
services/cygx/activity_special.go

@@ -567,12 +567,16 @@ func ActivitySpecialCompanyApproval(companyId int,companyName string) (err error
 	itemBill.Source = 2
 	itemBill.DoType = 2
 	itemBill.Way = 3
-	itemBill.Content = "套餐转正"
 	if userType == 2{
 		packageTypeMap := map[int]int{1: 16, 2: 10}
 		totalTrip := packageTypeMap[packageType]
 		itemBill.BillDetailed = totalTrip
 		itemBill.Total = strconv.Itoa(totalTrip) + "次"
+		if totalTrip == 10 {
+			itemBill.Content = "45w大套餐转正"
+		} else {
+			itemBill.Content = "70w大套餐转正"
+		}
 	} else {
 		list, e := company.GetCompanyReportPermissionUpgrade(companyId, 2)
 		if e != nil && e.Error() != utils.ErrNoRow() {
@@ -605,6 +609,7 @@ func ActivitySpecialCompanyApproval(companyId int,companyName string) (err error
 				itemBill.Total += k + strconv.Itoa(v) + "次+"
 			}
 		}
+		itemBill.Content = "行业升级套餐转正"
 		itemBill.Total = strings.TrimRight(itemBill.Total, "+")
 	}
 	err = cygx.AddCygxActivitySpecialTripBill(itemBill)