| | |
| | | |
| | | @Autowired |
| | | ProjectInfoService projectInfoService; |
| | | |
| | | /** |
| | | * 获取项目列表(根据创建人) |
| | | * |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/list-project-by-created/{version}", method = RequestMethod.POST) |
| | | @ApiVersion(1) |
| | | public String listProjectByCreated(HttpServletRequest request) { |
| | | try { |
| | | // 获取参数 |
| | | FieldSetEntity fse = BaseUtil.getFieldSetEntity(request); |
| | | |
| | | //判断分页参数是否为空 |
| | | 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.listProjectByCreated(fse.getInteger(Cmnconst.CPAGE), fse.getInteger(Cmnconst.PAGESIZE))); |
| | | } catch (BaseException e) { |
| | | e.printStackTrace(); |
| | | return this.error(e); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return this.error(SystemCode.PROJECT_INFO_OPERATE_ERROR.getValue(), |
| | | SystemCode.PROJECT_INFO_OPERATE_ERROR.getText() + e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取模板项目分项 |