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
5393dcad
Commit
5393dcad
authored
Aug 23, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报备时间轴
parent
dedb0166
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
8 deletions
+61
-8
OrderLog.php
application/api_broker/controller/OrderLog.php
+5
-5
OrderLogService.php
application/api_broker/service/OrderLogService.php
+23
-0
OFinancialAudit.php
application/model/OFinancialAudit.php
+33
-3
No files found.
application/api_broker/controller/OrderLog.php
View file @
5393dcad
...
...
@@ -404,9 +404,9 @@ class OrderLog extends Basic
public
function
selectReportAllV2
()
{
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"order_id"
=>
38024
,
);
*/
);
if
(
!
isset
(
$params
[
"order_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
...
...
@@ -425,9 +425,9 @@ class OrderLog extends Basic
public
function
selectReportAllV3
()
{
$params
=
$this
->
params
;
/*
$params = array(
"order_id" => 380
02
,
);
*/
$params
=
array
(
"order_id"
=>
380
24
,
);
if
(
!
isset
(
$params
[
"order_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
...
...
application/api_broker/service/OrderLogService.php
View file @
5393dcad
...
...
@@ -8,6 +8,7 @@ use app\model\FollowUpLogModel;
use
app\model\GHousesFollowUp
;
use
app\model\GHousesToAgents
;
use
app\model\OBargainModel
;
use
app\model\OFinancialAudit
;
use
app\model\OImg
;
use
app\model\OMarchInModel
;
use
app\model\OPartialCommission
;
...
...
@@ -386,6 +387,7 @@ class OrderLogService
$oPayLogModel
=
new
OPayLogModel
();
$oRefundModel
=
new
ORefundModel
();
$oBargainModel
=
new
OBargainModel
();
$oFinancialModel
=
new
OFinancialAudit
();
$orderData
=
$orderModel
->
selectOrderByOrderId
(
"f_id,house_title"
,
[
"order_id"
=>
$order_id
]);
...
...
@@ -467,6 +469,16 @@ class OrderLogService
}
}
//审核流程
$field_financial
=
"id,bargain_id,agent_id,source,status,remark,audit_level,audit_id,audit_name,create_time,update_time"
;
$oFinancialData
=
$oFinancialModel
->
selectFinancialByOrderNo
(
$field_financial
,
[
"order_id"
=>
$order_id
]);
if
(
count
(
$oFinancialData
)
>
0
)
{
foreach
(
$oFinancialData
as
$k
=>
$v
)
{
$v
[
"step_name"
]
=
"financial"
;
$result
[
$sort
++
]
=
$v
;
}
}
return
$this
->
sortByTime
(
$result
);
}
...
...
@@ -490,6 +502,7 @@ class OrderLogService
$oPayLogModel
=
new
OPayLogModel
();
$oRefundModel
=
new
ORefundModel
();
$oBargainModel
=
new
OBargainModel
();
$oFinancialModel
=
new
OFinancialAudit
();
$orderData
=
$orderModel
->
selectOrderByOrderId
(
"f_id,house_title"
,
[
"order_id"
=>
$order_id
]);
...
...
@@ -572,6 +585,16 @@ class OrderLogService
}
}
//审核流程
$field_financial
=
"id,bargain_id,agent_id,source,status,remark,audit_level,audit_id,audit_name,create_time,update_time"
;
$oFinancialData
=
$oFinancialModel
->
selectFinancialByOrderNo
(
$field_financial
,
[
"order_id"
=>
$order_id
]);
if
(
count
(
$oFinancialData
)
>
0
)
{
foreach
(
$oFinancialData
as
$k
=>
$v
)
{
$v
[
"step_name"
]
=
"financial"
;
$result
[
$sort
++
]
=
$v
;
}
}
return
$this
->
sortByTime
(
$result
);
}
...
...
application/model/OFinancialAudit.php
View file @
5393dcad
...
...
@@ -17,7 +17,8 @@ class OFinancialAudit extends BaseModel
* @param $data
* @return false|int
*/
public
function
addAudit
(
$data
)
{
public
function
addAudit
(
$data
)
{
$save_data
[
'bargain_id'
]
=
$data
[
'bargain_id'
];
$save_data
[
'agent_id'
]
=
$data
[
'agent_id'
];
$save_data
[
'order_no'
]
=
$data
[
'order_no'
];
...
...
@@ -40,7 +41,8 @@ class OFinancialAudit extends BaseModel
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getLastStep
(
$bargain_id
)
{
public
function
getLastStep
(
$bargain_id
)
{
return
$this
->
field
(
'id,audit_level'
)
->
where
([
'bargain_id'
=>
$bargain_id
,
'status'
=>
1
,
...
...
@@ -76,7 +78,8 @@ class OFinancialAudit extends BaseModel
* @return bool
* @throws \think\exception\PDOException
*/
public
function
backOutUpdate
(
int
$bargain_id
,
array
$params
=
[])
:
bool
{
public
function
backOutUpdate
(
int
$bargain_id
,
array
$params
=
[])
:
bool
{
if
(
empty
(
$bargain_id
))
{
return
false
;
...
...
@@ -102,4 +105,30 @@ class OFinancialAudit extends BaseModel
return
$result
;
}
/**
* 查询成交报告记录
*
* @param $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
selectFinancialByOrderNo
(
$filed
,
$params
)
{
$where_
=
[];
if
(
isset
(
$params
[
"order_id"
]))
{
$where_
[
"order_id"
]
=
$params
[
"order_id"
];
}
$where_
[
"is_del"
]
=
0
;
$data
=
$this
->
field
(
$filed
)
->
where
(
$where_
)
->
select
();
return
$data
;
}
}
\ No newline at end of file
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