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
14e2f7d4
Commit
14e2f7d4
authored
Aug 03, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件上传格式增加
parent
da6af941
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
24 deletions
+2
-24
PerformanceService.php
application/api_broker/service/PerformanceService.php
+1
-23
UploadFileService.php
application/api_broker/service/UploadFileService.php
+1
-1
No files found.
application/api_broker/service/PerformanceService.php
View file @
14e2f7d4
...
...
@@ -68,23 +68,9 @@ class PerformanceService
$agent_info
=
$this
->
getStoreAndDistrict
(
$agent_id
);
$where_
=
[];
$where_
[
'total_time'
]
=
array
(
'between'
,
array
(
$end_day
,
$yesterday
)
);
//todo 成交报告数 bargain_sum
//todo 成交报告数其他 bargain_sum
//todo 收款数 paylog
//todo 进场数 march_in_num
//todo 报备数 look_at_num
//todo 新增商铺数 add_house_num
//todo 新增客户数 add_user_num
//todo 团队人数 team_num
$field
=
"agent_id,store_id,district_id,sum(performance) as performance_total,bargain_sum,bargain_sum,paylog,march_in_num,look_at_num,add_house_num,add_user_num"
;
$field
=
"agent_id,store_id,district_id,sum(performance) as performance_total"
;
$order
=
"performance_total desc"
;
$result
=
$this
->
totalModel
->
getTotalByAgentId
(
$field
,
$where_
,
$type
,
$order
);
//dump($result);
...
...
@@ -103,10 +89,6 @@ class PerformanceService
$value
[
"store_name"
]
=
$info
[
0
][
"store_name"
];
$value
[
"district_name"
]
=
$info
[
0
][
"district_name"
];
}
//计算区域人数
$params
=
[];
$params
[
'district_id'
]
=
$value
[
"district_id"
];
$value
[
"team_num"
]
=
$this
->
agentModel
->
getAgentsCountByStoreId
(
$params
);
array_push
(
$arr
,
$value
);
}
break
;
...
...
@@ -122,10 +104,6 @@ class PerformanceService
$value
[
"store_name"
]
=
$info
[
0
][
"store_name"
];
$value
[
"district_name"
]
=
$info
[
0
][
"district_name"
];
}
//计算门店人数
$params
=
[];
$params
[
'store_id'
]
=
$value
[
"store_id"
];
$value
[
"team_num"
]
=
$this
->
agentModel
->
getAgentsCountByStoreId
(
$params
);
array_push
(
$arr
,
$value
);
}
break
;
...
...
application/api_broker/service/UploadFileService.php
View file @
14e2f7d4
...
...
@@ -20,7 +20,7 @@ class UploadFileService
* @param array $ext
* @return array
*/
public
function
upload
(
$_upload_file
,
$type
,
$size
=
1000000
,
$ext
=
[
'jpg'
,
'png'
,
'jpeg'
,
'xlsx'
])
public
function
upload
(
$_upload_file
,
$type
,
$size
=
1000000
,
$ext
=
[
'jpg'
,
'png'
,
'jpeg'
,
'xlsx'
,
'doc'
,
'pdf'
])
{
/**
*
...
...
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