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
362b06ef
Commit
362b06ef
authored
Apr 16, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新成交报告开业
parent
9804a896
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
OrderLogService.php
application/api_broker/service/OrderLogService.php
+25
-0
No files found.
application/api_broker/service/OrderLogService.php
View file @
362b06ef
...
...
@@ -80,6 +80,8 @@ class OrderLogService
array_push
(
$bill_arr
,
$this
->
collectingBillBin
(
$father_id
,
$collecting
,
$agent_id
,
$agent_name
,
$report_id
,
$order_id
,
$order_no
,
$house_number
,
$industry_type
,
$remark
,
$transfer_img
,
$source
,
$income_time
,
0
,
0
,
$received_money
,
$type_ext
,
$bargain_id
));
}
$this
->
updateBargainIsOpen
(
$bargain_id
,
$collecting
[
'type'
]);
}
}
if
(
$father_id
>
0
)
{
...
...
@@ -156,6 +158,7 @@ class OrderLogService
$report_id
,
$order_id
,
$order_no
,
$house_number
,
$industry_type
,
$remark
,
$transfer_img
,
$source
,
$income_time
,
$is_dividend
,
$last_transfer_time
,
$receipt_number
,
$transfer_name
,
$received_money
,
$type_ext
,
$bargain_id
));
}
$this
->
updateBargainIsOpen
(
$bargain_id
,
$collecting
[
'type'
]);
}
}
if
(
$father_id
>
0
)
{
...
...
@@ -1789,4 +1792,25 @@ class OrderLogService
return
$this
->
bargainModel
->
agentBargainAll
(
$filed
,
$params
);
}
/**
* 更新成交报告开业
*
* @param $bargain_id
* @param $type
* @return bool|int
*/
public
function
updateBargainIsOpen
(
$bargain_id
,
$type
)
{
if
(
empty
(
$bargain_id
)
&&
!
in_array
(
$type
,
[
91
,
92
]))
{
return
false
;
}
$num
=
$this
->
bargainModel
->
updateBargainById
(
$bargain_id
,
[
'is_open'
=>
1
]);
if
(
$num
)
{
$result
=
1
;
}
else
{
$result
=
0
;
}
return
$result
;
}
}
\ 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