| | |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections.MapUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.BindingResult; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @ApiOperation(value = "H端列表,需要医院和科室id") |
| | | @GetMapping("/hlist") |
| | | public ResultBody list(@RequestParam Map<String, Object> params, @LoginUser(isFull = true) SysUser sysUser) { |
| | | if (params.size() == 0) { |
| | | params.put("page", 1); |
| | | params.put("limit", 10); |
| | | } |
| | | if(MapUtils.getString(params,"page")==null){ |
| | | params.put("page", 1); |
| | | }if(MapUtils.getString(params,"limit")==null){ |
| | | params.put("limit", 10); |
| | | } |
| | | return dataNeedService.FindAllByHId(params, sysUser); |
| | | } |
| | | |