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
99ddc6cb
Commit
99ddc6cb
authored
May 23, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
月实收
parent
13482bae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
ConvertCouponService.php
application/api/service/ConvertCouponService.php
+1
-0
StatementService.php
application/api_broker/service/StatementService.php
+3
-1
No files found.
application/api/service/ConvertCouponService.php
View file @
99ddc6cb
...
@@ -57,6 +57,7 @@ class ConvertCouponService
...
@@ -57,6 +57,7 @@ class ConvertCouponService
*/
*/
public
function
convertCoupon
(
$user_id
,
$report_id
,
$bargain_id
,
$order_id
){
public
function
convertCoupon
(
$user_id
,
$report_id
,
$bargain_id
,
$order_id
){
if
(
!
$user_id
or
!
$report_id
or
!
$bargain_id
or
!
$order_id
){
if
(
!
$user_id
or
!
$report_id
or
!
$bargain_id
or
!
$order_id
){
big_log
(
'=============false客户DI:'
.
$user_id
.
' START================='
);
return
false
;
return
false
;
}
}
big_log
(
'=============客户DI:'
.
$user_id
.
' START================='
);
big_log
(
'=============客户DI:'
.
$user_id
.
' START================='
);
...
...
application/api_broker/service/StatementService.php
View file @
99ddc6cb
...
@@ -176,9 +176,11 @@ class StatementService
...
@@ -176,9 +176,11 @@ class StatementService
$where_
[
'status'
]
=
array
(
"in"
,
'10, 11, 13'
);
$where_
[
'status'
]
=
array
(
"in"
,
'10, 11, 13'
);
$performanceSum
=
$this
->
bargainModel
->
getAddBargainNum
(
$where_
,
1
);
//1表示业绩 2表示实收
$performanceSum
=
$this
->
bargainModel
->
getAddBargainNum
(
$where_
,
1
);
//1表示业绩 2表示实收
$result
[
"performance_month"
]
=
isset
(
$performanceSum
[
0
][
"num"
])
?
$performanceSum
[
0
][
"num"
]
:
0
;
$result
[
"performance_month"
]
=
isset
(
$performanceSum
[
0
][
"num"
])
?
$performanceSum
[
0
][
"num"
]
:
0
;
$real_performanceSum
=
$this
->
bargainModel
->
getAddBargainNum
(
$where_
,
2
);
//1表示业绩 2表示实收
$result
[
"real_performance_month"
]
=
isset
(
$real_performanceSum
[
0
][
"num"
])
?
$real_performanceSum
[
0
][
"num"
]
:
0
;
//本周业绩
//本周业绩
$start_time
=
date
(
"Y-m-d"
,
strtotime
(
"-7 day"
));
$start_time
=
date
(
"Y-m-d"
,
strtotime
(
"-7 day"
));
$where_
[
'create_time'
]
=
$conditions
[
'create_time'
];
$where_
[
'create_time'
]
=
$conditions
[
'create_time'
];
...
...
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