Commit 8197d9f4 by zhengxj

finish 默认加载跟组织时 也按排序值升序排列 on 20190313 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18472 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 2525d85c
...@@ -98,8 +98,9 @@ public class SysOrganizationServiceImpl implements ISysOrganizationService{ ...@@ -98,8 +98,9 @@ public class SysOrganizationServiceImpl implements ISysOrganizationService{
} }
static int level=1;
public Boolean isExceedLevel(Integer id) { public Boolean isExceedLevel(Integer id) {
int level=1;
SysOrganization sysOrganization = orgDao.selectByPrimaryKey(id); SysOrganization sysOrganization = orgDao.selectByPrimaryKey(id);
if (sysOrganization != null) { if (sysOrganization != null) {
level++; level++;
...@@ -133,7 +134,7 @@ public class SysOrganizationServiceImpl implements ISysOrganizationService{ ...@@ -133,7 +134,7 @@ public class SysOrganizationServiceImpl implements ISysOrganizationService{
// 仅查询一级菜单 // 仅查询一级菜单
if (orgStatus == null && StringUtils.isNull(orgName)) { if (orgStatus == null && StringUtils.isNull(orgName)) {
example.setOrderByClause("create_time desc"); example.setOrderByClause("sort asc");
criteria.andOrgStatusBetween((byte)1, (byte) 2); criteria.andOrgStatusBetween((byte)1, (byte) 2);
criteria.andParentIdEqualTo(0); criteria.andParentIdEqualTo(0);
// TODO 查询当前用户的 // TODO 查询当前用户的
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!