优化部门停用不显示

master
RuoYi 7 years ago committed by Limy
parent ab47c3c38b
commit fd7666137f

@ -47,4 +47,4 @@
## 若依交流群 ## 若依交流群
QQ群 [![加入QQ群](https://img.shields.io/badge/QQ群-1389287-blue.svg)](http://shang.qq.com/wpa/qunwpa?idkey=9a7d9f3274e4bfbf7e40e4a485ff6dc2adbeee8086ce39e40667ed4387414f12) 或 [![加入QQ群](https://img.shields.io/badge/QQ群-1389287-blue.svg)](https://jq.qq.com/?_wv=1027&k=5ONbr1w),推荐点击按钮入群,当然如果无法成功操作,请自行搜索群号`1389287`进行添加 QQ群 [![加入QQ群](https://img.shields.io/badge/QQ群-1389287-blue.svg)](http://shang.qq.com/wpa/qunwpa?idkey=4a9a52f5d9d9c65a8ea67859170ba835d95fc50ec74a2a722293e60e036b5016) 或 [![加入QQ群](https://img.shields.io/badge/QQ群-1389287-blue.svg)](https://jq.qq.com/?_wv=1027&k=5HBAaYN),推荐点击按钮入群,当然如果无法成功操作,请自行搜索群号`1389287`进行添加

@ -20,6 +20,9 @@ public class UserConstants
/** 角色封禁状态 */ /** 角色封禁状态 */
public static final int ROLE_BLOCKED = 1; public static final int ROLE_BLOCKED = 1;
/** 部门正常状态 */
public static final int DEPT_NORMAL = 0;
/** /**
* *
*/ */

@ -47,6 +47,8 @@ public class DeptServiceImpl implements IDeptService
List<Dept> deptList = deptDao.selectDeptAll(); List<Dept> deptList = deptDao.selectDeptAll();
for (Dept dept : deptList) for (Dept dept : deptList)
{
if (UserConstants.DEPT_NORMAL == dept.getStatus())
{ {
Map<String, Object> deptMap = new HashMap<String, Object>(); Map<String, Object> deptMap = new HashMap<String, Object>();
deptMap.put("id", dept.getDeptId()); deptMap.put("id", dept.getDeptId());
@ -54,6 +56,7 @@ public class DeptServiceImpl implements IDeptService
deptMap.put("name", dept.getDeptName()); deptMap.put("name", dept.getDeptName());
trees.add(deptMap); trees.add(deptMap);
} }
}
return trees; return trees;
} }

@ -162,6 +162,7 @@ public class UserServiceImpl implements IUserService
* @param user * @param user
* @return * @return
*/ */
@Override
public int updateUser(User user) public int updateUser(User user)
{ {
return userDao.updateUser(user); return userDao.updateUser(user);

@ -20,7 +20,7 @@ function loading() {
if (item.status == '0') { if (item.status == '0') {
return '<span class="label label-primary">正常</span>'; return '<span class="label label-primary">正常</span>';
} else if (item.status == '1') { } 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>
<div class="ibox-content"> <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>
<p><i class="fa fa-qq"></i> QQ<a href="http://wpa.qq.com/msgrd?v=3&amp;uin=346039442&amp;site=qq&amp;menu=yes" target="_blank">346039442</a> <p><i class="fa fa-qq"></i> QQ<a href="http://wpa.qq.com/msgrd?v=3&amp;uin=346039442&amp;site=qq&amp;menu=yes" target="_blank">346039442</a>
</p> </p>

@ -51,7 +51,7 @@
</div> </div>
<div class="radio radio-danger radio-inline"> <div class="radio radio-danger radio-inline">
<input type="radio" id="radio2" name="status" value="1"> <input type="radio" id="radio2" name="status" value="1">
<label for="radio2"></label> <label for="radio2"></label>
</div> </div>
</div> </div>
</div> </div>

@ -52,7 +52,7 @@
</div> </div>
<div class="radio radio-danger radio-inline"> <div class="radio radio-danger radio-inline">
<input type="radio" id="radio2" th:field="*{dept.status}" name="status" value="1"> <input type="radio" id="radio2" th:field="*{dept.status}" name="status" value="1">
<label for="radio2"></label> <label for="radio2"></label>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save