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
213a208f
Commit
213a208f
authored
Oct 18, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门
parent
c850ed99
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
PushMessageService.php
application/api_broker/service/PushMessageService.php
+3
-0
District.php
application/index/controller/District.php
+1
-1
ADistrict.php
application/model/ADistrict.php
+15
-1
No files found.
application/api_broker/service/PushMessageService.php
View file @
213a208f
...
@@ -275,6 +275,9 @@ class PushMessageService
...
@@ -275,6 +275,9 @@ class PushMessageService
$data
[
'house_id'
]
=
$house_id
;
$data
[
'house_id'
]
=
$house_id
;
$result
=
$m_push
->
addAgentIdArray
(
$agent_id
,
$operation_id
,
$type
,
$data
);
$result
=
$m_push
->
addAgentIdArray
(
$agent_id
,
$operation_id
,
$type
,
$data
);
break
;
break
;
case
4
:
$result
=
$m_push
->
addAgentIdArray
(
$agent_id
,
$operation_id
,
$type
,
$data
);
break
;
default
:
default
:
$result
=
$m_push
->
addData
(
$data
,
$operation_id
,
$type
);
$result
=
$m_push
->
addData
(
$data
,
$operation_id
,
$type
);
}
}
...
...
application/index/controller/District.php
View file @
213a208f
...
@@ -41,7 +41,7 @@ class District extends Basic
...
@@ -41,7 +41,7 @@ class District extends Basic
$field
=
''
;
$field
=
''
;
if
(
$this
->
params
[
'search'
]
!=
NULL
)
{
if
(
$this
->
params
[
'search'
]
!=
NULL
)
{
$field
=
'a.id,a.district_name,a.create_time,b.name,b.phone'
;
$field
=
'a.id,a.district_name,a.create_time,b.name,b.phone
,a.site_id
'
;
$where
.=
"a.status=0 AND (phone like '
{
$this
->
params
[
'search'
]
}
%' or name like '
{
$this
->
params
[
'search'
]
}
%')"
;
$where
.=
"a.status=0 AND (phone like '
{
$this
->
params
[
'search'
]
}
%' or name like '
{
$this
->
params
[
'search'
]
}
%')"
;
$join
=
1
;
$join
=
1
;
}
}
...
...
application/model/ADistrict.php
View file @
213a208f
...
@@ -104,7 +104,9 @@ class ADistrict extends BaseModel
...
@@ -104,7 +104,9 @@ class ADistrict extends BaseModel
*/
*/
public
function
getDistrictById
(
$id
)
{
public
function
getDistrictById
(
$id
)
{
if
(
$id
)
{
if
(
$id
)
{
$data
[
'district_name'
]
=
$this
->
where
(
'id'
,
$id
)
->
value
(
'district_name'
);
$district
=
$this
->
field
(
'district_name,site_id'
)
->
where
(
'id'
,
$id
)
->
find
();
$data
[
'district_name'
]
=
$district
[
'district_name'
];
$data
[
'city'
]
=
Db
::
table
(
'a_site'
)
->
where
(
'id'
,
$district
[
'site_id'
])
->
value
(
'city'
);
$agents
=
Db
::
table
(
'a_agents'
)
->
field
(
'name,phone'
)
$agents
=
Db
::
table
(
'a_agents'
)
->
field
(
'name,phone'
)
->
where
([
->
where
([
'status'
=>
0
,
'status'
=>
0
,
...
@@ -161,6 +163,12 @@ class ADistrict extends BaseModel
...
@@ -161,6 +163,12 @@ class ADistrict extends BaseModel
$result
[
$k
][
'store_num'
]
=
''
;
$result
[
$k
][
'store_num'
]
=
''
;
}
}
}
}
if
(
$v
[
'site_id'
])
{
$result
[
$k
][
'city'
]
=
Db
::
table
(
'a_site'
)
->
where
(
'id'
,
$v
[
'site_id'
])
->
value
(
'city'
);
}
else
{
$result
[
$k
][
'city'
]
=
""
;
}
}
}
}
else
{
}
else
{
$data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
$data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
...
@@ -184,6 +192,12 @@ class ADistrict extends BaseModel
...
@@ -184,6 +192,12 @@ class ADistrict extends BaseModel
$result
[
$k
][
'store_num'
]
=
''
;
$result
[
$k
][
'store_num'
]
=
''
;
}
}
}
}
if
(
$v
[
'site_id'
])
{
$result
[
$k
][
'city'
]
=
Db
::
table
(
'a_site'
)
->
where
(
'id'
,
$v
[
'site_id'
])
->
value
(
'city'
);
}
else
{
$result
[
$k
][
'city'
]
=
""
;
}
}
}
}
}
...
...
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