| | |
| | | private WorkInjuryDeclarationService workInjuryDeclarationService; |
| | | |
| | | /** |
| | | * 工商报告列表 |
| | | * 工伤报告列表 |
| | | */ |
| | | @RequestMapping(value = "/page/list" ,method = RequestMethod.POST) |
| | | private ResultVO<List<WorkInjuryDeclarationPageRespDTO>> list (@RequestBody PageQuery<WorkInjuryDeclarationQuery> pageQuery){ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 工商报告新增 |
| | | * 工伤报告新增 |
| | | */ |
| | | @RequestMapping(value = "/add",method = RequestMethod.POST) |
| | | public ResultVO addworkInjuryDeclaration(Authentication authentication, @RequestBody WorkInjuryDeclarationReqDTO workInjuryDeclarationReqDTO) { |
| | | public ResultVO addWorkInjuryDeclaration(Authentication authentication, @RequestBody WorkInjuryDeclarationReqDTO workInjuryDeclarationReqDTO) { |
| | | ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal(); |
| | | return workInjuryDeclarationService.addWorkInjuryDeclaration(currentUser.getUid(), workInjuryDeclarationReqDTO); |
| | | } |
| | | |
| | | /** |
| | | * 工商报告详情 |
| | | * 工伤报告详情 |
| | | */ |
| | | @RequestMapping(value = "/info/{id}",method = RequestMethod.GET) |
| | | public ResultVO<WorkInjuryDeclarationDetailRespDTO> getworkInjuryDeclarationById(@PathVariable("id")Long id){ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 工商报告修改 |
| | | * 工伤报告修改 |
| | | */ |
| | | @RequestMapping(value = "/update",method = RequestMethod.POST) |
| | | public ResultVO updateworkInjuryDeclaration(Authentication authentication, @RequestBody WorkInjuryDeclarationReqDTO workInjuryDeclarationReqDTO) { |
| | | public ResultVO updateWorkInjuryDeclaration(Authentication authentication, @RequestBody WorkInjuryDeclarationReqDTO workInjuryDeclarationReqDTO) { |
| | | ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal(); |
| | | return workInjuryDeclarationService.updateWorkInjuryDeclaration(currentUser.getUid(), workInjuryDeclarationReqDTO); |
| | | } |
| | | |
| | | /** |
| | | * 工商报告删除/批量删除 |
| | | * 工伤报告删除/批量删除 |
| | | */ |
| | | @RequestMapping(value = "/batchDelete/{ids}",method = RequestMethod.GET) |
| | | public ResultVO batchDeleteworkInjuryDeclaration(@PathVariable("ids")String ids){ |
| | | @RequestMapping(value = "/batchDelete",method = RequestMethod.POST) |
| | | public ResultVO batchDeleteWorkInjuryDeclaration(@RequestBody Long[] ids){ |
| | | return workInjuryDeclarationService.batchDeleteWorkInjuryDeclaration(ids); |
| | | } |
| | | |