| | |
| | | |
| | | /** |
| | | * 分页查询卷 |
| | | * @param pageSize 页数 |
| | | * @param pageIndex 第几页 |
| | | * @param pageSize 第几页 |
| | | * @param pageIndex 页数 |
| | | * @return 分页数据 |
| | | */ |
| | | @GetMapping("/getPvolumesPage") |
| | | public BaseResult getPvolumesPage(short pageSize, short pageIndex){ |
| | | public BaseResult getPvolumesPage(Integer pageSize, Integer pageIndex){ |
| | | try { |
| | | return osPvolumesServiceI.getPvolumesPage(pageSize, pageIndex); |
| | | if(pageIndex == null){ |
| | | pageIndex = 1000 ; |
| | | } |
| | | if(pageSize == null){ |
| | | pageSize = 0; |
| | | } |
| | | return osPvolumesServiceI.getPvolumesPage(pageSize.shortValue(), pageIndex.shortValue()); |
| | | } catch (PLException e) { |
| | | BaseResult objectBaseResult = new BaseResult<>(); |
| | | objectBaseResult.setCode(Integer.parseInt(e.code)); |
| | |
| | | * @param dto 卷的传输信息 |
| | | * @return 保存结果 |
| | | */ |
| | | @GetMapping("/savePvolume") |
| | | @PostMapping("/savePvolume") |
| | | public BaseResult savePvolume(@RequestBody OsPvolumeDTO dto){ |
| | | try { |
| | | return osPvolumesServiceI.savePvolume(dto); |
| | |
| | | * @param dto 卷的传输信息 |
| | | * @return 修改结果 |
| | | */ |
| | | @GetMapping("/updatePvolume") |
| | | @PostMapping("/updatePvolume") |
| | | public BaseResult updatePvolume(@RequestBody OsPvolumeDTO dto){ |
| | | try { |
| | | return osPvolumesServiceI.updatePvolume(dto); |
| | |
| | | return objectBaseResult; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除卷 |
| | | * @param ids 主键集合 |
| | | * @return 删除结果 |
| | | */ |
| | | @DeleteMapping("/deletePvolume") |
| | | public BaseResult deletePvolume(String ids){ |
| | | try { |
| | | return osPvolumesServiceI.deletePvolume(ids); |
| | | } catch (PLException e) { |
| | | BaseResult objectBaseResult = new BaseResult<>(); |
| | | objectBaseResult.setCode(Integer.parseInt(e.code)); |
| | | objectBaseResult.setMsg(Arrays.toString(e.messages)); |
| | | return objectBaseResult; |
| | | } |
| | | } |
| | | } |