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
f275a0ab
Commit
f275a0ab
authored
Jun 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/wx0604' into wx0604
parents
bdf8fd0b
1865cf47
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
OMarchInModel.php
application/model/OMarchInModel.php
+3
-3
evaluation_list_template_tpl.html
public/resource/template/evaluation_list_template_tpl.html
+0
-3
visit_shop_template_tpl.html
public/resource/template/visit_shop_template_tpl.html
+1
-0
No files found.
application/model/OMarchInModel.php
View file @
f275a0ab
...
@@ -93,12 +93,12 @@ class OMarchInModel extends Model
...
@@ -93,12 +93,12 @@ class OMarchInModel extends Model
}
}
/**
/**
* 查询经纪人进场数据
* 查询经纪人进场数据
todo 产品定义同一天带看同一个客户去多个铺子算一个带看,下个方法同样
* @param $params
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @return false|\PDOStatement|string|\think\Collection
*/
*/
public
function
getAddMarchInNumGroupTime
(
$params
){
public
function
getAddMarchInNumGroupTime
(
$params
){
$field
=
"count(
1
) as num,DATE(create_time) as day"
;
$field
=
"count(
DISTINCT report_id
) as num,DATE(create_time) as day"
;
$where_
=
[];
$where_
=
[];
if
(
isset
(
$params
[
"agent_id"
])){
if
(
isset
(
$params
[
"agent_id"
])){
$where_
[
"reception_id"
]
=
$params
[
"agent_id"
];
$where_
[
"reception_id"
]
=
$params
[
"agent_id"
];
...
@@ -114,7 +114,7 @@ class OMarchInModel extends Model
...
@@ -114,7 +114,7 @@ class OMarchInModel extends Model
}
}
public
function
getAddMarchInNum
(
$params
){
public
function
getAddMarchInNum
(
$params
){
$field
=
"count(
1
) as num"
;
$field
=
"count(
DISTINCT report_id
) as num"
;
$where_
=
[];
$where_
=
[];
if
(
isset
(
$params
[
"agent_id"
])){
if
(
isset
(
$params
[
"agent_id"
])){
$where_
[
"a.reception_id"
]
=
$params
[
"agent_id"
];
$where_
[
"a.reception_id"
]
=
$params
[
"agent_id"
];
...
...
public/resource/template/evaluation_list_template_tpl.html
View file @
f275a0ab
...
@@ -8,12 +8,9 @@
...
@@ -8,12 +8,9 @@
<
td
>
[
%
if
(
it
[
item
][
"name"
]
!=
null
)
{
%
]
<
td
>
[
%
if
(
it
[
item
][
"name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
'name'
]
%
]
[
%=
it
[
item
][
'name'
]
%
]
[
%
}
%
]
<
/td
>
[
%
}
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td>--
>
<
td
>
[
%
if
(
it
[
item
][
"phone"
]
!=
null
)
{
%
]
<
td
>
[
%
if
(
it
[
item
][
"phone"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
'phone'
]
%
]
[
%=
it
[
item
][
'phone'
]
%
]
[
%
}
%
]
<
/td
>
[
%
}
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'phone'
]
%
]
<
/td>--
>
<
td
class
=
"pay_type"
>
[
%=
it
[
item
][
'evaluate_grade'
]
%
]
<
/td
>
<
td
class
=
"pay_type"
>
[
%=
it
[
item
][
'evaluate_grade'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'evaluate_content'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'evaluate_content'
]
%
]
<
/td
>
<
td
>
<
td
>
...
...
public/resource/template/visit_shop_template_tpl.html
View file @
f275a0ab
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'created'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'created'
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'created'
]
%
]
<
/td>--
>
<
td
>
[
%=
it
[
item
][
'visitor_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'visitor_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agentshopname'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agentshopname'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'shop_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'shop_address'
]
%
]
<
/td
>
...
...
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