权限控制
This commit is contained in:
1 parent
db12a62698
commit
8f71a35ee6
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -179,7 +179,7 @@ public class DmPlayerentServiceImpl extends ServiceImpl<DmPlayerentMapper, DmPla
|
||||
*/
|
||||
@Override
|
||||
public List<DmPlayerent> selectDmPlayerentList(DmPlayerent dmPlayerent) {
|
||||
if (SecurityUtils.getUserId() != 1L) {
|
||||
if (null != SecurityUtils.getUserId() && SecurityUtils.getUserId() != 1L) {
|
||||
dmPlayerent.setAccountid(SecurityUtils.getUserId());
|
||||
}
|
||||
List<DmPlayerent> list = dmPlayerentMapper.selectDmPlayerentList(dmPlayerent);
|
||||
|
||||
@@ -35,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="onlineStatus != null and onlineStatus != ''"> and online_status = #{onlineStatus}</if>
|
||||
<if test="playerStatus != null and playerStatus != ''"> and player_status = #{playerStatus}</if>
|
||||
<if test="accountid != null and accountid != ''"> and accountId = #{accountid}</if>
|
||||
<if test="ip != null and ip != ''"> and ip like concat('%', #{ip}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
Reference in new issue
Block a user