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
ed692314
Commit
ed692314
authored
Jul 04, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
02b281a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
12 deletions
+37
-12
OrderLog.php
application/api_broker/controller/OrderLog.php
+3
-3
OrderLogService.php
application/api_broker/service/OrderLogService.php
+30
-4
OImg.php
application/model/OImg.php
+4
-5
No files found.
application/api_broker/controller/OrderLog.php
View file @
ed692314
...
...
@@ -332,9 +332,9 @@ class OrderLog extends Basic
public
function
selectReportAll
()
{
$params
=
$this
->
params
;
/*
$params = array(
"order_id" =>
2
,
);
*/
$params
=
array
(
"order_id"
=>
38024
,
);
if
(
!
isset
(
$params
[
"order_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
...
...
application/api_broker/service/OrderLogService.php
View file @
ed692314
...
...
@@ -79,7 +79,7 @@ class OrderLogService
if
(
$father_id
>
0
)
{
//保存图片
$oImgModel
=
new
OImg
();
$oImgModel
->
addImgAll
(
$father_id
,
2
,
$transfer_img
);
$oImgModel
->
addImgAll
(
$father_id
,
2
,
$transfer_img
);
$pushMarchIn
=
new
PushMessageService
(
$params
[
"report_id"
],
2
);
$pushMarchIn
->
pushMarchInMessage
(
$params
[
"report_id"
],
2
);
//推送
...
...
@@ -283,12 +283,12 @@ class OrderLogService
}
//收款
$field_pay_log
=
"id,order_no,order_id,agent_id,agent_name,type,pay_type,money,house_number,industry_type,
$field_pay_log
=
"id,order_no,
father_id,
order_id,agent_id,agent_name,type,pay_type,money,house_number,industry_type,
remark,transfer_img,real_money,source,create_time"
;
$payLogData
=
$oPayLogModel
->
selectPayLogByOrderNo
(
$field_pay_log
,
[
"order_id"
=>
$order_id
]);
if
(
count
(
$payLogData
)
>
0
)
{
foreach
(
$payLogData
as
$k
=>
$v
)
{
$sortPayLogData
=
$this
->
arr2tree
(
$payLogData
);
foreach
(
$sortPayLogData
as
$k
=>
$v
)
{
$v
[
"step_name"
]
=
"pay_log"
;
$v
[
"img_path"
]
=
CHAT_IMG_URL
;
$result
[
$sort
++
]
=
$v
;
...
...
@@ -321,6 +321,32 @@ class OrderLogService
return
$this
->
sortByTime
(
$result
);
}
public
function
arr2tree
(
$list
)
{
$tree
=
$trees
=
[];
foreach
(
$list
as
$key
=>
$item
)
{
if
(
$item
[
"father_id"
]
==
0
)
{
$list
[
$key
][
"father_id"
]
=
$item
[
"id"
];
}
}
foreach
(
$list
as
$value
)
{
$tree
[
$value
[
"father_id"
]][]
=
$value
;
}
foreach
(
$tree
as
$i
=>
$v
)
{
//查询图片
$oImgModel
=
new
OImg
();
$params
[
"img_id"
]
=
$v
[
0
][
"father_id"
];
$params
[
"img_type"
]
=
2
;
$img_arr
=
$oImgModel
->
getImgList
(
$params
);
$trees
[
$i
][
"img"
]
=
$img_arr
;
$trees
[
$i
][
"list"
]
=
$v
;
}
sort
(
$trees
);
return
$trees
;
}
/**
* 查询流程 客户动态
...
...
application/model/OImg.php
View file @
ed692314
...
...
@@ -104,7 +104,7 @@ class OImg extends BaseModel
* @param string $field
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getImgList
(
array
$params
,
string
$field
=
"id"
)
public
function
getImgList
(
array
$params
,
string
$field
=
"id
,img_name
"
)
{
if
(
isset
(
$params
[
"img_id"
]))
{
$where_
[
"img_id"
]
=
$params
[
"img_id"
];
...
...
@@ -114,13 +114,12 @@ class OImg extends BaseModel
}
$where_
[
"img_status"
]
=
0
;
$
res
=
$this
$
data
=
$this
->
db_
->
field
(
$field
)
->
where
(
$where_
)
->
select
();
//var_dump($this->getLastSql());
return
$res
;
// echo $this->getLastSql();
return
$data
;
}
/**
...
...
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