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
1e0867fd
Commit
1e0867fd
authored
Mar 05, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人
parent
642a3fc0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
11 deletions
+6
-11
Broker.php
application/api/controller/Broker.php
+1
-1
Finance.php
application/index/controller/Finance.php
+1
-1
AAgents.php
application/model/AAgents.php
+0
-1
ADistrict.php
application/model/ADistrict.php
+2
-2
storeList.js
public/resource/js/storeList.js
+2
-6
No files found.
application/api/controller/Broker.php
View file @
1e0867fd
...
...
@@ -152,7 +152,7 @@ class Broker extends Basic
if
(
!
empty
(
$list
[
0
][
'id'
]))
{
$client_where
[
'b.agent_id'
]
=
[
'neq'
,
$list
[
0
][
'id'
]];
}
$client_where
[
'
a
.id'
]
=
$this
->
userId
;
$client_where
[
'
b
.id'
]
=
$this
->
userId
;
$client
=
$agents
->
getAgentUser
(
$fields
,
$client_where
);
//客方
if
(
!
empty
(
$client
)){
$client
[
'show_content'
]
=
'帮助客户找更多,善于了解客户需求'
;
...
...
application/index/controller/Finance.php
View file @
1e0867fd
...
...
@@ -2623,8 +2623,8 @@ class Finance extends Basic
}
else
{
$source_id
=
$m_pay_adjustment
->
getFieldColumn
(
'id'
,
[
'paylog_id'
=>
$v
[
'id'
]]);
$list
[
$k
][
'source_id'
]
=
empty
(
$source_id
)
?
0
:
implode
(
','
,
$source_id
);
}
$list
[
$k
][
'is_adjustment'
]
=
$source_id
?
1
:
0
;
}
$num
=
$m_refund
->
getFind
(
'id'
,[
'pay_log_id'
=>
$v
[
'id'
],
'is_del'
=>
0
]);
if
(
$num
[
'id'
]
>
0
)
{
$list
[
$k
][
'is_refund'
]
=
1
;
...
...
application/model/AAgents.php
View file @
1e0867fd
...
...
@@ -1617,7 +1617,6 @@ class AAgents extends BaseModel
* @throws \think\exception\DbException
*/
public
function
getAgentUser
(
$field
,
$where
)
{
$where
[
'a.status'
]
=
0
;
return
$this
->
alias
(
'a'
)
->
field
(
$field
)
->
join
(
'u_users b'
,
'a.id = b.agent_id'
,
'left'
)
...
...
application/model/ADistrict.php
View file @
1e0867fd
...
...
@@ -160,7 +160,7 @@ class ADistrict extends BaseModel
if
(
isset
(
$v
->
id
))
{
if
(
$result
[
$k
][
'district_name'
])
{
$agents
=
Db
::
table
(
'a_agents'
)
->
field
(
'name,phone'
)
->
where
([
'status'
=>
0
,
'district_id'
=>
$v
->
id
,
'level'
=>
[
'in'
,
'30,40'
]
'status'
=>
[
'in'
,
'0,3'
]
,
'district_id'
=>
$v
->
id
,
'level'
=>
[
'in'
,
'30,40'
]
])
->
find
();
$result
[
$k
][
'name'
]
=
$agents
[
'name'
]
.
'-'
.
$agents
[
'phone'
];
$result
[
$k
][
'store_num'
]
=
Db
::
table
(
'a_store'
)
->
where
([
...
...
@@ -193,7 +193,7 @@ class ADistrict extends BaseModel
if
(
$result
[
$k
][
'district_name'
])
{
$result
[
$k
][
'name'
]
=
$v
[
'name'
]
.
'-'
.
$v
[
'phone'
];
$result
[
$k
][
'store_num'
]
=
Db
::
table
(
'a_store'
)
->
where
([
'status'
=>
0
,
'district_id'
=>
$v
->
id
'status'
=>
[
'in'
,
'0,3'
]
,
'district_id'
=>
$v
->
id
])
->
count
(
'store_name'
);
}
else
{
$result
[
$k
][
'store_num'
]
=
''
;
...
...
public/resource/js/storeList.js
View file @
1e0867fd
...
...
@@ -350,10 +350,8 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
data
:
{
"phone"
:
$
(
"#set_father_id3"
).
val
(),
"level"
:
"10,30,40"
,
"site_id"
:
user_info_obj
.
site_id
,
"store_id"
:
store
.
house_id
"store_id"
:
store
.
house_id
,
"all"
:
1
,
},
dataType
:
'json'
,
success
:
function
(
data
)
{
...
...
@@ -363,11 +361,9 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
user_ul
+=
'<li class="addphone" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
...
...
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