| | |
| | | ResultBody listByMap = sysDoctorService.getListByMap(doctoerMap); |
| | | List<SysDoctor> sysDoctors = JSON.parseArray(JSON.toJSONString(listByMap.getData()), SysDoctor.class); |
| | | if (sysDoctors!=null&&sysDoctors.size()>0){ |
| | | List<DataNeed> dataNeedList=baseMapper.findHList(map); |
| | | return ResultBody.ok().data(dataNeedList); |
| | | Page<DataNeed> page = new Page<>(MapUtils.getInteger(map, "page"), MapUtils.getInteger(map, "limit")); |
| | | // List<DataNeed> dataNeedList=baseMapper.findHList(map); |
| | | List<DataNeed> list = baseMapper.findList(page, map); |
| | | PageResult<DataNeed> build = PageResult.<DataNeed>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | return ResultBody.ok().data(build); |
| | | }else { |
| | | return ResultBody.failed("非管理用户无权查看"); |
| | | } |