Commit 7d8010e5 authored by cq990612's avatar cq990612

优化代码结构

parent baad04c0
...@@ -251,7 +251,7 @@ public class WorkUserServiceImpl implements WorkUserService { ...@@ -251,7 +251,7 @@ public class WorkUserServiceImpl implements WorkUserService {
} }
@Override @Override
public ResultUser login(String loginName, String password, String source) { public ResultUser login(String loginName, String password, String source) {
log.info("WorkUserServiceImpl[]login[].input.param" + loginName + password + source); log.info("WorkUserServiceImpl[]login[].input.param" + loginName + password + source);
if (StringUtils.isEmpty(loginName) || StringUtils.isEmpty(password)) { if (StringUtils.isEmpty(loginName) || StringUtils.isEmpty(password)) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.INPUT_PARAM_IS_NULL); throw new BaseCustomException(BASE_RESP_CODE_ENUM.INPUT_PARAM_IS_NULL);
......
...@@ -96,14 +96,12 @@ public class UserRoleLevelUtils { ...@@ -96,14 +96,12 @@ public class UserRoleLevelUtils {
if (CollectionUtils.isEmpty(workLevels)) { if (CollectionUtils.isEmpty(workLevels)) {
return null; return null;
} }
/*workLevels.sort(new Comparator<WorkLevel>() {
workLevels.sort(new Comparator<WorkLevel>() {
@Override @Override
public int compare(WorkLevel o1, WorkLevel o2) { public int compare(WorkLevel o1, WorkLevel o2) {
return o2.getId()-o1.getId(); return o2.getId()-o1.getId();
} }
}); });*/
return workLevels; return workLevels;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment