| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.config.MyProps; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.ProjectArchiveManage; |
| | |
| | | private ProjectArchiveManageService archiveManageService; |
| | | |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(value = "项目过程管理-查询所有") |
| | | public Response<List<ProjectManage>> searchAll() { |
| | | |
| | | return service.searchAll(); |
| | | } |
| | | |
| | | |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "项目过程管理",value = "项目过程管理-条件查询") |
| | | public Response<List<ProjectManage>> searchByCondition(@ApiParam(value = "申报日期 格式 2021/01/28",required = true) @RequestParam Date proCreatedate, |
| | | @ApiParam(value = "项目类型",required = true)@RequestParam String proSort, |
| | | @ApiParam(value = "项目状态",required = true)@RequestParam int proState, |
| | | @ApiParam(value = "项目编号",required = true)@RequestParam String proNum) { |
| | | ProjectManage projectManage = new ProjectManage(); |
| | | projectManage.setProCreatedate(proCreatedate); |
| | | projectManage.setProSort(proSort); |
| | | projectManage.setProState(proState); |
| | | projectManage.setProNum(proNum); |
| | | return service.searchByCondition(projectManage); |
| | | @PostMapping("progressByCondition") |
| | | @ApiOperation(notes = "项目过程管理", value = "项目过程管理-查询分页-根据筛选条件") |
| | | public Response<PageInfo<ProjectManage>> searchByCondition(@RequestParam int pageNum, @RequestParam int pageSize, @RequestBody ProjectManage projectManage) { |
| | | return service.searchByCondition(pageNum, pageSize, projectManage); |
| | | } |
| | | |
| | | @PostMapping("add") |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @GetMapping("managesState") |
| | | @ApiOperation(notes = "", value = "项目管理-己确认/未确认阶段查询") |
| | | public Response<Object> searchManageStateByCondition(@ApiParam(value = "项目编号", required = true) @RequestParam String proNum, |
| | |
| | | |
| | | } |
| | | |
| | | @Delete("delDoc") |
| | | @ApiOperation(notes = "项目过程管理-项目管理-己确认阶段",value = "文档材料删除") |
| | | @DeleteMapping("delDoc") |
| | | @ApiOperation(notes = "项目过程管理-项目管理",value = "文档材料删除") |
| | | public Response delDocumentation(@ApiParam(value = "项目编号", required = true) @RequestParam String proNum, |
| | | @ApiParam(value = "项目名称代码", required = true) @RequestParam String proNameCode, |
| | | @ApiParam(value = "文档路径", required = true) @RequestParam String proFilePath){ |
| | |
| | | return archiveManageService.delDocumentation(projectArchiveManage); |
| | | } |
| | | |
| | | @GetMapping("archiveAll") |
| | | @ApiOperation(value = "项目归档管理-查询所有") |
| | | public Response<List<ProjectManage>> searchArchiveAll() { |
| | | |
| | | return archiveManageService.searchArchiveAll(); |
| | | } |
| | | @GetMapping("archiveByCondition") |
| | | @ApiOperation(value = "项目归档管理-条件查询") |
| | | public Response searchArchiveByCondition(@ApiParam(value = "开始日期 格式 2021/03/27",required = true) @RequestParam Date proExecutionDate, |
| | | @ApiParam(value = "归档日期 格式 2021/03/27",required = true)@RequestParam Date proArchiveDate, |
| | | @ApiParam(value = "项目类型",required = true)@RequestParam String proSort, |
| | | @ApiParam(value = "项目编号",required = true)@RequestParam String proNum) { |
| | | @PostMapping("archiveByCondition") |
| | | @ApiOperation(value = "项目归档管理-查询分页-根据筛选条件") |
| | | public Response<PageInfo<ProjectManage>> searchArchiveByCondition(@RequestParam int pageNum, @RequestParam int pageSize, @RequestBody ProjectManage projectManage) { |
| | | |
| | | ProjectManage pm = new ProjectManage(); |
| | | pm.setProExecutionDate(proExecutionDate); |
| | | pm.setProArchiveDate(proArchiveDate); |
| | | pm.setProSort(proSort); |
| | | pm.setProNum(proNum); |
| | | |
| | | return archiveManageService.searchArchiveByCondition(pm); |
| | | return archiveManageService.searchArchiveByCondition(pageNum,pageSize,projectManage); |
| | | } |
| | | |
| | | @GetMapping("archiveProjectInfo") |