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
6a35e779
Commit
6a35e779
authored
May 24, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字段修改
parent
0e1c0add
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Finance.php
application/index/controller/Finance.php
+8
-8
No files found.
application/index/controller/Finance.php
View file @
6a35e779
...
@@ -331,7 +331,7 @@ class Finance extends Basic
...
@@ -331,7 +331,7 @@ class Finance extends Basic
foreach
(
$list_data
as
$k
=>
$v
)
{
foreach
(
$list_data
as
$k
=>
$v
)
{
$excel_data
[
$k
][
'id'
]
=
$v
[
'id'
];
$excel_data
[
$k
][
'id'
]
=
$v
[
'id'
];
$excel_data
[
$k
][
'create_time'
]
=
$v
[
'create_time'
];
$excel_data
[
$k
][
'create_time'
]
=
$v
[
'create_time'
];
$excel_data
[
$k
][
'is_open'
]
=
$v
[
'is_open'
]
?
'是'
:
'否'
;
//
$excel_data[$k]['is_open'] = $v['is_open'] ? '是':'否';
$excel_data
[
$k
][
'internal_address'
]
=
$v
[
'internal_address'
];
$excel_data
[
$k
][
'internal_address'
]
=
$v
[
'internal_address'
];
$excel_data
[
$k
][
'house_number'
]
=
$v
[
'house_number'
];
$excel_data
[
$k
][
'house_number'
]
=
$v
[
'house_number'
];
$excel_data
[
$k
][
'price'
]
=
$v
[
'price'
];
$excel_data
[
$k
][
'price'
]
=
$v
[
'price'
];
...
@@ -343,7 +343,7 @@ class Finance extends Basic
...
@@ -343,7 +343,7 @@ class Finance extends Basic
$excel_data
[
$k
][
'subtract'
]
=
$v
[
'commission'
]
-
$excel_data
[
$k
][
'income_money'
];
$excel_data
[
$k
][
'subtract'
]
=
$v
[
'commission'
]
-
$excel_data
[
$k
][
'income_money'
];
}
}
$export
=
new
ExportExcelUntil
();
$export
=
new
ExportExcelUntil
();
$title
=
[
'ID'
,
'提交时间'
,
'
是否开业'
,
'
商铺地址'
,
'商铺号'
,
'成交价'
,
'提交人'
,
'成交类型'
,
'应收佣金(元)'
,
'已收佣金(元)'
,
'未收佣金(元)'
];
$title
=
[
'ID'
,
'提交时间'
,
'商铺地址'
,
'商铺号'
,
'成交价'
,
'提交人'
,
'成交类型'
,
'应收佣金(元)'
,
'已收佣金(元)'
,
'未收佣金(元)'
];
$export
->
exportTable
(
$excel_title
,
$excel_data
,
11
,
$excel_title
,
$title
);
$export
->
exportTable
(
$excel_title
,
$excel_data
,
11
,
$excel_title
,
$title
);
}
}
}
}
...
@@ -2922,19 +2922,19 @@ class Finance extends Basic
...
@@ -2922,19 +2922,19 @@ class Finance extends Basic
}
}
/*入账日期 end*/
/*入账日期 end*/
/*收款确认日期 start*/
/*收款确认日期 start*/
if
(
!
empty
(
$this
->
params
[
'open_
start_time
'
])
&&
empty
(
$this
->
params
[
'open_end_time'
]))
{
if
(
!
empty
(
$this
->
params
[
'open_
time_start
'
])
&&
empty
(
$this
->
params
[
'open_end_time'
]))
{
$where
[
'a.open_time'
]
=
[
'> time'
,
$this
->
params
[
'open_
start_time
'
]
.
' 00:00:00'
];
$where
[
'a.open_time'
]
=
[
'> time'
,
$this
->
params
[
'open_
time_start
'
]
.
' 00:00:00'
];
$is_show
=
1
;
$is_show
=
1
;
}
}
if
(
!
empty
(
$this
->
params
[
'open_
end_time'
])
&&
empty
(
$this
->
params
[
'open_start_time
'
]))
{
if
(
!
empty
(
$this
->
params
[
'open_
time_end'
])
&&
empty
(
$this
->
params
[
'open_time_start
'
]))
{
$where
[
'a.open_time'
]
=
[
'< time'
,
$this
->
params
[
'open_
end_time
'
]
.
' 23:59:59'
];
$where
[
'a.open_time'
]
=
[
'< time'
,
$this
->
params
[
'open_
time_end
'
]
.
' 23:59:59'
];
$is_show
=
1
;
$is_show
=
1
;
}
}
if
(
!
empty
(
$this
->
params
[
'open_
end_time'
])
&&
!
empty
(
$this
->
params
[
'open_start_time
'
]))
{
if
(
!
empty
(
$this
->
params
[
'open_
time_end'
])
&&
!
empty
(
$this
->
params
[
'open_time_start
'
]))
{
$where
[
'a.open_time'
]
=
[
'between time'
,
[
$where
[
'a.open_time'
]
=
[
'between time'
,
[
$this
->
params
[
'open_
start_time'
]
.
' 00:00:00'
,
$this
->
params
[
'open_end_time
'
]
.
' 23:59:59'
$this
->
params
[
'open_
time_start'
]
.
' 00:00:00'
,
$this
->
params
[
'open_time_end
'
]
.
' 23:59:59'
]];
]];
$is_show
=
1
;
$is_show
=
1
;
}
}
...
...
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