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
66297e02
Commit
66297e02
authored
Jul 09, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
count
parent
48e40c09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
PayLogOpen.php
application/index/controller/PayLogOpen.php
+6
-3
No files found.
application/index/controller/PayLogOpen.php
View file @
66297e02
...
@@ -14,6 +14,7 @@ use app\api_broker\service\RedisCacheService;
...
@@ -14,6 +14,7 @@ use app\api_broker\service\RedisCacheService;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\index\untils\ExportExcelUntil
;
use
app\index\untils\ExportExcelUntil
;
use
app\model\GHouses
;
use
app\model\GHouses
;
use
app\model\ODaily
;
use
app\model\OImg
;
use
app\model\OImg
;
use
app\model\OPayLogModel
;
use
app\model\OPayLogModel
;
use
app\model\OPayLogOpen
;
use
app\model\OPayLogOpen
;
...
@@ -174,6 +175,7 @@ class PayLogOpen extends Basic
...
@@ -174,6 +175,7 @@ class PayLogOpen extends Basic
if
(
$this
->
params
[
'excel'
]
==
0
)
{
if
(
$this
->
params
[
'excel'
]
==
0
)
{
$m_pay
=
new
OPayLogModel
();
$m_pay
=
new
OPayLogModel
();
$m_store
=
new
AStore
();
$m_store
=
new
AStore
();
$m_daily
=
new
ODaily
();
foreach
(
$list
as
$k
=>
$v
)
{
foreach
(
$list
as
$k
=>
$v
)
{
$log_where
[
'open_id'
]
=
$v
[
'id'
];
$log_where
[
'open_id'
]
=
$v
[
'id'
];
$log_where
[
'is_del'
]
=
0
;
$log_where
[
'is_del'
]
=
0
;
...
@@ -188,14 +190,15 @@ class PayLogOpen extends Basic
...
@@ -188,14 +190,15 @@ class PayLogOpen extends Basic
$list
[
$k
][
'check_time'
]
=
''
;
$list
[
$k
][
'check_time'
]
=
''
;
}
}
$list
[
$k
][
'agent_name'
]
=
$v
[
'name'
];
$list
[
$k
][
'agent_name'
]
=
$v
[
'name'
];
//跳转财务日报页面数据
//跳转财务日报页面数据
$pay_data
=
$m_pay
->
getPayLogByUserId
(
'b.report_store_id,a.create_time'
,
[
'id'
=>
$v
[
'pay_log_id'
]]);
$pay_data
=
$m_pay
->
getPayLogByUserId
(
'b.report_store_id,a.create_time'
,
[
'id'
=>
$v
[
'pay_log_id'
]]);
if
(
$pay_data
)
{
$daily_where
[
'store_id'
]
=
$pay_data
[
'report_store_id'
];
$daily_where
[
'daily_date'
]
=
date
(
'Y-m-d'
,
strtotime
(
$pay_data
[
'create_time'
]));
$num
=
$m_daily
->
getTotal
(
$daily_where
);
//是否提交财务日报
if
(
$num
)
{
$list
[
$k
][
'daily_date'
]
=
date
(
'Y-m-d'
,
strtotime
(
$pay_data
[
'create_time'
]));
$list
[
$k
][
'daily_date'
]
=
date
(
'Y-m-d'
,
strtotime
(
$pay_data
[
'create_time'
]));
$list
[
$k
][
'store_id'
]
=
$pay_data
[
'report_store_id'
];
$list
[
$k
][
'store_id'
]
=
$pay_data
[
'report_store_id'
];
$list
[
$k
][
'store_name'
]
=
$m_store
->
getStoreKeyById
(
'store_name'
,
[
'id'
=>
$pay_data
[
'report_store_id'
]]);
$list
[
$k
][
'store_name'
]
=
$m_store
->
getStoreKeyById
(
'store_name'
,
[
'id'
=>
$pay_data
[
'report_store_id'
]]);
}
else
{
}
else
{
$list
[
$k
][
'daily_date'
]
=
''
;
$list
[
$k
][
'daily_date'
]
=
''
;
$list
[
$k
][
'store_id'
]
=
''
;
$list
[
$k
][
'store_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