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
a6cec67d
Commit
a6cec67d
authored
Sep 14, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
11ac9d9e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
OperationData.php
application/index/controller/OperationData.php
+6
-6
Users.php
application/model/Users.php
+1
-1
No files found.
application/index/controller/OperationData.php
View file @
a6cec67d
...
@@ -99,15 +99,17 @@ class OperationData extends Basic
...
@@ -99,15 +99,17 @@ class OperationData extends Basic
// 注册客户数
// 注册客户数
$where
=
[];
$where
=
[];
$where
[
'create_time'
]
=
$between
;
$where
[
'registration_time'
]
=
$between
;
$where
[
'registration_time'
]
=
array
(
'exp'
,
'is not null'
);
$where
[
'status'
]
=
0
;
// $where['registration_time'] = array( 'exp', 'is not null' );
$addUserNum
=
$this
->
userModel
->
getAddUserNumForOperation
(
$where
);
$addUserNum
=
$this
->
userModel
->
getAddUserNumForOperation
(
$where
);
$result
[
"create_user_num"
]
=
isset
(
$addUserNum
[
0
][
"num"
])
?
$addUserNum
[
0
][
"num"
]
:
0
;
$result
[
"create_user_num"
]
=
isset
(
$addUserNum
[
0
][
"num"
])
?
$addUserNum
[
0
][
"num"
]
:
0
;
// 登录客户数
// 登录客户数
$where
=
[];
$where
=
[];
$where
[
'create_time'
]
=
$between
;
$where
[
'first_login_time'
]
=
$between
;
$where
[
'last_login_time'
]
=
array
(
'exp'
,
'is not null'
);
$where
[
'status'
]
=
0
;
//$where['last_login_time'] = array( 'exp', 'is not null' );
$addUserNum
=
$this
->
userModel
->
getAddUserNumForOperation
(
$where
);
$addUserNum
=
$this
->
userModel
->
getAddUserNumForOperation
(
$where
);
$result
[
"login_user_num"
]
=
isset
(
$addUserNum
[
0
][
"num"
])
?
$addUserNum
[
0
][
"num"
]
:
0
;
$result
[
"login_user_num"
]
=
isset
(
$addUserNum
[
0
][
"num"
])
?
$addUserNum
[
0
][
"num"
]
:
0
;
return
$this
->
response
(
200
,
'success'
,
$result
);
return
$this
->
response
(
200
,
'success'
,
$result
);
...
@@ -181,8 +183,6 @@ class OperationData extends Basic
...
@@ -181,8 +183,6 @@ class OperationData extends Basic
}
}
/**
/**
* 获取部门列表
* 获取部门列表
* @return \think\Response
* @return \think\Response
...
...
application/model/Users.php
View file @
a6cec67d
...
@@ -907,7 +907,7 @@ class Users extends Model
...
@@ -907,7 +907,7 @@ class Users extends Model
->
field
(
$field
)
->
field
(
$field
)
->
where
(
$params
)
->
where
(
$params
)
->
select
();
->
select
();
//
dump($this->getLastSql());
//
dump($this->getLastSql());
return
$result
;
return
$result
;
}
}
...
...
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