| | |
| | | } |
| | | } |
| | | /** |
| | | * 获取项目分项材料 |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/list-material-v/{version}", method = RequestMethod.POST) |
| | | @ApiVersion(1) |
| | | public String listMaterialV(HttpServletRequest request) { |
| | | try { |
| | | //获取参数 |
| | | FieldSetEntity fse = BaseUtil.getFieldSetEntity(request); |
| | | |
| | | //判断uuid是否为空 |
| | | if (BaseUtil.strIsNull(fse.getString(Cmnconst.UUID))) { |
| | | return this.error(SystemCode.SYSTEM_FORM_COUNT.getValue(), SystemCode.SYSTEM_FORM_COUNT.getText()); |
| | | } |
| | | |
| | | //判断分页参数是否为空 |
| | | if (BaseUtil.strIsNull(fse.getString(CoreConst.CPAGE)) || BaseUtil.strIsNull(fse.getString(CoreConst.PAGESIZE))) { |
| | | return this.error(SystemCode.SYSTEM_CPAGES_NOT_NULL.getValue(), SystemCode.SYSTEM_CPAGES_NOT_NULL.getText()); |
| | | } |
| | | return OK_List(projectInfoService.listMaterialV(fse.getString(Cmnconst.UUID), fse.getInteger(CoreConst.CPAGE), fse.getInteger(CoreConst.PAGESIZE))); |
| | | } catch (BaseException e) { |
| | | e.printStackTrace(); |
| | | return this.error(e); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return this.error(SystemCode.PROJECT_MAMAGERENT_ITEMIZE_GENERAL_ERROR.getValue(), |
| | | SystemCode.PROJECT_MAMAGERENT_ITEMIZE_GENERAL_ERROR.getText() + e.getMessage()); |
| | | } |
| | | } |
| | | /** |
| | | * 根据uuid获取项目分项树结构详情 |
| | | * @param request |
| | | * @return |