Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
92183039
提交
92183039
authored
3月 26, 2021
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
用户导出
上级
9398e9a2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
43 行增加
和
39 行删除
+43
-39
TbCfUserInfoServiceImpl.java
...va/com/platform/service/impl/TbCfUserInfoServiceImpl.java
+5
-8
TbCfUserInfoDao.xml
...n/src/main/resources/com/platform/dao/TbCfUserInfoDao.xml
+38
-31
没有找到文件。
platform-admin/src/main/java/com/platform/service/impl/TbCfUserInfoServiceImpl.java
浏览文件 @
92183039
...
@@ -10,6 +10,7 @@ import com.platform.utils.excel.ExcelExport;
...
@@ -10,6 +10,7 @@ import com.platform.utils.excel.ExcelExport;
import
com.platform.utils.excel.ExcelImport
;
import
com.platform.utils.excel.ExcelImport
;
import
com.platform.vo.Network
;
import
com.platform.vo.Network
;
import
com.platform.vo.StatisticalVo
;
import
com.platform.vo.StatisticalVo
;
import
com.sun.xml.internal.messaging.saaj.soap.GifDataContentHandler
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -272,15 +273,11 @@ public class TbCfUserInfoServiceImpl implements TbCfUserInfoService {
...
@@ -272,15 +273,11 @@ public class TbCfUserInfoServiceImpl implements TbCfUserInfoService {
List
<
Object
[]>
list1
=
new
ArrayList
<
Object
[]>();
List
<
Object
[]>
list1
=
new
ArrayList
<
Object
[]>();
if
(
userIds
!=
null
&&
userIds
.
length
>
0
)
{
List
<
TbCfUserInfoEntity
>
users
;
map
.
put
(
"ids"
,
userIds
);
if
(
userIds
==
null
||
userIds
.
length
==
0
)
{
//查询符合条件的用户
users
=
tbCfUserInfoDao
.
getUserList
(
map
);
}
else
{
//查询勾选的用户
users
=
tbCfUserInfoDao
.
getUsers
(
userIds
);
}
}
//查询符合条件的用户
List
<
TbCfUserInfoEntity
>
users
=
tbCfUserInfoDao
.
getUserList
(
map
);
String
[]
header
=
new
String
[]{
"账号"
,
"昵称"
,
"国家"
,
"注册来源"
,
"注册时间"
,
"电话号码"
,
"邮箱"
,
"性别"
,
"facebook账号"
};
String
[]
header
=
new
String
[]{
"账号"
,
"昵称"
,
"国家"
,
"注册来源"
,
"注册时间"
,
"电话号码"
,
"邮箱"
,
"性别"
,
"facebook账号"
};
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfUserInfoDao.xml
浏览文件 @
92183039
...
@@ -56,37 +56,37 @@
...
@@ -56,37 +56,37 @@
where user_id = #{id}
where user_id = #{id}
</select>
</select>
<
select
id=
"getUsers"
resultType=
"com.platform.entity.TbCfUserInfoEntity"
>
<
!-- <select id="getUsers" resultType="com.platform.entity.TbCfUserInfoEntity">--
>
select
<!-- select-->
`user_id`,
<!-- `user_id`,-->
`user_no`,
<!-- `user_no`,-->
`user_type`,
<!-- `user_type`,-->
`account`,
<!-- `account`,-->
`avatar`,
<!-- `avatar`,-->
`nick`,
<!-- `nick`,-->
`phone`,
<!-- `phone`,-->
`phone_flag`,
<!-- `phone_flag`,-->
`password`,
<!-- `password`,-->
`last_login_time`,
<!-- `last_login_time`,-->
`last_login_ip`,
<!-- `last_login_ip`,-->
`login_count`,
<!-- `login_count`,-->
`email`,
<!-- `email`,-->
`facebook`,
<!-- `facebook`,-->
`create_time`,
<!-- `create_time`,-->
`sex`,
<!-- `sex`,-->
`default_address_id`,
<!-- `default_address_id`,-->
`invited_user_id`,
<!-- `invited_user_id`,-->
`invited_count`,
<!-- `invited_count`,-->
`enable_flag`,
<!-- `enable_flag`,-->
`email_flag`,
<!-- `email_flag`,-->
country,
<!-- country,-->
source
<!-- source-->
from tb_cf_user_info
<!-- from tb_cf_user_info-->
where user_id in
<!-- where user_id in-->
<foreach
item=
"userId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
<!-- <foreach item="userId" collection="array" open="(" separator="," close=")">--
>
#{userId}
<!-- #{userId}-->
</foreach
>
<!-- </foreach>--
>
<
/select
>
<
!-- </select>--
>
<select
id=
"getUserList"
resultType=
"com.platform.entity.TbCfUserInfoEntity"
>
<select
id=
"getUserList"
resultType=
"com.platform.entity.TbCfUserInfoEntity"
>
select
select
...
@@ -118,6 +118,13 @@
...
@@ -118,6 +118,13 @@
<if
test=
"startTime != null and endTime != ''"
>
<if
test=
"startTime != null and endTime != ''"
>
AND create_time between #{startTime} and #{endTime}
AND create_time between #{startTime} and #{endTime}
</if>
</if>
<if
test=
"ids!=null"
>
AND user_id in
<foreach
item=
"userId"
collection=
"ids"
open=
"("
separator=
","
close=
")"
>
#{userId}
</foreach>
</if>
order by create_time desc
</select>
</select>
<!--查询每日注册量-->
<!--查询每日注册量-->
<select
id=
"getDailyRegistered"
resultType=
"com.platform.vo.StatisticalVo"
>
<select
id=
"getDailyRegistered"
resultType=
"com.platform.vo.StatisticalVo"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论