提交 328de067 authored 作者: 吴德鹏's avatar 吴德鹏

用户区分注册来源

上级 5aaed118
package com.platform.entity; package com.platform.entity;
import sun.rmi.server.InactiveGroupException;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
...@@ -37,6 +39,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -37,6 +39,7 @@ public class TbCfUserInfoEntity implements Serializable {
* 用户名 * 用户名
*/ */
private String nick; private String nick;
private Integer source;
/** /**
* 电话号码 * 电话号码
*/ */
...@@ -98,6 +101,14 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -98,6 +101,14 @@ public class TbCfUserInfoEntity implements Serializable {
*/ */
private Integer emailFlag; private Integer emailFlag;
public Integer getSource() {
return source;
}
public void setSource(Integer source) {
this.source = source;
}
/** /**
* 设置:用户id * 设置:用户id
*/ */
...@@ -111,6 +122,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -111,6 +122,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getUserId() { public String getUserId() {
return userId; return userId;
} }
/** /**
* 设置:用户编号 * 设置:用户编号
*/ */
...@@ -124,6 +136,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -124,6 +136,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getUserNo() { public String getUserNo() {
return userNo; return userNo;
} }
/** /**
* 设置:用户类型(1邮箱、2facebook、3twitter) * 设置:用户类型(1邮箱、2facebook、3twitter)
*/ */
...@@ -137,6 +150,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -137,6 +150,7 @@ public class TbCfUserInfoEntity implements Serializable {
public Integer getUserType() { public Integer getUserType() {
return userType; return userType;
} }
/** /**
* 设置:账号 * 设置:账号
*/ */
...@@ -150,6 +164,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -150,6 +164,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getAccount() { public String getAccount() {
return account; return account;
} }
/** /**
* 设置:用户头像地址 * 设置:用户头像地址
*/ */
...@@ -163,6 +178,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -163,6 +178,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getAvatar() { public String getAvatar() {
return avatar; return avatar;
} }
/** /**
* 设置:用户名 * 设置:用户名
*/ */
...@@ -176,6 +192,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -176,6 +192,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getNick() { public String getNick() {
return nick; return nick;
} }
/** /**
* 设置:电话号码 * 设置:电话号码
*/ */
...@@ -189,6 +206,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -189,6 +206,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getPhone() { public String getPhone() {
return phone; return phone;
} }
/** /**
* 设置:是否绑定手机 * 设置:是否绑定手机
*/ */
...@@ -202,6 +220,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -202,6 +220,7 @@ public class TbCfUserInfoEntity implements Serializable {
public Integer getPhoneFlag() { public Integer getPhoneFlag() {
return phoneFlag; return phoneFlag;
} }
/** /**
* 设置:密码 * 设置:密码
*/ */
...@@ -215,6 +234,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -215,6 +234,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getPassword() { public String getPassword() {
return password; return password;
} }
/** /**
* 设置:上一次登录时间 * 设置:上一次登录时间
*/ */
...@@ -228,6 +248,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -228,6 +248,7 @@ public class TbCfUserInfoEntity implements Serializable {
public Date getLastLoginTime() { public Date getLastLoginTime() {
return lastLoginTime; return lastLoginTime;
} }
/** /**
* 设置:上一次登录IP * 设置:上一次登录IP
*/ */
...@@ -241,6 +262,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -241,6 +262,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getLastLoginIp() { public String getLastLoginIp() {
return lastLoginIp; return lastLoginIp;
} }
/** /**
* 设置:登录次数 * 设置:登录次数
*/ */
...@@ -254,6 +276,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -254,6 +276,7 @@ public class TbCfUserInfoEntity implements Serializable {
public Integer getLoginCount() { public Integer getLoginCount() {
return loginCount; return loginCount;
} }
/** /**
* 设置:邮箱 * 设置:邮箱
*/ */
...@@ -267,6 +290,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -267,6 +290,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getEmail() { public String getEmail() {
return email; return email;
} }
/** /**
* 设置:facebook账号 * 设置:facebook账号
*/ */
...@@ -280,6 +304,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -280,6 +304,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getFacebook() { public String getFacebook() {
return facebook; return facebook;
} }
/** /**
* 设置:创建时间 * 设置:创建时间
*/ */
...@@ -293,6 +318,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -293,6 +318,7 @@ public class TbCfUserInfoEntity implements Serializable {
public Date getCreateTime() { public Date getCreateTime() {
return createTime; return createTime;
} }
/** /**
* 设置:性别,0未知,1男性,2女性 * 设置:性别,0未知,1男性,2女性
*/ */
...@@ -306,6 +332,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -306,6 +332,7 @@ public class TbCfUserInfoEntity implements Serializable {
public Integer getSex() { public Integer getSex() {
return sex; return sex;
} }
/** /**
* 设置:默认地址id * 设置:默认地址id
*/ */
...@@ -319,6 +346,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -319,6 +346,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getDefaultAddressId() { public String getDefaultAddressId() {
return defaultAddressId; return defaultAddressId;
} }
/** /**
* 设置:发出邀请的用户 * 设置:发出邀请的用户
*/ */
...@@ -332,6 +360,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -332,6 +360,7 @@ public class TbCfUserInfoEntity implements Serializable {
public String getInvitedUserId() { public String getInvitedUserId() {
return invitedUserId; return invitedUserId;
} }
/** /**
* 设置:总共邀请数量 * 设置:总共邀请数量
*/ */
...@@ -345,6 +374,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -345,6 +374,7 @@ public class TbCfUserInfoEntity implements Serializable {
public Integer getInvitedCount() { public Integer getInvitedCount() {
return invitedCount; return invitedCount;
} }
/** /**
* 设置:是否有效 * 设置:是否有效
*/ */
...@@ -358,6 +388,7 @@ public class TbCfUserInfoEntity implements Serializable { ...@@ -358,6 +388,7 @@ public class TbCfUserInfoEntity implements Serializable {
public Integer getEnableFlag() { public Integer getEnableFlag() {
return enableFlag; return enableFlag;
} }
/** /**
* 设置:邮箱是否已经验证 * 设置:邮箱是否已经验证
*/ */
......
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
</when> </when>
<otherwise> <otherwise>
ORDER BY ORDER BY
o.total DESC u.createTime DESC
</otherwise> </otherwise>
</choose> </choose>
<if test="offset != null and limit != null"> <if test="offset != null and limit != null">
......
...@@ -815,6 +815,23 @@ userTypeFormat = function (cellvalue) { ...@@ -815,6 +815,23 @@ userTypeFormat = function (cellvalue) {
return returnStr; return returnStr;
}; };
/**
* 注册来源
* @param cellvalue
* @returns {string}
*/
signTypeFormat = function (cellvalue) {
var returnStr = null;
if (cellvalue == '1') {
returnStr = "app";
} else if (cellvalue == '2') {
returnStr = "pc";
} else if (cellvalue == '3') {
returnStr = "mobile";
}
return returnStr;
};
/** /**
* 是或者否翻译 * 是或者否翻译
* @param cellvalue * @param cellvalue
...@@ -866,9 +883,6 @@ activityStatusFormat = function (cellvalue) { ...@@ -866,9 +883,6 @@ activityStatusFormat = function (cellvalue) {
} }
shows = function (cellvalue, options, rowObject) { shows = function (cellvalue, options, rowObject) {
let returnStr; let returnStr;
returnStr = "<i-button class=\"ivu-btn ivu-btn-info\" onclick=showWord('" + rowObject.id + "') type=\"info\">查看</i-button>"; returnStr = "<i-button class=\"ivu-btn ivu-btn-info\" onclick=showWord('" + rowObject.id + "') type=\"info\">查看</i-button>";
......
...@@ -4,15 +4,16 @@ $(function () { ...@@ -4,15 +4,16 @@ $(function () {
colModel: [ colModel: [
{label: 'userId', name: 'userId', index: 'user_id', key: true, hidden: true}, {label: 'userId', name: 'userId', index: 'user_id', key: true, hidden: true},
{label: '用户编号', name: 'userNo', index: 'user_no', width: 160}, {label: '用户编号', name: 'userNo', index: 'user_no', width: 160},
{label: '用户类型', name: 'userType', index: 'user_type', width: 80,formatter:userTypeFormat}, {label: '用户类型', name: 'userType', index: 'user_type', width: 80, formatter: userTypeFormat},
{label: '账号', name: 'account', index: 'account', width: 120}, {label: '账号', name: 'account', index: 'account', width: 120},
{label: '用户头像地址', name: 'avatar', index: 'avatar', width: 100,formatter:imageFormat}, {label: '注册来源', name: 'source', index: 'source', width: 60, formatter: signTypeFormat},
{label: '用户头像地址', name: 'avatar', index: 'avatar', width: 100, formatter: imageFormat},
{label: '用户名', name: 'nick', index: 'nick', width: 80}, {label: '用户名', name: 'nick', index: 'nick', width: 80},
{label: '下单次数', name: 'count', index: 'count', width: 80}, {label: '下单次数', name: 'count', index: 'count', width: 80},
{label: '总金额', name: 'total', index: 'total', width: 80,formatter:moneyFormat}, {label: '总金额', name: 'total', index: 'total', width: 80, formatter: moneyFormat},
{label: '使用优惠券次数', name: 'num', index: 'num', width: 80}, {label: '使用优惠券次数', name: 'num', index: 'num', width: 80},
{label: '电话号码', name: 'phone', index: 'phone', width: 100}, {label: '电话号码', name: 'phone', index: 'phone', width: 100},
{label: '是否绑定手机', name: 'phoneFlag', index: 'phone_flag', width: 80,formatter:yesOrNoFormat}, {label: '是否绑定手机', name: 'phoneFlag', index: 'phone_flag', width: 80, formatter: yesOrNoFormat},
{label: '密码', name: 'password', index: 'password', width: 80, hidden: true}, {label: '密码', name: 'password', index: 'password', width: 80, hidden: true},
{label: '上一次登录时间', name: 'lastLoginTime', index: 'last_login_time', width: 120}, {label: '上一次登录时间', name: 'lastLoginTime', index: 'last_login_time', width: 120},
{label: '上一次登录IP', name: 'lastLoginIp', index: 'last_login_ip', width: 80}, {label: '上一次登录IP', name: 'lastLoginIp', index: 'last_login_ip', width: 80},
...@@ -20,16 +21,16 @@ $(function () { ...@@ -20,16 +21,16 @@ $(function () {
{label: '邮箱', name: 'email', index: 'email', width: 120}, {label: '邮箱', name: 'email', index: 'email', width: 120},
{label: 'facebook账号', name: 'facebook', index: 'facebook', width: 120}, {label: 'facebook账号', name: 'facebook', index: 'facebook', width: 120},
{label: '创建时间', name: 'createTime', index: 'create_time', width: 120}, {label: '创建时间', name: 'createTime', index: 'create_time', width: 120},
{label: '性别', name: 'sex', index: 'sex', width: 80,formatter:sexFormat}, {label: '性别', name: 'sex', index: 'sex', width: 80, formatter: sexFormat},
{label: '默认地址id', name: 'defaultAddressId', index: 'default_address_id', width: 200}, {label: '默认地址id', name: 'defaultAddressId', index: 'default_address_id', width: 200},
{label: '邀请用户', name: 'invitedUserId', index: 'invited_user_id', width: 120}, {label: '邀请用户', name: 'invitedUserId', index: 'invited_user_id', width: 120},
{label: '邀请人数', name: 'invitedCount', index: 'invited_count', width: 80}, {label: '邀请人数', name: 'invitedCount', index: 'invited_count', width: 80},
{label: '是否有效', name: 'enableFlag', index: 'enable_flag', width: 60,formatter:yesOrNoFormat}, {label: '是否有效', name: 'enableFlag', index: 'enable_flag', width: 60, formatter: yesOrNoFormat},
{label: '邮箱是否已经验证', name: 'emailFlag', index: 'email_flag', width: 80,formatter:yesOrNoFormat}], {label: '邮箱是否已经验证', name: 'emailFlag', index: 'email_flag', width: 80, formatter: yesOrNoFormat}],
shrinkToFit: true, shrinkToFit: true,
datatype : "json", datatype: "json",
rowNum:15, rowNum: 15,
rowList:[15,30,45], rowList: [15, 30, 45],
mtype: "POST", mtype: "POST",
rownumbers: true, rownumbers: true,
rownumWidth: 40, rownumWidth: 40,
...@@ -91,7 +92,7 @@ let vm = new Vue({ ...@@ -91,7 +92,7 @@ let vm = new Vue({
}, },
del: function (event) { del: function (event) {
let userIds = getSelectedRows("#jqGrid"); let userIds = getSelectedRows("#jqGrid");
if (userIds == null){ if (userIds == null) {
return; return;
} }
...@@ -109,9 +110,9 @@ let vm = new Vue({ ...@@ -109,9 +110,9 @@ let vm = new Vue({
}); });
}); });
}, },
getInfo: function(userId){ getInfo: function (userId) {
Ajax.request({ Ajax.request({
url: "../tbcfuserinfo/info/"+userId, url: "../tbcfuserinfo/info/" + userId,
async: true, async: true,
successCallback: function (r) { successCallback: function (r) {
vm.tbCfUserInfo = r.tbCfUserInfo; vm.tbCfUserInfo = r.tbCfUserInfo;
...@@ -127,7 +128,7 @@ let vm = new Vue({ ...@@ -127,7 +128,7 @@ let vm = new Vue({
}).trigger("reloadGrid"); }).trigger("reloadGrid");
vm.handleReset('formValidate'); vm.handleReset('formValidate');
}, },
reloadSearch: function() { reloadSearch: function () {
vm.q = { vm.q = {
name: '' name: ''
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论