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
9a62e3bf
Commit
9a62e3bf
authored
Apr 16, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
e708fc00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
OrderLog.php
application/api_broker/controller/OrderLog.php
+3
-3
HouseNumUpdateService.php
application/api_broker/service/HouseNumUpdateService.php
+3
-2
No files found.
application/api_broker/controller/OrderLog.php
View file @
9a62e3bf
...
@@ -160,7 +160,7 @@ class OrderLog extends Basic
...
@@ -160,7 +160,7 @@ class OrderLog extends Basic
!
isset
(
$params
[
"price"
])
||
!
isset
(
$params
[
"commission"
])
||
!
isset
(
$params
[
"commission_arr"
]))
{
!
isset
(
$params
[
"price"
])
||
!
isset
(
$params
[
"commission"
])
||
!
isset
(
$params
[
"commission_arr"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
/*
$params = array(
/*
$params = array(
"submit_agent_id" => 1,//申请经纪人id
"submit_agent_id" => 1,//申请经纪人id
"submit_agent_name" => 1,//申请经纪人id
"submit_agent_name" => 1,//申请经纪人id
"report_id" => 1,//报备id
"report_id" => 1,//报备id
...
@@ -176,8 +176,8 @@ class OrderLog extends Basic
...
@@ -176,8 +176,8 @@ class OrderLog extends Basic
//`scale`'分佣比例 如 5表示百分之5',
//`scale`'分佣比例 如 5表示百分之5',
// `scale_fee` '应分佣金 存分 ',
// `scale_fee` '应分佣金 存分 ',
"commission_arr" =>
[ [ "role" => 10, "agent_id" => 10, "scale" => 10, "scale_fee" => 1222 ]
,
"commission_arr" =>
'[ { "role" : 10, "agent_id" : 10, "scale" : 10, "scale_fee" : 1222 }
,
[ "role" => 11, "agent_id" => 12, "scale" => 13, "scale_fee" => 1112 ] ]
,
{ "role": 11, "agent_id" : 12, "scale": 13, "scale_fee" : 1112 }]'
,
);*/
);*/
$params
[
"commission_arr"
]
=
json_decode
(
$params
[
"commission_arr"
],
true
);
$params
[
"commission_arr"
]
=
json_decode
(
$params
[
"commission_arr"
],
true
);
...
...
application/api_broker/service/HouseNumUpdateService.php
View file @
9a62e3bf
...
@@ -38,11 +38,12 @@ class HouseNumUpdateService
...
@@ -38,11 +38,12 @@ class HouseNumUpdateService
$field
=
"b.id as house_id,b.status,b.residue_num"
;
$field
=
"b.id as house_id,b.status,b.residue_num"
;
$orderParams
[
"a.id"
]
=
$order_id
;
$orderParams
[
"a.id"
]
=
$order_id
;
$houseInfo
=
$orderModel
->
getHouseInfoByOrderId
(
$field
,
$orderParams
);
$houseInfo
=
$orderModel
->
getHouseInfoByOrderId
(
$field
,
$orderParams
);
if
(
count
(
$houseInfo
)
>
0
&&
$houseInfo
[
0
][
"residue_num"
]
>
0
&&
$houseInfo
[
0
][
"status"
]
==
1
){
if
(
count
(
$houseInfo
)
>
0
&&
$houseInfo
[
0
][
"residue_num"
]
>
0
&&
$houseInfo
[
0
][
"status"
]
==
1
){
//减数量
//减数量
$houseModel
=
new
GHouses
();
$houseModel
=
new
GHouses
();
$id
=
$houseInfo
[
0
][
"id"
];
$id
=
$houseInfo
[
0
][
"
house_
id"
];
$updateParams
[
"residue_num"
]
=
$houseInfo
[
0
][
"residue_num"
]
-
1
;
$updateParams
[
"residue_num"
]
=
$houseInfo
[
0
][
"residue_num"
]
-
1
;
if
(
$houseInfo
[
0
][
"residue_num"
]
==
1
){
if
(
$houseInfo
[
0
][
"residue_num"
]
==
1
){
$updateParams
[
"status"
]
=
2
;
$updateParams
[
"status"
]
=
2
;
...
@@ -83,7 +84,7 @@ class HouseNumUpdateService
...
@@ -83,7 +84,7 @@ class HouseNumUpdateService
//减数量
//减数量
$houseModel
=
new
GHouses
();
$houseModel
=
new
GHouses
();
$id
=
$houseInfo
[
0
][
"id"
];
$id
=
$houseInfo
[
0
][
"
house_
id"
];
$updateParams
[
"residue_num"
]
=
$houseInfo
[
0
][
"residue_num"
]
+
1
;
$updateParams
[
"residue_num"
]
=
$houseInfo
[
0
][
"residue_num"
]
+
1
;
if
(
$houseInfo
[
0
][
"residue_num"
]
==
2
){
if
(
$houseInfo
[
0
][
"residue_num"
]
==
2
){
$updateParams
[
"status"
]
=
1
;
$updateParams
[
"status"
]
=
1
;
...
...
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