优化部门停用不显示
This commit is contained in:
@ -20,6 +20,9 @@ public class UserConstants
|
||||
/** 角色封禁状态 */
|
||||
public static final int ROLE_BLOCKED = 1;
|
||||
|
||||
/** 部门正常状态 */
|
||||
public static final int DEPT_NORMAL = 0;
|
||||
|
||||
/**
|
||||
* 用户名长度限制
|
||||
*/
|
||||
|
@ -48,11 +48,14 @@ public class DeptServiceImpl implements IDeptService
|
||||
|
||||
for (Dept dept : deptList)
|
||||
{
|
||||
Map<String, Object> deptMap = new HashMap<String, Object>();
|
||||
deptMap.put("id", dept.getDeptId());
|
||||
deptMap.put("pId", dept.getParentId());
|
||||
deptMap.put("name", dept.getDeptName());
|
||||
trees.add(deptMap);
|
||||
if (UserConstants.DEPT_NORMAL == dept.getStatus())
|
||||
{
|
||||
Map<String, Object> deptMap = new HashMap<String, Object>();
|
||||
deptMap.put("id", dept.getDeptId());
|
||||
deptMap.put("pId", dept.getParentId());
|
||||
deptMap.put("name", dept.getDeptName());
|
||||
trees.add(deptMap);
|
||||
}
|
||||
}
|
||||
return trees;
|
||||
}
|
||||
|
@ -162,6 +162,7 @@ public class UserServiceImpl implements IUserService
|
||||
* @param user 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateUser(User user)
|
||||
{
|
||||
return userDao.updateUser(user);
|
||||
|
@ -20,7 +20,7 @@ function loading() {
|
||||
if (item.status == '0') {
|
||||
return '<span class="label label-primary">正常</span>';
|
||||
} else if (item.status == '1') {
|
||||
return '<span class="label label-danger">禁用</span>';
|
||||
return '<span class="label label-danger">停用</span>';
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -75,7 +75,7 @@
|
||||
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<p><i class="fa fa-send-o"></i> 群:<a href="https://jq.qq.com/?_wv=1027&k=5ONbr1w" target="_blank">点击加入</a>
|
||||
<p><i class="fa fa-send-o"></i> 群:<a href="https://jq.qq.com/?_wv=1027&k=5HBAaYN" target="_blank">点击加入</a>
|
||||
</p>
|
||||
<p><i class="fa fa-qq"></i> QQ:<a href="http://wpa.qq.com/msgrd?v=3&uin=346039442&site=qq&menu=yes" target="_blank">346039442</a>
|
||||
</p>
|
||||
|
@ -51,7 +51,7 @@
|
||||
</div>
|
||||
<div class="radio radio-danger radio-inline">
|
||||
<input type="radio" id="radio2" name="status" value="1">
|
||||
<label for="radio2">禁用</label>
|
||||
<label for="radio2">停用</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -52,7 +52,7 @@
|
||||
</div>
|
||||
<div class="radio radio-danger radio-inline">
|
||||
<input type="radio" id="radio2" th:field="*{dept.status}" name="status" value="1">
|
||||
<label for="radio2">禁用</label>
|
||||
<label for="radio2">停用</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user