| | |
| | | @Autowired |
| | | private InternalAuditCarryService carryService; |
| | | |
| | | @Autowired |
| | | private ProjectResearchService researchService; |
| | | |
| | | @Autowired |
| | | private ProjectDeliveryService deliveryService; |
| | | |
| | | @Autowired |
| | | private AnnualReportService annualReportService; |
| | | |
| | | |
| | | @Autowired |
| | | private CustomerService customerService; |
| | |
| | | return customerService.deletedCustomer(customerId); |
| | | } |
| | | |
| | | /** |
| | | * 在研项目 |
| | | * @param projectResearch |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "在研项目列表(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | }) |
| | | @GetMapping("/research/list") |
| | | public CommonResult listResearch(ProjectResearch projectResearch){ |
| | | return CommonResult.success(researchService.selectResearchList(projectResearch)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 在研项目新增 |
| | | * @param projectResearch |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "在研项目新增") |
| | | @PostMapping("/research/insert") |
| | | public CommonResult insertResearch(@RequestBody ProjectResearch projectResearch){ |
| | | return researchService.insertResearch(projectResearch); |
| | | } |
| | | |
| | | /** |
| | | * 在研项目修改 |
| | | * @param projectResearch |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "在研项目修改") |
| | | @PostMapping("/research/update") |
| | | public CommonResult updateResearch(@RequestBody ProjectResearch projectResearch){ |
| | | return researchService.updateResearch(projectResearch); |
| | | } |
| | | |
| | | /** |
| | | * 在研项目删除 |
| | | * @param researchId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "在研项目删除") |
| | | @GetMapping("/research/deleted") |
| | | public CommonResult deletedResearch(@RequestParam("researchId") Integer researchId){ |
| | | return researchService.deletedResearch(researchId); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 交付项目 |
| | | * @param projectDelivery |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "交付项目列表(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | }) |
| | | @GetMapping("/delivery/list") |
| | | public CommonResult listDelivery(ProjectDelivery projectDelivery){ |
| | | return CommonResult.success(deliveryService.selectDeliveryList(projectDelivery)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | *交付项目新增 |
| | | * @param projectDelivery |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "交付项目新增") |
| | | @PostMapping("/delivery/insert") |
| | | public CommonResult insertDelivery(@RequestBody ProjectDelivery projectDelivery){ |
| | | return deliveryService.insertDelivery(projectDelivery); |
| | | } |
| | | |
| | | /** |
| | | * 交付项目修改 |
| | | * @param projectDelivery |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "交付项目修改") |
| | | @PostMapping("/delivery/update") |
| | | public CommonResult updateDelivery(@RequestBody ProjectDelivery projectDelivery){ |
| | | return deliveryService.updateDelivery(projectDelivery); |
| | | } |
| | | |
| | | /** |
| | | * 交付项目删除 |
| | | * @param deliveryId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "交付项目删除") |
| | | @GetMapping("/delivery/deleted") |
| | | public CommonResult deletedDelivery(@RequestParam("deliveryId") Integer deliveryId){ |
| | | return deliveryService.deletedDelivery(deliveryId); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 年度报告 |
| | | * @param annualReport |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "年度报告列表(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | }) |
| | | @GetMapping("/annual/list") |
| | | public CommonResult listAnnual(AnnualReport annualReport){ |
| | | return CommonResult.success(annualReportService.selectAnnualList(annualReport)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | *年度报告新增 |
| | | * @param annualReport |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "年度报告新增") |
| | | @PostMapping("/annual/insert") |
| | | public CommonResult insertAnnual(@RequestBody AnnualReport annualReport){ |
| | | return annualReportService.insertAnnual(annualReport); |
| | | } |
| | | |
| | | /** |
| | | * 年度报告修改 |
| | | * @param annualReport |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "年度报告修改") |
| | | @PostMapping("/annual/update") |
| | | public CommonResult updateAnnual(@RequestBody AnnualReport annualReport){ |
| | | return annualReportService.updateAnnual(annualReport); |
| | | } |
| | | |
| | | /** |
| | | * 年度报告删除 |
| | | * @param annualId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "年度报告删除") |
| | | @GetMapping("/annual/deleted") |
| | | public CommonResult deletedAnnual(@RequestParam("annualId") Integer annualId){ |
| | | return annualReportService.deletedAnnual(annualId); |
| | | } |
| | | |
| | | |
| | | |
| | | |