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
dc6c6f19
Commit
dc6c6f19
authored
Jul 10, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cc9c7c85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
UserService.php
application/index/service/UserService.php
+12
-6
No files found.
application/index/service/UserService.php
View file @
dc6c6f19
...
...
@@ -150,32 +150,38 @@ class UserService
//客户姓名 修改记录
if
(
!
empty
(
$data
[
'user_name'
])
&&
(
$data
[
'user_name'
]
!=
$user_name
))
{
$this
->
userFieldChangeLog
(
$this
->
operation_id
,
$id
,
$user_name
,
$data
[
'user_name'
],
'user_name'
);
$this
->
userFieldChangeLog
(
$this
->
operation_id
,
$id
,
$user_name
,
$data
[
'user_name'
],
'user_name'
);
}
//客户委托类型 修改记录
if
(
is_numeric
(
$data
[
'entrust_type'
])
&&
(
$data
[
'entrust_type'
]
!=
$entrust_type_old
))
{
$this
->
userFieldChangeLog
(
$this
->
operation_id
,
$id
,
$entrust_type_old
,
$data
[
'entrust_type'
],
'entrust_type'
);
$this
->
userFieldChangeLog
(
$this
->
operation_id
,
$id
,
$entrust_type_old
,
$data
[
'entrust_type'
],
'entrust_type'
);
}
//具体业态 修改记录
if
(
!
empty
(
$data
[
'concrete_industry'
])
&&
(
$data
[
'concrete_industry'
]
!=
$concrete_industry_old
))
{
$this
->
userFieldChangeLog
(
$this
->
operation_id
,
$id
,
$concrete_industry_old
,
$data
[
'concrete_industry'
],
'concrete_industry'
);
$this
->
userFieldChangeLog
(
$this
->
operation_id
,
$id
,
$concrete_industry_old
,
$data
[
'concrete_industry'
],
'concrete_industry'
);
}
//价格需求 修改记录
if
(
!
empty
(
$data
[
'price_demand'
])
&&
(
$data
[
'price_demand'
]
!=
$price_demand_old
))
{
$this
->
userFieldChangeLog
(
$this
->
operation_id
,
$id
,
$price_demand_old
,
$data
[
'price_demand'
],
'price_demand'
);
$this
->
userFieldChangeLog
(
$this
->
operation_id
,
$id
,
$price_demand_old
,
$data
[
'price_demand'
],
'price_demand'
);
}
//面积需求 修改记录
if
(
!
empty
(
$data
[
'area_demand'
])
&&
(
$data
[
'area_demand'
]
!=
$area_demand_old
))
{
$this
->
userFieldChangeLog
(
$this
->
operation_id
,
$id
,
$area_demand_old
,
$data
[
'area_demand'
],
'area_demand'
);
$this
->
userFieldChangeLog
(
$this
->
operation_id
,
$id
,
$area_demand_old
,
$data
[
'area_demand'
],
'area_demand'
);
}
//更新业绩统计
$agent
=
new
AAgents
();
$agent_data
=
$agent
->
getAgentInfo
(
'id,name,phone,store_id,district_id'
,
$data
[
'agents_id'
]);
$sum
=
new
ResultsSummaryNewTask
();
$date
=
date
(
'Y-m-d'
);
$sum
->
updateTotalByAgentId
(
$agent_data
[
'id'
],
$agent_data
[
'store_id'
],
$agent_data
[
'district_id'
],
$date
,
$site_id
);
$sum
->
updateTotalByAgentId
(
$agent_data
[
'id'
],
$agent_data
[
'store_id'
],
$agent_data
[
'district_id'
],
$date
,
$site_id
);
}
catch
(
\Exception
$e
)
{
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
$e
->
getMessage
();
...
...
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