| | |
| | | @PostMapping("/accept") |
| | | public Object accept(@RequestBody AcceptTaskDTO acceptTaskDTO, @CurrentUser String userId) { |
| | | try { |
| | | service.webAccept(acceptTaskDTO, userId); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | return ReturnSucUtils.getRepInfo(service.webAccept(acceptTaskDTO, userId)); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * web端-申请记录 |
| | | * @url {ctx}/api/web/caseTask/listMyApplyRecord |
| | | * @return |
| | | */ |
| | | @GetMapping("/listMyApplyRecord") |
| | | public Object listMyApplyRecord(@RequestParam(value = "caseId") String caseId) { |
| | | try { |
| | | return ReturnSucUtils.getRepInfo(service.listMyApplyRecord(caseId)); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | | } |