|
@@ -5598,11 +5598,25 @@ func initUserKw() {
|
|
}
|
|
}
|
|
|
|
|
|
func initContract() {
|
|
func initContract() {
|
|
- listContractList, e := company.CompanyContractList()
|
|
|
|
|
|
+ listContractList, e := company.CompanyContractListInit2()
|
|
if e != nil {
|
|
if e != nil {
|
|
fmt.Println(e)
|
|
fmt.Println(e)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ var condition string
|
|
|
|
+ var pars []interface{}
|
|
|
|
+ activitySpecialPermissionPointsList, e := cygx.GetCygxActivitySpecialPermissionPointsList(condition, pars)
|
|
|
|
+ if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
|
+ fmt.Println(e)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ var companyIds []int
|
|
|
|
+ mapPointSpeial := make(map[int]float64)
|
|
|
|
+ for _, v := range activitySpecialPermissionPointsList {
|
|
|
|
+ companyIds = append(companyIds, v.CompanyId)
|
|
|
|
+ mapPointSpeial[v.CompanyId] += v.Pointsf
|
|
|
|
+ }
|
|
|
|
|
|
var companyContractIds []int
|
|
var companyContractIds []int
|
|
for _, v := range listContractList {
|
|
for _, v := range listContractList {
|
|
@@ -5635,7 +5649,7 @@ func initContract() {
|
|
style.ApplyAlignment = true
|
|
style.ApplyAlignment = true
|
|
|
|
|
|
var sheetName string
|
|
var sheetName string
|
|
- sheetName = "智造升级公司统计"
|
|
|
|
|
|
+ sheetName = "大套餐统计"
|
|
sheet, err := xlsxFile.AddSheet(sheetName)
|
|
sheet, err := xlsxFile.AddSheet(sheetName)
|
|
if err != nil {
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
fmt.Println(err)
|
|
@@ -5654,6 +5668,9 @@ func initContract() {
|
|
cellB10 := rowTitle.AddCell()
|
|
cellB10 := rowTitle.AddCell()
|
|
cellB10.Value = "合同金额"
|
|
cellB10.Value = "合同金额"
|
|
|
|
|
|
|
|
+ cellPoint := rowTitle.AddCell()
|
|
|
|
+ cellPoint.Value = "调研点数"
|
|
|
|
+
|
|
cellB11 := rowTitle.AddCell()
|
|
cellB11 := rowTitle.AddCell()
|
|
cellB11.Value = "签约套餐"
|
|
cellB11.Value = "签约套餐"
|
|
|
|
|
|
@@ -5671,6 +5688,9 @@ func initContract() {
|
|
cellBData10 := row.AddCell()
|
|
cellBData10 := row.AddCell()
|
|
cellBData10.Value = fmt.Sprint(vE.Money)
|
|
cellBData10.Value = fmt.Sprint(vE.Money)
|
|
|
|
|
|
|
|
+ cellBDataPoint := row.AddCell()
|
|
|
|
+ cellBDataPoint.Value = fmt.Sprint(mapPointSpeial[vE.CompanyId])
|
|
|
|
+
|
|
cellBData11 := row.AddCell()
|
|
cellBData11 := row.AddCell()
|
|
cellBData11.Value = mappermissionName[vE.CompanyContractId]
|
|
cellBData11.Value = mappermissionName[vE.CompanyContractId]
|
|
|
|
|
|
@@ -6011,7 +6031,7 @@ func initActZHouqi() {
|
|
}
|
|
}
|
|
|
|
|
|
//func init() {
|
|
//func init() {
|
|
-// initPointBill()
|
|
|
|
|
|
+// initContract()
|
|
//}
|
|
//}
|
|
|
|
|
|
// 研选扣点明细,与专项调研明细
|
|
// 研选扣点明细,与专项调研明细
|