Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
3ab58398
Commit
3ab58398
authored
Aug 15, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
1816841d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
18 deletions
+26
-18
Broker.php
application/api_broker/controller/Broker.php
+2
-2
HomePageLog.php
application/api_broker/controller/HomePageLog.php
+1
-16
Shop.php
application/api_broker/controller/Shop.php
+8
-0
GHouses.php
application/model/GHouses.php
+2
-0
GHousesFollowUp.php
application/model/GHousesFollowUp.php
+13
-0
No files found.
application/api_broker/controller/Broker.php
View file @
3ab58398
...
...
@@ -274,7 +274,7 @@ class Broker extends Basic
/*$params['content']='跟进内容';//跟进内容
$params['labels_id']=1;//g_labels表主键
$params['user_id']=
1
;//u_users ID用户表id
$params['user_id']=
59072
;//u_users ID用户表id
$params['agent_id']=1;//agent表id-当前登录用户id
$params['type']='1';//0电话跟进 1普通跟进
$params['user_status']='1';//0电话跟进 1普通跟进*/
...
...
@@ -292,7 +292,7 @@ class Broker extends Basic
$result
=
$Users
->
getUserCityInfo
(
$user_id
);
if
(
$result
){
$params
[
'province'
]
=
$result
[
0
][
'province'
]
?
$result
[
0
][
'province'
]
:
'上海市'
;
$params
[
'city'
]
=
$result
[
0
][
'city'
]
?
$result
[
0
][
'
province
'
]
:
'上海市'
;
$params
[
'city'
]
=
$result
[
0
][
'city'
]
?
$result
[
0
][
'
city
'
]
:
'上海市'
;
$params
[
'disc'
]
=
$result
[
0
][
'disc'
]
?
$result
[
0
][
'disc'
]
:
'黄浦区'
;
}
...
...
application/api_broker/controller/HomePageLog.php
View file @
3ab58398
...
...
@@ -79,22 +79,7 @@ class HomePageLog extends Basic
}
}
if
(
!
empty
(
$params
[
"province"
])
&&
!
empty
(
$params
[
"province"
]))
{
$where_
[
"f.province"
]
=
$params
[
"province"
];
}
if
(
!
empty
(
$params
[
"city"
])
&&
!
empty
(
$params
[
"city"
]))
{
$where_
[
"f.city"
]
=
$params
[
"city"
];
}
if
(
!
empty
(
$params
[
"disc"
])
&&
!
empty
(
$params
[
"disc"
]))
{
$where_
[
"f.disc"
]
=
$params
[
"disc"
];
}
else
{
$where_
[
"f.city"
]
=
trim
(
$this
->
city
)
?
trim
(
$this
->
city
)
:
'上海市'
;
}
$where_
[
"f.city"
]
=
trim
(
$this
->
city
)
?
trim
(
$this
->
city
)
:
'上海市'
;
$order
=
"f.id desc"
;
...
...
application/api_broker/controller/Shop.php
View file @
3ab58398
...
...
@@ -577,6 +577,14 @@ class Shop extends Basic
||
!
isset
(
$params
[
"agent_name"
])
||
!
isset
(
$params
[
"agent_phone"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$result
=
$this
->
gHousesModel
->
getHouseInfo
(
'province,city,disc'
,
[
'id'
=>
$params
[
"house_id"
]]);
if
(
$result
){
$params
[
'province'
]
=
$result
[
0
][
'province'
]
?
$result
[
0
][
'province'
]
:
'上海市'
;
$params
[
'city'
]
=
$result
[
0
][
'city'
]
?
$result
[
0
][
'city'
]
:
'上海市'
;
$params
[
'disc'
]
=
$result
[
0
][
'disc'
]
?
$result
[
0
][
'disc'
]
:
'黄浦区'
;
}
$follow_up_model
=
new
GHousesFollowUp
();
$id
=
$follow_up_model
->
addHousesFollowUp
(
$params
);
if
(
$id
>
0
)
{
...
...
application/model/GHouses.php
View file @
3ab58398
...
...
@@ -1180,4 +1180,6 @@ class GHouses extends BaseModel
return
$result
;
}
}
application/model/GHousesFollowUp.php
View file @
3ab58398
...
...
@@ -50,6 +50,19 @@ class GHousesFollowUp extends BaseModel
$where_
[
'landlord_name'
]
=
$params
[
'landlord_name'
];
}
if
(
isset
(
$params
[
"province"
]))
{
$where_
[
"province"
]
=
$params
[
"province"
];
}
if
(
isset
(
$params
[
"city"
]))
{
$where_
[
"city"
]
=
$params
[
"city"
];
}
if
(
isset
(
$params
[
"disc"
]))
{
$where_
[
"disc"
]
=
$params
[
"disc"
];
}
$where_
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$where_
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
Db
::
startTrans
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment