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
23d685d9
Commit
23d685d9
authored
Apr 25, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
report info
parent
12ef4039
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
3 deletions
+43
-3
OrderLogService.php
application/api_broker/service/OrderLogService.php
+7
-3
OReportModel.php
application/model/OReportModel.php
+36
-0
No files found.
application/api_broker/service/OrderLogService.php
View file @
23d685d9
...
...
@@ -190,7 +190,10 @@ class OrderLogService
/**
* 查询流程 订单时间轴
* @param $order_id
* @return array
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
selectListByOrderNo
(
$order_id
)
{
...
...
@@ -214,9 +217,10 @@ class OrderLogService
}
$report_id
=
$orderData
[
0
][
"f_id"
];
$field_report
=
"id,report_agent_id,report_agent_phone,report_agent_name,report_store_id,user_id,user_phone,user_name,vehicle,intro,predict_see_time,create_time"
;
$field_report
=
"a.id,a.report_agent_id,a.report_agent_phone,a.report_agent_name,a.report_store_id,
a.user_id,a.user_phone,a.user_name,a.vehicle,a.intro,a.predict_see_time,a.create_time,b.store_name,c.district_name"
;
$reportData
=
$oReportModel
->
selectReportById
(
$field_report
,
[
"id"
=>
$report_id
]);
$reportData
=
$oReportModel
->
selectReport
Info
ById
(
$field_report
,
[
"id"
=>
$report_id
]);
if
(
count
(
$reportData
)
==
0
)
{
return
[
"101"
,
"报备记录未找到"
];
}
...
...
application/model/OReportModel.php
View file @
23d685d9
...
...
@@ -81,6 +81,42 @@ class OReportModel extends Model
->
select
();
}
/**
* 查询报备信息
*
* @param string $filed
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
selectReportInfoById
(
$filed
=
"id"
,
$params
)
{
$where_
=
[];
if
(
isset
(
$params
[
"id"
]))
{
$where_
[
"a.id"
]
=
$params
[
"id"
];
}
if
(
isset
(
$params
[
"report_agent_id"
]))
{
$where_
[
"a.report_agent_id"
]
=
$params
[
"report_agent_id"
];
}
if
(
isset
(
$params
[
"report_store_id"
]))
{
$where_
[
"a.report_store_id"
]
=
$params
[
"report_store_id"
];
}
if
(
isset
(
$params
[
"user_id"
]))
{
$where_
[
"a.user_id"
]
=
$params
[
"user_id"
];
}
$where_
[
"a.status"
]
=
0
;
return
$this
->
db
->
field
(
$filed
)
->
alias
(
"a"
)
->
join
(
"a_store b"
,
"a.store_id=b.id"
,
"left"
)
->
join
(
"a_district c"
,
"a.district_id=c.id"
,
"left"
)
->
where
(
$where_
)
->
select
();
}
/**
* 查询报备信息
*
...
...
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