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
76c7b635
Commit
76c7b635
authored
May 23, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
确认分佣时间
parent
360eeb21
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
Finance.php
application/index/controller/Finance.php
+6
-5
OPartialCommission.php
application/model/OPartialCommission.php
+1
-1
commission_template_tpl.html
public/resource/template/commission_template_tpl.html
+1
-1
No files found.
application/index/controller/Finance.php
View file @
76c7b635
...
@@ -490,17 +490,19 @@ class Finance extends Basic
...
@@ -490,17 +490,19 @@ class Finance extends Basic
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$where
=
[];
$where
[
'a.confirm_status'
]
=
1
;
if
(
!
empty
(
$this
->
params
[
'create_time'
])
&&
empty
(
$this
->
params
[
'end_time'
]))
{
if
(
!
empty
(
$this
->
params
[
'create_time'
])
&&
empty
(
$this
->
params
[
'end_time'
]))
{
$where
[
'a.c
reate_time'
]
=
[
'> time'
,
$this
->
params
[
'create_time'
]
.
' 00:00:00'
];
$where
[
'a.c
onfirm_date'
]
=
[
'> time'
,
$this
->
params
[
'create_time'
]
];
}
}
if
(
!
empty
(
$this
->
params
[
'end_time'
])
&&
empty
(
$this
->
params
[
'create_time'
]))
{
if
(
!
empty
(
$this
->
params
[
'end_time'
])
&&
empty
(
$this
->
params
[
'create_time'
]))
{
$where
[
'a.c
reate_time'
]
=
[
'< time'
,
$this
->
params
[
'create_time'
]
.
' 23:59:59'
];
$where
[
'a.c
onfirm_date'
]
=
[
'< time'
,
$this
->
params
[
'create_time'
]
];
}
}
if
(
!
empty
(
$this
->
params
[
'end_time'
])
&&
!
empty
(
$this
->
params
[
'create_time'
]))
{
if
(
!
empty
(
$this
->
params
[
'end_time'
])
&&
!
empty
(
$this
->
params
[
'create_time'
]))
{
$where
[
'a.c
reate_time'
]
=
[
'between time'
,
[
$this
->
params
[
'create_time'
]
.
' 00:00:00'
,
$this
->
params
[
'create_time'
]
.
' 23:59:59'
]];
$where
[
'a.c
onfirm_date'
]
=
[
'between time'
,
[
$this
->
params
[
'create_time'
]
.
' 00:00:00'
,
$this
->
params
[
'create_time'
]
]];
}
}
if
(
!
empty
(
$this
->
params
[
'internal_address'
]))
{
if
(
!
empty
(
$this
->
params
[
'internal_address'
]))
{
...
@@ -519,8 +521,7 @@ class Finance extends Basic
...
@@ -519,8 +521,7 @@ class Finance extends Basic
$where
[
'b.house_number'
]
=
[
'like'
,
'%'
.
$this
->
params
[
'house_number'
]
.
'%'
];
$where
[
'b.house_number'
]
=
[
'like'
,
'%'
.
$this
->
params
[
'house_number'
]
.
'%'
];
}
}
$where
=
[];
$field
=
'a.id,a.confirm_date,a.practical_fee,b.scale_fee,d.internal_address,b.agent_id,b.house_number'
;
$field
=
'a.id,a.create_time,a.practical_fee,b.scale_fee,d.internal_address,b.agent_id,b.house_number'
;
$m_commission
=
new
OPartialCommission
();
$m_commission
=
new
OPartialCommission
();
$data
[
'data'
][
'list'
]
=
$m_commission
->
getCommissionBargainList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$field
,
$where
);
$data
[
'data'
][
'list'
]
=
$m_commission
->
getCommissionBargainList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$field
,
$where
);
...
...
application/model/OPartialCommission.php
View file @
76c7b635
...
@@ -151,7 +151,7 @@ class OPartialCommission extends BaseModel
...
@@ -151,7 +151,7 @@ class OPartialCommission extends BaseModel
//确认分佣加时间 否则 只是保存分佣数据
//确认分佣加时间 否则 只是保存分佣数据
if
(
$data
[
'confirm_date'
])
{
if
(
$data
[
'confirm_date'
])
{
$insert_data
[
'confirm_date'
]
=
$data
[
'confirm_date'
];
$insert_data
[
'confirm_date'
]
=
$data
[
'confirm_date'
];
$insert_data
[
'confirm_st
uta
s'
]
=
1
;
$insert_data
[
'confirm_st
atu
s'
]
=
1
;
}
}
if
(
empty
(
$insert_data
[
'id'
]))
{
if
(
empty
(
$insert_data
[
'id'
]))
{
...
...
public/resource/template/commission_template_tpl.html
View file @
76c7b635
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
[
%
if
(
it
)
{
%
]
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'c
reate_tim
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'c
onfirm_dat
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'district_store'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'district_store'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agent'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agent'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
...
...
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