|
@@ -146,7 +146,7 @@ func (this *LoanAction)Telephone_interviews(){
|
|
|
perPage, _ := this.GetInteger("perPage")
|
|
|
query := make(map[string]interface{})
|
|
|
query["visit_back"] = 0
|
|
|
- ldata:=mgo.Find("jy_loan",query,nil,nil,false,(currentPage-1)*perPage, perPage)
|
|
|
+ ldata:=mgo.Find("jy_loan",query,`{"application_time":-1}`,nil,false,(currentPage-1)*perPage, perPage)
|
|
|
count := mgo.Count("jy_loan", query)
|
|
|
data := make(map[string]interface{})
|
|
|
if len(*ldata)!=0{
|
|
@@ -260,7 +260,7 @@ func (this *LoanAction)Clue_manage(){
|
|
|
}else{
|
|
|
currentPage, _ := this.GetInteger("currentPage")
|
|
|
perPage, _ := this.GetInteger("perPage")
|
|
|
- data :=mgo.Find("jy_loan",nil,`{"application":1}`,`{"companyName":1,"registration":1,"visit_person":1,"visit_time":1,"account_manager":1,"opinion_time":1,"classify":1,"uid":1}`,false,(currentPage-1)*perPage, perPage)
|
|
|
+ data :=mgo.Find("jy_loan",nil,`{"application":1}`,`{"companyName":1,"registration":1,"visit_person":1,"visit_time":1,"account_manager":1,"opinion_time":1,"classify_type":1,"uid":1}`,false,(currentPage-1)*perPage, perPage)
|
|
|
count := mgo.Count("jy_loan",nil)
|
|
|
if (*data!=nil){
|
|
|
this.ServeJson(map[string]interface{}{
|
|
@@ -422,11 +422,13 @@ func (this *LoanAction)Clue_save(){
|
|
|
}else{
|
|
|
uid := this.GetString("uid")
|
|
|
classify_msg := this.GetString("classify_msg")
|
|
|
+ classify_type := this.GetString("classify_type")
|
|
|
query := make(map[string]interface{})
|
|
|
query["uid"] = uid
|
|
|
set :=make(map[string]interface{})
|
|
|
info := make(map[string]interface{})
|
|
|
info["classify_msg"] = classify_msg
|
|
|
+ info["classify_type"] = classify_type
|
|
|
set["$set"] = info
|
|
|
res := mgo.Update("jy_loan",query,set,true,false)
|
|
|
if res{
|