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
3c90daf9
Commit
3c90daf9
authored
Aug 20, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客方统计
parent
f110d334
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
Member.php
application/index/controller/Member.php
+13
-2
No files found.
application/index/controller/Member.php
View file @
3c90daf9
...
...
@@ -377,9 +377,15 @@ class Member extends Basic{
return
$this
->
response
(
101
,
'该用户已经存在!'
);
}
$agent
=
new
AAgents
();
$agent_data
=
$agent
->
getAgentInfo
(
'
name,phone
'
,
$this
->
params
[
'agents_id'
]);
$agent_data
=
$agent
->
getAgentInfo
(
'
id,name,phone,store_id,district_id
'
,
$this
->
params
[
'agents_id'
]);
$remark
=
'新增为'
.
$agent_data
[
'name'
]
.
'-'
.
$agent_data
[
'phone'
];
$result
=
$this
->
user
->
edit
(
$this
->
params
,
$this
->
params
[
'id'
],
$this
->
userId
);
//新增或编辑
//更新业绩统计
$sum
=
new
ResultsSummaryNewTask
();
$date
=
date
(
'Y-m-d'
);
$sum
->
updateTotalByAgentId
(
$agent_data
[
'id'
],
$agent_data
[
'store_id'
],
$agent_data
[
'district_id'
],
$date
);
$this
->
operating_records
(
$this
->
userId
,
$type
=
3
,
$remark
,
$this
->
params
[
'id'
]);
//记录日志
}
else
{
$user_data
=
$this
->
user
->
getUserById
(
'id,agent_id'
,
$this
->
params
[
'id'
]);
...
...
@@ -391,8 +397,13 @@ class Member extends Basic{
//是否修改客方
if
(
$this
->
params
[
'agents_id'
]
!=
$user_data
[
'agent_id'
])
{
$agent
=
new
AAgents
();
$agent_data
=
$agent
->
getAgentInfo
(
'
name,phone
'
,
$this
->
params
[
'agents_id'
]);
$agent_data
=
$agent
->
getAgentInfo
(
'
id,name,phone,store_id,district_id
'
,
$this
->
params
[
'agents_id'
]);
$remark
=
'修改为'
.
$agent_data
[
'name'
]
.
'-'
.
$agent_data
[
'phone'
];
//更新业绩统计
$sum
=
new
ResultsSummaryNewTask
();
$date
=
date
(
'Y-m-d'
);
$sum
->
updateTotalByAgentId
(
$agent_data
[
'id'
],
$agent_data
[
'store_id'
],
$agent_data
[
'district_id'
],
$date
);
}
else
{
$remark
=
'用户编辑'
;
}
...
...
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