|
@@ -6430,20 +6430,18 @@ func (this *StatisticReportController) UnusualRenewCompanyList() {
|
|
|
tmpDate = tmpDate.AddDate(0, 1, 0)
|
|
|
|
|
|
}
|
|
|
- // 只查询咨询组销售下的客户
|
|
|
- groupId := 0
|
|
|
- if utils.RunMode == "release" {
|
|
|
- groupId = 37
|
|
|
- } else {
|
|
|
- groupId = 61
|
|
|
+ // 只查询ficc销售下的客户
|
|
|
+ roleTypeCode := "('ficc_seller','ficc_group','ficc_team')"
|
|
|
+ researcherList, err := roadshow.GetSellerList(roleTypeCode, "")
|
|
|
+ if err != nil {
|
|
|
+ return
|
|
|
}
|
|
|
- subAdmins, err := system.GetAdminByGroupId(groupId)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
br.Msg = "获取销售失败"
|
|
|
br.ErrMsg = "获取销售失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- if len(subAdmins) == 0 {
|
|
|
+ if len(researcherList) == 0 {
|
|
|
resp = &company.GetUnusualRenewListGroupMonthResp{
|
|
|
List: allList,
|
|
|
}
|
|
@@ -6454,12 +6452,12 @@ func (this *StatisticReportController) UnusualRenewCompanyList() {
|
|
|
return
|
|
|
}
|
|
|
subAdminIds := make([]string, 0)
|
|
|
- for _, v := range subAdmins {
|
|
|
+ for _, v := range researcherList {
|
|
|
subAdminIds = append(subAdminIds, strconv.Itoa(v.AdminId))
|
|
|
}
|
|
|
- shareSellerIds := strings.Join(subAdminIds, ",")
|
|
|
+ sellerIds := strings.Join(subAdminIds, ",")
|
|
|
|
|
|
- list, err := company.GetUnusualRenewList(startDateTimer, endDateTimer, productId, shareSellerIds)
|
|
|
+ list, err := company.GetUnusualRenewList(startDateTimer, endDateTimer, productId, sellerIds)
|
|
|
if err != nil {
|
|
|
br.Msg = "数据异常"
|
|
|
br.ErrMsg = "数据异常,Err:" + err.Error()
|