封版
This commit is contained in:
@@ -73,10 +73,10 @@ public class SocketIOConfig implements InitializingBean {
|
|||||||
config.setKeyStorePassword("123456"); // 设置证书密码
|
config.setKeyStorePassword("123456"); // 设置证书密码
|
||||||
|
|
||||||
// 启动socket服务
|
// 启动socket服务
|
||||||
SocketIOServer server = new SocketIOServer(config);
|
// SocketIOServer server = new SocketIOServer(config);
|
||||||
server.addListeners(socketIOHandler);
|
// server.addListeners(socketIOHandler);
|
||||||
server.start();
|
// server.start();
|
||||||
ClientCache.setSocketIOServer(server);
|
// ClientCache.setSocketIOServer(server);
|
||||||
logger.debug("Netty SocketIO启动:{}:{}",host,port);
|
// logger.debug("Netty SocketIO启动:{}:{}",host,port);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,6 +158,10 @@ public class User implements UserDetails {
|
|||||||
@ApiModelProperty(value = "商户ID")
|
@ApiModelProperty(value = "商户ID")
|
||||||
private Integer merchantId;
|
private Integer merchantId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "商户名称")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String merchantName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "是否管理员")
|
@ApiModelProperty(value = "是否管理员")
|
||||||
private Boolean isAdmin;
|
private Boolean isAdmin;
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,8 @@
|
|||||||
<sql id="selectSql">
|
<sql id="selectSql">
|
||||||
SELECT a.*,
|
SELECT a.*,
|
||||||
b.organization_name,
|
b.organization_name,
|
||||||
c.dict_data_name sex_name
|
c.dict_data_name sex_name,
|
||||||
|
e.merchant_name as merchantName
|
||||||
FROM sys_user a
|
FROM sys_user a
|
||||||
LEFT JOIN sys_organization b ON a.organization_id = b.organization_id
|
LEFT JOIN sys_organization b ON a.organization_id = b.organization_id
|
||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
@@ -35,6 +36,7 @@
|
|||||||
LEFT JOIN(
|
LEFT JOIN(
|
||||||
<include refid="selectUserRoleSql"/>
|
<include refid="selectUserRoleSql"/>
|
||||||
) d ON a.user_id = d.user_id
|
) d ON a.user_id = d.user_id
|
||||||
|
LEFT JOIN sys_merchant e ON a.merchant_id = e.merchant_id
|
||||||
<where>
|
<where>
|
||||||
<if test="param.userId != null">
|
<if test="param.userId != null">
|
||||||
AND a.user_id = #{param.userId}
|
AND a.user_id = #{param.userId}
|
||||||
@@ -133,6 +135,7 @@
|
|||||||
AND (
|
AND (
|
||||||
a.username = #{param.keywords}
|
a.username = #{param.keywords}
|
||||||
OR a.user_id = #{param.keywords}
|
OR a.user_id = #{param.keywords}
|
||||||
|
OR a.merchant_id = #{param.keywords}
|
||||||
OR a.nickname LIKE CONCAT('%', #{param.keywords}, '%')
|
OR a.nickname LIKE CONCAT('%', #{param.keywords}, '%')
|
||||||
OR a.real_name LIKE CONCAT('%', #{param.keywords}, '%')
|
OR a.real_name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||||
OR a.phone = #{param.keywords}
|
OR a.phone = #{param.keywords}
|
||||||
|
|||||||
Reference in New Issue
Block a user