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
ca87574a
Commit
ca87574a
authored
Sep 06, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
记录日志
parent
69060192
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
HouseService.php
application/index/service/HouseService.php
+10
-2
No files found.
application/index/service/HouseService.php
View file @
ca87574a
...
@@ -218,13 +218,18 @@ class HouseService
...
@@ -218,13 +218,18 @@ class HouseService
//处理盘方
//处理盘方
if
(
$type
==
2
)
{
if
(
$type
==
2
)
{
$records
=
new
GOperatingRecords
();
if
(
!
empty
(
$del_agent_id
))
{
if
(
!
empty
(
$del_agent_id
))
{
$del_agent_name
=
$this
->
agent
->
getAgentById
(
'name'
,
[
'in_id'
=>
implode
(
','
,
$del_agent_id
)
]);
$del_agent_name
=
$this
->
agent
->
getAgentById
(
'name'
,
[
'in_id'
=>
implode
(
','
,
$del_agent_id
)
]);
if
(
!
empty
(
$del_agent_name
))
{
if
(
!
empty
(
$del_agent_name
))
{
//记录删除盘方
//记录删除盘方
$records
=
new
GOperatingRecords
();
$remark
=
'删除盘方:'
.
implode
(
','
,
$del_agent_name
);
foreach
(
$del_agent_name
as
$k
=>
$v
)
{
$agent_name
[]
=
$v
[
'name'
];
}
$remark
=
'删除盘方:'
.
implode
(
','
,
$agent_name
);
$records
->
record
(
''
,
2
,
$remark
,
$house_id
);
$records
->
record
(
''
,
2
,
$remark
,
$house_id
);
}
}
}
}
...
@@ -239,6 +244,9 @@ class HouseService
...
@@ -239,6 +244,9 @@ class HouseService
$sum
->
updateTotalByAgentId
(
$agent_data
[
'id'
],
$agent_data
[
'store_id'
],
$agent_data
[
'district_id'
],
$date
);
//被修改的人
$sum
->
updateTotalByAgentId
(
$agent_data
[
'id'
],
$agent_data
[
'store_id'
],
$agent_data
[
'district_id'
],
$date
);
//被修改的人
$agent_name
[]
=
$agent_data
[
'name'
];
$agent_name
[]
=
$agent_data
[
'name'
];
}
}
$remark
=
'新增盘方:'
.
implode
(
','
,
$agent_name
);
$records
->
record
(
''
,
2
,
$remark
,
$house_id
);
}
}
}
}
$this
->
agetn_house
->
commit
();
$this
->
agetn_house
->
commit
();
...
...
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