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
22207889
Commit
22207889
authored
Nov 29, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
order_id
parent
9cd64933
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
AppointmentShop.php
application/api_broker/controller/AppointmentShop.php
+4
-1
OrderModel.php
application/model/OrderModel.php
+10
-0
No files found.
application/api_broker/controller/AppointmentShop.php
View file @
22207889
...
...
@@ -16,6 +16,7 @@ use app\model\AAgents;
use
app\model\AppointWatchShop
;
use
app\model\GHouses
;
use
app\model\FollowUp
;
use
app\model\OrderModel
;
use
think\Request
;
class
AppointmentShop
extends
Basic
...
...
@@ -151,9 +152,11 @@ class AppointmentShop extends Basic
$data
[
'msg'
]
=
'报备成功并通知经纪人'
;
$appoint_watch
->
commit
();
//提交事务
$m_order
=
new
OrderModel
();
$order_id
=
$m_order
->
getFieldValue
(
'id'
,
[
'f_id'
=>
$is_ok
]);
$push
=
new
PushMessageService
();
$push
->
pushReportMessage
(
$appoint_data
[
"house_id"
],
$agent_id
,
1
,
$this
->
agentId
);
return
$this
->
response
(
"200"
,
$data
[
'msg'
],
[
'user_id'
=>
$appoint_data
[
"user_id"
],
'order_id'
=>
$
is_ok
]);
return
$this
->
response
(
"200"
,
$data
[
'msg'
],
[
'user_id'
=>
$appoint_data
[
"user_id"
],
'order_id'
=>
$
order_id
]);
}
else
{
$appoint_watch
->
rollback
();
//回滚事务
return
$this
->
response
(
"101"
,
"save exception"
);
...
...
application/model/OrderModel.php
View file @
22207889
...
...
@@ -271,4 +271,13 @@ class OrderModel extends Model
//dump($this->getLastSql());
return
$result
;
}
/**
* @param $field
* @param $where
* @return mixed
*/
public
function
getFieldValue
(
$field
,
$where
)
{
return
$this
->
db_
->
where
(
$where
)
->
value
(
$field
);
}
}
\ 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