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
ed144a18
Commit
ed144a18
authored
Apr 19, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
94d60b51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
ConvertOrder.php
application/api/controller/ConvertOrder.php
+8
-3
No files found.
application/api/controller/ConvertOrder.php
View file @
ed144a18
...
...
@@ -34,6 +34,7 @@ class ConvertOrder extends Basic
private
$marchInModel
;
private
$refundModel
;
private
$journalaccountsModel
;
private
$houseModel
;
public
function
__construct
(
$request
=
null
)
{
...
...
@@ -45,6 +46,7 @@ class ConvertOrder extends Basic
$this
->
marchInModel
=
new
OMarchInModel
();
$this
->
refundModel
=
new
RefundTables
();
$this
->
journalaccountsModel
=
new
JournalAccounts
();
$this
->
houseModel
=
new
GHouses
();
parent
::
__construct
(
$request
);
}
...
...
@@ -116,10 +118,13 @@ class ConvertOrder extends Basic
ob_flush
();
}
/**
* 下定
*/
public
function
convertCollectingBill
()
{
set_time_limit
(
0
);
$time_
=
array
(
'between'
,
array
(
"2016-04-18 23:59:59"
,
"2018-0
1-18
23:59:59"
)
);
$time_
=
array
(
'between'
,
array
(
"2016-04-18 23:59:59"
,
"2018-0
4-17
23:59:59"
)
);
$field
=
"a.type,a.moneytype,a.money,a.trademark,a.remarks,a.created,a.modified,d.id as agent_id,b.id as report_id,c.id as order_id,c.order_no"
;
$collectingBillList
=
$this
->
journalaccountsModel
->
getJournalAccountsListByStatus
(
1
,
2000
,
$field
,
[
"a.created"
=>
$time_
]);
$collectingBillArr
=
[];
...
...
@@ -283,8 +288,8 @@ class ConvertOrder extends Basic
*/
private
function
orderBin
(
$order_no
,
$f_id
,
$house_id
,
$create_time
,
$update_time
)
{
$houseModel
=
new
GHouses
();
$houseResult
=
$houseModel
->
getHouseDetail
(
"id,internal_title"
,
[
"id"
=>
$house_id
]);
$houseResult
=
$
this
->
houseModel
->
getHouseDetail
(
"id,internal_title"
,
[
"id"
=>
$house_id
]);
$house_title
=
count
(
$houseResult
)
>
0
&&
isset
(
$houseResult
[
"internal_title"
])
?
$houseResult
[
"internal_title"
]
:
null
;
$param
[
"order_no"
]
=
$order_no
;
$param
[
"f_id"
]
=
$f_id
;
...
...
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