|
@@ -136,7 +136,7 @@ func (this *CompanyController) SearchList() {
|
|
|
item := list[i]
|
|
|
itemStatus := item.Status
|
|
|
//白嫖客户标记
|
|
|
- if _, ok := scroungeMap[item.CompanyId]; ok{
|
|
|
+ if _, ok := scroungeMap[item.CompanyId]; ok {
|
|
|
item.IsScrounge = 1
|
|
|
}
|
|
|
if !strings.Contains(item.Status, "/") {
|
|
@@ -969,6 +969,8 @@ func (this *CompanyController) List() {
|
|
|
} else {
|
|
|
sortStr = " ORDER BY b.try_out_day_total "
|
|
|
}
|
|
|
+ } else if sortParam == "closeTime" {
|
|
|
+ sortStr = " ORDER BY b.close_time "
|
|
|
} else {
|
|
|
br.Msg = "获取失败"
|
|
|
br.ErrMsg = "排序字段传入数据异常:" + sortParam
|
|
@@ -1739,7 +1741,7 @@ func (this *CompanyController) List() {
|
|
|
scroungeMap[v.CompanyId] = 1
|
|
|
}
|
|
|
for i, v := range companyLists {
|
|
|
- if _, ok := scroungeMap[v.CompanyId]; ok{
|
|
|
+ if _, ok := scroungeMap[v.CompanyId]; ok {
|
|
|
companyLists[i].IsScrounge = 1
|
|
|
}
|
|
|
}
|
|
@@ -3393,7 +3395,7 @@ func (this *CompanyController) Detail() {
|
|
|
for _, v := range scroungeList {
|
|
|
scroungeMap[v.CompanyId] = 1
|
|
|
}
|
|
|
- if _, ok := scroungeMap[item.CompanyId]; ok{
|
|
|
+ if _, ok := scroungeMap[item.CompanyId]; ok {
|
|
|
item.IsScrounge = 1
|
|
|
}
|
|
|
|