|
@@ -360,7 +360,10 @@ func (this *StatisticCompanyMergerController) MergeCompanyList() {
|
|
condition1 += condition
|
|
condition1 += condition
|
|
pars1 = append(pars1, pars)
|
|
pars1 = append(pars1, pars)
|
|
|
|
|
|
- condition1 += ` AND a.not_renewal_hide = 0 AND a.status = 1 AND a.start_date >= '2020-01-01' AND a.end_date >= ? AND a.end_date <= ? `
|
|
|
|
|
|
+ if isConfirm != 2 {
|
|
|
|
+ condition1 += ` AND a.not_renewal_hide = 0 `
|
|
|
|
+ }
|
|
|
|
+ condition1 += ` AND a.status = 1 AND a.start_date >= '2020-01-01' AND a.end_date >= ? AND a.end_date <= ? `
|
|
pars1 = append(pars1, startDate, endDate)
|
|
pars1 = append(pars1, startDate, endDate)
|
|
//condition1 += ` AND a.operation = ? `
|
|
//condition1 += ` AND a.operation = ? `
|
|
//pars1 = append(pars1, "try_out")
|
|
//pars1 = append(pars1, "try_out")
|
|
@@ -368,7 +371,7 @@ func (this *StatisticCompanyMergerController) MergeCompanyList() {
|
|
|
|
|
|
//销售筛选条件
|
|
//销售筛选条件
|
|
if adminId != "" {
|
|
if adminId != "" {
|
|
- condition1 += ` AND c.seller_id_last in (` + adminId + `) `
|
|
|
|
|
|
+ condition1 += ` AND a.seller_id_last in (` + adminId + `) `
|
|
} else {
|
|
} else {
|
|
condition1, pars1 = getQueryParamsLast(condition1, pars1, sysUser, "c.")
|
|
condition1, pars1 = getQueryParamsLast(condition1, pars1, sysUser, "c.")
|
|
}
|
|
}
|
|
@@ -1961,7 +1964,7 @@ func (this *StatisticCompanyMergerController) CompanyContractPercentageListExpor
|
|
if exportType == 1 {
|
|
if exportType == 1 {
|
|
//条件
|
|
//条件
|
|
if adminId != "" {
|
|
if adminId != "" {
|
|
- condition += ` AND a.seller_id_init in (` + adminId + `) `
|
|
|
|
|
|
+ condition += ` AND a.seller_id_last in (` + adminId + `) `
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2003,11 +2006,11 @@ func (this *StatisticCompanyMergerController) CompanyContractPercentageListExpor
|
|
var companyContractIds []int
|
|
var companyContractIds []int
|
|
for _, v := range listRenewal {
|
|
for _, v := range listRenewal {
|
|
companyContractIds = append(companyContractIds, v.CompanyContractId)
|
|
companyContractIds = append(companyContractIds, v.CompanyContractId)
|
|
- v.SellerId = v.SellerIdInit
|
|
|
|
|
|
+ v.SellerId = v.SellerIdLast
|
|
}
|
|
}
|
|
for _, v := range listEndDate {
|
|
for _, v := range listEndDate {
|
|
companyContractIds = append(companyContractIds, v.CompanyContractId)
|
|
companyContractIds = append(companyContractIds, v.CompanyContractId)
|
|
- v.SellerId = v.SellerIdInit
|
|
|
|
|
|
+ v.SellerId = v.SellerIdLast
|
|
}
|
|
}
|
|
|
|
|
|
//合同归因标签
|
|
//合同归因标签
|
|
@@ -2100,9 +2103,9 @@ func (this *StatisticCompanyMergerController) CompanyContractPercentageListExpor
|
|
cellBData := row.AddCell()
|
|
cellBData := row.AddCell()
|
|
cellBData.Value = item.ProductStatus
|
|
cellBData.Value = item.ProductStatus
|
|
cellCData := row.AddCell()
|
|
cellCData := row.AddCell()
|
|
- cellCData.Value = item.SellerName
|
|
|
|
|
|
+ cellCData.Value = item.SellerNameLast
|
|
cellCSellerData := row.AddCell()
|
|
cellCSellerData := row.AddCell()
|
|
- cellCSellerData.Value = item.ShareSeller
|
|
|
|
|
|
+ cellCSellerData.Value = item.ShareSellerLast
|
|
cellDData := row.AddCell()
|
|
cellDData := row.AddCell()
|
|
cellDData.Value = item.StartDate + "~" + item.EndDate
|
|
cellDData.Value = item.StartDate + "~" + item.EndDate
|
|
cellEData := row.AddCell()
|
|
cellEData := row.AddCell()
|