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
e80f6f84
Commit
e80f6f84
authored
Aug 14, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的约带看搜索
parent
4e4341c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
Report.php
application/index/controller/Report.php
+18
-0
OReportModel.php
application/model/OReportModel.php
+28
-0
No files found.
application/index/controller/Report.php
View file @
e80f6f84
...
...
@@ -14,6 +14,7 @@ use app\api_broker\service\ReportService;
use
app\index\extend\Basic
;
use
app\model\AAgents
;
use
app\model\ASite
;
use
app\model\GHouses
;
use
app\model\OReportModel
;
use
think\cache\driver\Redis
;
...
...
@@ -191,6 +192,23 @@ class Report extends Basic
return
$this
->
response
(
101
,
"暂无权限"
);
}
}
if
(
!
empty
(
$params
[
'internal_address'
]))
{
$m_house
=
new
GHouses
();
$house_where
[
'internal_address'
]
=
[
'like'
,
'%'
.
$params
[
'internal_address'
]
.
'%'
];
$house_where
[
'status'
]
=
[
'<>'
,
3
];
$house_id_array
=
$m_house
->
getHouseColumn
(
'id'
,
$house_where
);
if
(
$house_id_array
)
{
if
(
$params
[
'house_id'
])
{
$num
=
count
(
$house_id_array
)
+
1
;
$house_id_array
[
$num
]
=
$params
[
'house_id'
];
}
$params
[
'house_id'
]
=
implode
(
','
,
$house_id_array
);
}
}
$result
=
$this
->
service_
->
orderListAll
(
$field
,
$params
,
$pageNo
,
$pageSize
,
$check_type
);
// } else {
// $result = $this->service_->orderList($field, $params, $pageNo, $pageSize);
...
...
application/model/OReportModel.php
View file @
e80f6f84
...
...
@@ -198,6 +198,34 @@ class OReportModel extends Model
$where
[
'b.id'
]
=
$params
[
'order_id'
];
}
if
(
!
empty
(
$params
[
'house_title'
]))
{
$where
[
'b.house_title'
]
=
$params
[
'house_title'
];
}
if
(
!
empty
(
$params
[
'house_id'
]))
{
$where
[
'b.house_id'
]
=
$params
[
'house_id'
];
}
if
(
!
empty
(
$params
[
'user_phone'
]))
{
$where
[
'a.user_phone'
]
=
$params
[
'user_phone'
];
}
if
(
!
empty
(
$params
[
'user_id'
]))
{
$where
[
'a.user_id'
]
=
$params
[
'user_id'
];
}
if
(
!
empty
(
$params
[
'report_agent_name'
]))
{
$where
[
'a.report_agent_name'
]
=
[
'LIKE'
,
'%'
.
$params
[
'report_agent_name'
]
.
'%'
];
}
if
(
!
empty
(
$params
[
'report_agent_phone'
]))
{
$where
[
'a.report_agent_phone'
]
=
[
'LIKE'
,
'%'
.
$params
[
'report_agent_phone'
]
.
'%'
];
}
if
(
!
empty
(
$params
[
'create_time_start'
])
&&
!
empty
(
$params
[
'create_time_end'
]))
{
$where
[
'a.create_time'
]
=
[
'between'
,
[
$params
[
'create_time_start'
]
.
' 00:00:00'
,
$params
[
'create_time_end'
]
.
' 23:59:59'
]];
}
switch
(
$params
[
"type"
])
{
case
2
:
$result
=
$this
->
db
->
field
(
$filed
)
...
...
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