|
@@ -12,6 +12,7 @@ import com.huimv.receive.common.utils.Print;
|
|
import com.huimv.receive.common.utils.Result;
|
|
import com.huimv.receive.common.utils.Result;
|
|
import com.huimv.receive.common.utils.ResultCode;
|
|
import com.huimv.receive.common.utils.ResultCode;
|
|
import com.huimv.receive.entity.*;
|
|
import com.huimv.receive.entity.*;
|
|
|
|
+import com.huimv.receive.entity.pojo.UserPagePojo;
|
|
import com.huimv.receive.entity.vo.UserAccountVo;
|
|
import com.huimv.receive.entity.vo.UserAccountVo;
|
|
import com.huimv.receive.entity.vo.UserAgeAndGender;
|
|
import com.huimv.receive.entity.vo.UserAgeAndGender;
|
|
import com.huimv.receive.entity.vo.UserJob;
|
|
import com.huimv.receive.entity.vo.UserJob;
|
|
@@ -54,14 +55,15 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
private SysAccountMultilevelMapper sysAccountMultilevelMapper;
|
|
private SysAccountMultilevelMapper sysAccountMultilevelMapper;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result pageAll(Map map) {
|
|
|
|
- int pageNum = (Integer)map.get("pageNum");
|
|
|
|
- int pageSize = (Integer)map.get("pageSize");
|
|
|
|
- String searchStr = (String)map.get("searchStr");
|
|
|
|
- String job = (String)map.get("job");
|
|
|
|
- String workLocation = (String)map.get("workLocation");
|
|
|
|
- String workLocationType =(String) map.get("workLocationType");
|
|
|
|
- String farmId = (String) map.get("farmId");
|
|
|
|
|
|
+ public Result pageAll(UserPagePojo userPagePojo) {
|
|
|
|
+ int pageNum = userPagePojo.getPageNum();
|
|
|
|
+ int pageSize = userPagePojo.getPageSize();
|
|
|
|
+ int job = userPagePojo.getJob();
|
|
|
|
+ int workLocationType = userPagePojo.getWorkLocationType();
|
|
|
|
+ String workLocation = userPagePojo.getWorkLocation();
|
|
|
|
+ String farmId = userPagePojo.getFarmId();
|
|
|
|
+ String searchStr = userPagePojo.getSearchStr();
|
|
|
|
+
|
|
if (checkFarm(farmId))
|
|
if (checkFarm(farmId))
|
|
return new Result(10001,"牧场信息为空",false);
|
|
return new Result(10001,"牧场信息为空",false);
|
|
|
|
|
|
@@ -91,14 +93,16 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result pageAccount(Map<String, Object> map) {
|
|
|
|
- int pageNum = (Integer)map.get("pageNum");
|
|
|
|
- int pageSize = (Integer)map.get("pageSize");
|
|
|
|
- String searchStr = (String)map.get("searchStr");
|
|
|
|
- String job = (String)map.get("job");
|
|
|
|
- String workLocation = (String)map.get("workLocation");
|
|
|
|
- String workLocationType = (String)map.get("workLocationType");
|
|
|
|
- String farmId = (String) map.get("farmId");
|
|
|
|
|
|
+ public Result pageAccount(UserPagePojo userPagePojo) {
|
|
|
|
+ int pageNum = userPagePojo.getPageNum();
|
|
|
|
+ int pageSize = userPagePojo.getPageSize();
|
|
|
|
+ int job = userPagePojo.getJob();
|
|
|
|
+ int workLocationType = userPagePojo.getWorkLocationType();
|
|
|
|
+ String workLocation = userPagePojo.getWorkLocation();
|
|
|
|
+ String farmId = userPagePojo.getFarmId();
|
|
|
|
+ String searchStr = userPagePojo.getSearchStr();
|
|
|
|
+
|
|
|
|
+
|
|
if (checkFarm(farmId))
|
|
if (checkFarm(farmId))
|
|
return new Result(10001,"牧场信息为空",false);
|
|
return new Result(10001,"牧场信息为空",false);
|
|
QueryWrapper<SysUser> wrapper = new QueryWrapper<>();
|
|
QueryWrapper<SysUser> wrapper = new QueryWrapper<>();
|