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
ac74fd7b
Commit
ac74fd7b
authored
May 22, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
order_id
parent
6975c14a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
PayLogOpen.php
application/api_broker/controller/PayLogOpen.php
+2
-1
PayLogOpenService.php
application/api_broker/service/PayLogOpenService.php
+6
-3
PayLogOpen.php
application/index/controller/PayLogOpen.php
+2
-2
No files found.
application/api_broker/controller/PayLogOpen.php
View file @
ac74fd7b
...
...
@@ -51,6 +51,7 @@ class PayLogOpen extends Basic
}
$pay_log_id
=
$params
[
"pay_log_id"
];
$report_id
=
$params
[
"report_id"
];
$order_id
=
$params
[
"order_id"
];
$bargain_id
=
$params
[
"bargain_id"
];
$agent_id
=
$params
[
"agent_id"
];
$house_id
=
$params
[
"house_id"
];
...
...
@@ -63,7 +64,7 @@ class PayLogOpen extends Basic
}
$return_id
=
$this
->
service_
->
addApplyForOpen
(
$pay_log_id
,
$report_id
,
$bargain_id
,
$agent_id
,
$house_id
,
$intro
,
$house_address
,
$open_img
);
$house_address
,
$open_img
,
$order_id
);
if
(
$return_id
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
,
[
"id"
=>
$return_id
]);
}
else
{
...
...
application/api_broker/service/PayLogOpenService.php
View file @
ac74fd7b
...
...
@@ -34,13 +34,14 @@ class PayLogOpenService
* @param $intro
* @param $house_address
* @param $open_img
* @param $order_id
* @return int
* @throws \think\Exception
*/
public
function
addApplyForOpen
(
$pay_log_id
,
$report_id
,
$bargain_id
,
$agent_id
,
$house_id
,
$intro
,
$house_address
,
$open_img
)
public
function
addApplyForOpen
(
$pay_log_id
,
$report_id
,
$bargain_id
,
$agent_id
,
$house_id
,
$intro
,
$house_address
,
$open_img
,
$order_id
)
{
$return_id
=
$this
->
payLogOpenModel
->
addPayLogOpen
(
$this
->
payLogOpenBin
(
$pay_log_id
,
$report_id
,
$bargain_id
,
$agent_id
,
$house_id
,
$intro
,
$house_address
)
$this
->
payLogOpenBin
(
$pay_log_id
,
$report_id
,
$bargain_id
,
$agent_id
,
$house_id
,
$intro
,
$house_address
,
$order_id
)
);
//save img
if
(
$return_id
>
0
)
{
...
...
@@ -129,13 +130,15 @@ class PayLogOpenService
* @param $house_id
* @param $intro
* @param $house_address
* @param $order_id
* @return array
*/
private
function
payLogOpenBin
(
$pay_log_id
,
$report_id
,
$bargain_id
,
$agent_id
,
$house_id
,
$intro
,
$house_address
)
private
function
payLogOpenBin
(
$pay_log_id
,
$report_id
,
$bargain_id
,
$agent_id
,
$house_id
,
$intro
,
$house_address
,
$order_id
)
{
$arr
=
[];
$arr
[
"pay_log_id"
]
=
$pay_log_id
;
$arr
[
"report_id"
]
=
$report_id
;
$arr
[
"order_id"
]
=
$order_id
;
$arr
[
"bargain_id"
]
=
$bargain_id
;
$arr
[
"agent_id"
]
=
$agent_id
;
$arr
[
"house_id"
]
=
$house_id
;
...
...
application/index/controller/PayLogOpen.php
View file @
ac74fd7b
...
...
@@ -169,7 +169,6 @@ class PayLogOpen extends Basic
$fields
=
'a.id,a.create_time,a.agent_id,a.pay_log_id,a.bargain_id,a.order_id,a.house_id,a.status,a.house_address,c.name'
;
$m_pay_log
=
new
OPayLogModel
();
$m_house
=
new
GHouses
();
$list
=
$this
->
m_pay_open
->
getListCheck
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields
,
$where
);
if
(
$this
->
params
[
'excel'
]
==
0
)
{
...
...
@@ -343,6 +342,7 @@ class PayLogOpen extends Basic
$service_
=
new
PayLogOpenService
();
$pay_log_id
=
$params
[
"pay_log_id"
];
$report_id
=
$params
[
"report_id"
];
$order_id
=
$params
[
"order_id"
];
$bargain_id
=
$params
[
"bargain_id"
];
$agent_id
=
$params
[
"agent_id"
];
$house_id
=
$params
[
"house_id"
];
...
...
@@ -355,7 +355,7 @@ class PayLogOpen extends Basic
}
$return_id
=
$service_
->
addApplyForOpen
(
$pay_log_id
,
$report_id
,
$bargain_id
,
$agent_id
,
$house_id
,
$intro
,
$house_address
,
$open_img
);
$house_address
,
$open_img
,
$order_id
);
if
(
$return_id
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
,
[
"id"
=>
$return_id
]);
}
else
{
...
...
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