|
@@ -417,9 +417,20 @@ public class AdminServiceImpl implements AdminService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<AdminVO> getAdminlist(JSONObject type) {
|
|
|
- if (type != null && !type.isEmpty()) {
|
|
|
- return adminDao.getAdminLsit(type.getInteger("type"));
|
|
|
+ public List<AdminVO> getAdminlist(JSONObject jsonObject) {
|
|
|
+ if (jsonObject != null && !jsonObject.isEmpty()) {
|
|
|
+ if(jsonObject.containsKey("adminListType")){
|
|
|
+ if(jsonObject.getInteger("adminListType") == 1){
|
|
|
+ AdminVO info = getInfo();
|
|
|
+ List<AdminVO> adminlist = adminDao.getAdminlist(info);
|
|
|
+ adminlist.add(info);
|
|
|
+ return adminlist;
|
|
|
+ }else {
|
|
|
+ AdminVO info = getInfo();
|
|
|
+ return adminDao.getAdminlist(info);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return adminDao.getAdminLsit(jsonObject.getInteger("type"));
|
|
|
} else {
|
|
|
AdminVO info = getInfo();
|
|
|
return adminDao.getAdminlist(info);
|