|
@@ -19,9 +19,7 @@ import com.ruoyi.common.core.domain.entity.MUser;
|
|
|
import com.ruoyi.mobile.mapper.MUserMapper;
|
|
|
import com.ruoyi.mobile.service.IMUserService;
|
|
|
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* 用户Service业务层处理
|
|
@@ -40,14 +38,18 @@ public class MUserServiceImpl extends ServicePlusImpl<MUserMapper, MUser, MUserV
|
|
|
String type = String.valueOf(map.get("type"));
|
|
|
Integer page = Integer.valueOf(map.get("page").toString());
|
|
|
map.put("page", (page - 1) * Integer.valueOf(map.get("size").toString()));
|
|
|
- if ("0".equals(type)) {
|
|
|
- return baseMapper.search1(map);
|
|
|
- } else if ("1".equals(type)) {
|
|
|
- return baseMapper.search2(map);
|
|
|
- } else if ("2".equals(type)) {
|
|
|
- return baseMapper.search3(map);
|
|
|
- } else if ("3".equals(type)) {
|
|
|
- return baseMapper.search4(map);
|
|
|
+ try {
|
|
|
+ if ("0".equals(type)) {
|
|
|
+ return baseMapper.search1(map);
|
|
|
+ } else if ("1".equals(type)) {
|
|
|
+ return baseMapper.search2(map);
|
|
|
+ } else if ("2".equals(type)) {
|
|
|
+ return baseMapper.search3(map);
|
|
|
+ } else if ("3".equals(type)) {
|
|
|
+ return baseMapper.search4(map);
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ return new ArrayList<>();
|
|
|
}
|
|
|
return null;
|
|
|
}
|