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
302d549c
Commit
302d549c
authored
Oct 17, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码调整
parent
3733c1bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
agent.html
application/index/view/broker/agent.html
+0
-0
save_agent.html
application/index/view/broker/save_agent.html
+0
-0
GHousesToAgents.php
application/model/GHousesToAgents.php
+2
-10
No files found.
application/index/view/
agent
/agent.html
→
application/index/view/
broker
/agent.html
View file @
302d549c
File moved
application/index/view/
agent
/save_agent.html
→
application/index/view/
broker
/save_agent.html
View file @
302d549c
File moved
application/model/GHousesToAgents.php
View file @
302d549c
...
...
@@ -23,7 +23,6 @@ class GHousesToAgents extends BaseModel
*/
public
function
addAgents
(
$agents_id
,
$houses_id
,
$type
,
$operation_id
)
{
$agent_push_str
=
''
;
$agent_arr
=
[];
$agents_id
=
array_unique
(
explode
(
','
,
$agents_id
));
$record_agents_id
=
[];
...
...
@@ -43,7 +42,6 @@ class GHousesToAgents extends BaseModel
$agent_id_old
[]
=
$v2
;
$agent_push
[]
=
$name
;
$agent_push_str
=
'删除盘方:'
;
}
$records
->
record
(
''
,
2
,
'删除盘方'
.
implode
(
','
,
$name
),
$houses_id
);
}
...
...
@@ -52,14 +50,12 @@ class GHousesToAgents extends BaseModel
$houses_data
=
$this
->
where
(
$where
)
->
select
();
$key
=
0
;
foreach
(
$houses_data
as
$k
=>
$v
)
{
if
(
!
in_array
(
$v
[
'agents_id'
],
$agents_id
)
&&
(
$type
==
$v
[
'type'
])
&&
(
$v
[
'agents_id'
]
!=
NULL
))
{
//伪删除
$agent_arr
[
$key
][
'id'
]
=
$v
[
'id'
];
$agent_arr
[
$key
][
'is_del'
]
=
1
;
$key
++
;
}
}
foreach
(
$agents_id
as
$k
=>
$v
)
{
...
...
@@ -75,7 +71,7 @@ class GHousesToAgents extends BaseModel
$record_agents_id
[]
=
$v
;
}
if
(
$check
||
$v
==
0
)
{
if
(
$check
||
empty
(
$v
)
)
{
continue
;
}
...
...
@@ -112,8 +108,6 @@ class GHousesToAgents extends BaseModel
$str
=
'新增为:'
;
$records
->
record
(
''
,
2
,
$str
.
implode
(
','
,
$name
),
$houses_id
);
}
}
$res
=
$this
->
saveAll
(
$agent_arr
);
...
...
@@ -128,16 +122,14 @@ class GHousesToAgents extends BaseModel
//更新业绩统计
$sum
=
new
ResultsSummaryNewTask
();
$sum
->
updateTotalByAgentId
(
$agent_data
[
'id'
],
$agent_data
[
'store_id'
],
$agent_data
[
'district_id'
],
$date
);
//被修改的人
$agent_push
[]
=
$agent_data
[
'name'
];
$agent_push_str
=
'编辑:'
;
}
}
}
if
(
!
empty
(
$agent_id_old
)
&&
!
empty
(
$agent_push
))
{
$push
=
new
PushMessageService
();
$
this
->
push
->
record
(
1
,
[
0
=>
$houses_id
],
0
,
$operation_id
);
//记录推送信息
$push
->
record
(
1
,
[
0
=>
$houses_id
],
0
,
$operation_id
);
//记录推送信息
}
return
$res
;
...
...
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