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
d71c75e7
Commit
d71c75e7
authored
Mar 27, 2019
by
hujun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
ad29cf88
8624997f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
Finance.php
application/index/controller/Finance.php
+7
-9
No files found.
application/index/controller/Finance.php
View file @
d71c75e7
...
@@ -3660,7 +3660,7 @@ class Finance extends Basic
...
@@ -3660,7 +3660,7 @@ class Finance extends Basic
$pay_data
=
[];
$pay_data
=
[];
try
{
try
{
$m_pay
=
new
OPayLogModel
();
$m_pay
=
new
OPayLogModel
();
$pay_fields
=
'id,order_id,agent_name,create_time,income_time,house_number,type,real_money,income_time,transfer_name,'
;
$pay_fields
=
'id,order_id,agent_name,create_time,income_time,house_number,type,real_money,income_time,transfer_name,
bargain_id,
'
;
$pay_fields
.=
'transaction_fee,is_dividend,receipt_number,source,pay_type,last_transfer_time,money,industry_type,received_money,type_ext'
;
$pay_fields
.=
'transaction_fee,is_dividend,receipt_number,source,pay_type,last_transfer_time,money,industry_type,received_money,type_ext'
;
$pay_data
=
$m_pay
->
selectReceiptImgList
(
$pay_fields
,
[
'id'
=>
$this
->
params
[
'pay_id'
]]);
$pay_data
=
$m_pay
->
selectReceiptImgList
(
$pay_fields
,
[
'id'
=>
$this
->
params
[
'pay_id'
]]);
$pay_data
=
$pay_data
[
0
];
$pay_data
=
$pay_data
[
0
];
...
@@ -3671,12 +3671,10 @@ class Finance extends Basic
...
@@ -3671,12 +3671,10 @@ class Finance extends Basic
$pay_data
[
'is_open'
]
=
0
;
$pay_data
[
'is_open'
]
=
0
;
$pay_data
[
'price'
]
=
0
;
$pay_data
[
'price'
]
=
0
;
}
else
{
}
else
{
$bargain_data
=
$this
->
m_bargain
->
getDetail
(
'id,father_id,price,is_open'
,
[
'order_id'
=>
$pay_data
[
'order_id'
],
'father_id'
=>
0
]);
$bargain_where
[]
=
[
'EXP'
,
'id='
.
$pay_data
[
'bargain_id'
]
.
' or father_id='
.
$pay_data
[
'bargain_id'
]];
$bargain_id
=
$bargain_data
[
'id'
];
$bargain_where
[
'father_id'
]
=
0
;
if
(
$bargain_data
[
'father_id'
]
!=
0
)
{
$bargain_data
=
$this
->
m_bargain
->
getDetail
(
'id,father_id,price,is_open'
,
$bargain_where
);
$bargain_id
=
$bargain_data
[
'father_id'
];
$pay_data
[
'bargain_id'
]
=
empty
(
$bargain_data
[
'id'
])
?
''
:
$bargain_data
[
'id'
];
}
$pay_data
[
'bargain_id'
]
=
empty
(
$bargain_id
)
?
''
:
$bargain_id
;
$pay_data
[
'is_open'
]
=
empty
(
$bargain_data
[
'is_open'
])
?
0
:
$bargain_data
[
'is_open'
];
$pay_data
[
'is_open'
]
=
empty
(
$bargain_data
[
'is_open'
])
?
0
:
$bargain_data
[
'is_open'
];
$pay_data
[
'price'
]
=
empty
(
$bargain_data
[
'price'
])
?
0
:
$bargain_data
[
'price'
];
$pay_data
[
'price'
]
=
empty
(
$bargain_data
[
'price'
])
?
0
:
$bargain_data
[
'price'
];
...
@@ -3702,8 +3700,8 @@ class Finance extends Basic
...
@@ -3702,8 +3700,8 @@ class Finance extends Basic
$m_report
=
new
OReportModel
();
$m_report
=
new
OReportModel
();
$pay_data
[
'current_agent_name'
]
=
''
;
$pay_data
[
'current_agent_name'
]
=
''
;
$pay_data
[
'current_agent_name'
]
=
$pay_data
[
'store_name'
]
=
""
;
$pay_data
[
'current_agent_name'
]
=
$pay_data
[
'store_name'
]
=
""
;
if
(
$pay_data
[
'type'
]
==
92
||
$pay_data
[
'type'
]
==
91
)
{
if
(
(
$pay_data
[
'type'
]
==
92
||
$pay_data
[
'type'
]
==
91
)
&&
$pay_data
[
'bargain_id'
]
>
0
)
{
$where
[
'a.order_id'
]
=
$pay_data
[
'order_id'
];
$where
[
]
=
[
'EXP'
,
'a.id ='
.
$pay_data
[
'bargain_id'
]
.
' or father_id='
.
$pay_data
[
'bargain_id'
]
];
$where
[
'a.status'
]
=
[
'in'
,
'10,11,13'
];
$where
[
'a.status'
]
=
[
'in'
,
'10,11,13'
];
$where
[
'a.role'
]
=
[
'in'
,
'3,4,5'
];
$where
[
'a.role'
]
=
[
'in'
,
'3,4,5'
];
$bargain_data
=
$this
->
m_bargain
->
agentBargainAll
(
'a.role,a.scale,b.name'
,
$where
);
$bargain_data
=
$this
->
m_bargain
->
agentBargainAll
(
'a.role,a.scale,b.name'
,
$where
);
...
...
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