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
878fafda
Commit
878fafda
authored
Jun 26, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
address
parent
928f72ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
OfficeBargain.php
application/index/controller/OfficeBargain.php
+5
-4
OfficeOBargainModel.php
application/model/OfficeOBargainModel.php
+2
-1
No files found.
application/index/controller/OfficeBargain.php
View file @
878fafda
...
...
@@ -24,6 +24,7 @@ use app\model\OfficeTAgentTotalModel;
use
app\model\TAgentTotalModel
;
use
app\model\Users
;
use
app\task\controller\ResultsSummaryNewTask
;
use
app\task\controller\ResultsSummaryOfficeTask
;
use
think\Request
;
class
OfficeBargain
extends
Basic
...
...
@@ -483,10 +484,10 @@ class OfficeBargain extends Basic
*/
public
function
editRecordLog
(
int
$bargain_id
,
string
$step_content
=
''
,
int
$type
=
1
,
string
$house_number
=
''
,
$is_open
=
0
)
{
$house_number_table
=
$this
->
m_bargain
->
getCheckBargain
(
'a.house_number,
c.internal_
address'
,
(
int
)
$bargain_id
,
'10,11,12,13,20,21,30'
);
$house_number_table
=
$this
->
m_bargain
->
getCheckBargain
(
'a.house_number,
e.
address'
,
(
int
)
$bargain_id
,
'10,11,12,13,20,21,30'
);
if
(
!
empty
(
$house_number_table
[
'
internal_
address'
]))
{
$step_content
.=
"[
{
$house_number_table
[
'
internal_
address'
]
}
]"
;
if
(
!
empty
(
$house_number_table
[
'address'
]))
{
$step_content
.=
"[
{
$house_number_table
[
'address'
]
}
]"
;
}
if
(
empty
(
$house_number
))
{
...
...
@@ -646,7 +647,7 @@ class OfficeBargain extends Basic
*/
private
function
updatePerformanceData
(
$id
,
$create_time
,
$store_id
,
$district_id
)
{
//更新业绩统计
$sum
=
new
ResultsSummary
New
Task
();
$sum
=
new
ResultsSummary
Office
Task
();
$date
=
date
(
'Y-m-d'
,
strtotime
(
$create_time
));
$sum
->
updateTotalByAgentId
(
$id
,
$store_id
,
$district_id
,
$date
,
$this
->
siteId
);
//被修改的人
}
...
...
application/model/OfficeOBargainModel.php
View file @
878fafda
...
...
@@ -1295,7 +1295,8 @@ class OfficeOBargainModel extends Model
{
return
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'office_o_order b'
,
'a.order_id=b.id'
,
'left'
)
->
join
(
'g_houses c'
,
'b.house_id=c.id'
,
'left'
)
->
join
(
'office_g_room c'
,
'b.house_id=c.id'
,
'left'
)
->
join
(
'office_g_building e'
,
'c.building_id=e.id'
,
'left'
)
->
join
(
'a_agents d'
,
'a.agent_id=d.id'
,
'left'
)
->
where
(
'a.status'
,
'in'
,
$status
)
->
where
(
'a.id'
,
$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