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
cdd39cb7
Commit
cdd39cb7
authored
May 30, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b6913b64
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
OfficeOrderLog.php
application/api_broker/controller/OfficeOrderLog.php
+7
-4
OfficeOrderLogService.php
application/api_broker/service/OfficeOrderLogService.php
+0
-0
No files found.
application/api_broker/controller/OfficeOrderLog.php
View file @
cdd39cb7
...
@@ -5,11 +5,14 @@ use app\api_broker\service\OfficeOrderLogService;
...
@@ -5,11 +5,14 @@ use app\api_broker\service\OfficeOrderLogService;
use
app\api_broker\service\OrderLogService
;
use
app\api_broker\service\OrderLogService
;
use
app\api_broker\service\VerifyRepetitionService
;
use
app\api_broker\service\VerifyRepetitionService
;
use
app\api_broker\service\VipService
;
use
app\api_broker\service\VipService
;
use
app\model\AAgents
;
use
app\model\OfficeGRoom
;
use
app\model\OfficeGRoom
;
use
app\model\OfficeOBargainModel
;
use
app\model\OfficeOBargainModel
;
use
app\model\OfficeOImg
;
use
app\model\OfficeOImg
;
use
app\model\OfficeOMarchInModel
;
use
app\model\OfficeOMarchInModel
;
use
app\model\OfficeOrderModel
;
use
app\model\OMarchInModel
;
use
app\model\OMarchInModel
;
use
think\Exception
;
/**
/**
* Created by PhpStorm.
* Created by PhpStorm.
...
@@ -670,7 +673,7 @@ class OfficeOrderLog extends Basic{
...
@@ -670,7 +673,7 @@ class OfficeOrderLog extends Basic{
return
$this
->
response
(
101
,
'Id or agent_id or source is null.'
);
return
$this
->
response
(
101
,
'Id or agent_id or source is null.'
);
}
}
$source
=
empty
(
$this
->
params
[
'source'
])
?
0
:
$this
->
params
[
'source'
];
$source
=
empty
(
$this
->
params
[
'source'
])
?
0
:
$this
->
params
[
'source'
];
$bargain
=
new
OBargainModel
();
$bargain
=
new
O
fficeO
BargainModel
();
$data
[
'data'
]
=
$bargain
->
addBargainCommission
(
$this
->
params
[
'id'
],
$this
->
agentId
,
$this
->
params
[
'agent_id'
],
$data
[
'data'
]
=
$bargain
->
addBargainCommission
(
$this
->
params
[
'id'
],
$this
->
agentId
,
$this
->
params
[
'agent_id'
],
$this
->
params
[
'role'
],
$this
->
params
[
'scale_fee'
],
$this
->
params
[
'scale'
],
$source
);
$this
->
params
[
'role'
],
$this
->
params
[
'scale_fee'
],
$this
->
params
[
'scale'
],
$source
);
...
@@ -701,7 +704,7 @@ class OfficeOrderLog extends Basic{
...
@@ -701,7 +704,7 @@ class OfficeOrderLog extends Basic{
if
(
!
isset
(
$params
[
"order_id"
])
||
!
isset
(
$params
[
"submit_agent_id"
]))
{
if
(
!
isset
(
$params
[
"order_id"
])
||
!
isset
(
$params
[
"submit_agent_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
$bargainModel
=
new
OBargainModel
();
$bargainModel
=
new
O
fficeO
BargainModel
();
$where_
[
"father_id"
]
=
0
;
$where_
[
"father_id"
]
=
0
;
$where_
[
"order_id"
]
=
$params
[
"order_id"
];
$where_
[
"order_id"
]
=
$params
[
"order_id"
];
$where_
[
"submit_agent_id"
]
=
$params
[
"submit_agent_id"
];
$where_
[
"submit_agent_id"
]
=
$params
[
"submit_agent_id"
];
...
@@ -763,7 +766,7 @@ class OfficeOrderLog extends Basic{
...
@@ -763,7 +766,7 @@ class OfficeOrderLog extends Basic{
$where_
[
"order_id"
]
=
$params
[
"order_id"
];
$where_
[
"order_id"
]
=
$params
[
"order_id"
];
$where_
[
"father_id"
]
=
0
;
$where_
[
"father_id"
]
=
0
;
$where_
[
"account_statement"
]
=
0
;
$where_
[
"account_statement"
]
=
0
;
$oBargainModel
=
new
OBargainModel
();
$oBargainModel
=
new
O
fficeO
BargainModel
();
$data
=
$oBargainModel
->
selectBargainByOrderNo
(
$field
,
$where_
,
"id desc"
);
$data
=
$oBargainModel
->
selectBargainByOrderNo
(
$field
,
$where_
,
"id desc"
);
if
(
count
(
$data
)
>
0
)
{
if
(
count
(
$data
)
>
0
)
{
$list
[
"bargain_id"
]
=
$data
[
0
][
"id"
];
$list
[
"bargain_id"
]
=
$data
[
0
][
"id"
];
...
@@ -798,7 +801,7 @@ class OfficeOrderLog extends Basic{
...
@@ -798,7 +801,7 @@ class OfficeOrderLog extends Basic{
//todo 该商铺7日带看次数
//todo 该商铺7日带看次数
$model
=
new
OrderModel
();
$model
=
new
O
fficeO
rderModel
();
$params
[
"house_id"
]
=
$params
[
'house_id'
];
$params
[
"house_id"
]
=
$params
[
'house_id'
];
$start_time
=
date
(
"Y-m-d"
,
strtotime
(
"-7 day"
));
$start_time
=
date
(
"Y-m-d"
,
strtotime
(
"-7 day"
));
$end_time
=
date
(
"Y-m-d"
,
time
());
$end_time
=
date
(
"Y-m-d"
,
time
());
...
...
application/api_broker/service/OfficeOrderLogService.php
View file @
cdd39cb7
This diff is collapsed.
Click to expand it.
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