| | |
| | | /** |
| | | * web端-签收 |
| | | * @url {ctx}/api/web/caseTask/sign |
| | | * @param signTaskDTO 签收表单 |
| | | * @param signTaskDTOList 签收表单数组 |
| | | * @return Object |
| | | */ |
| | | @PostMapping("/sign") |
| | | public Object sign(@RequestBody SignTaskDTO signTaskDTO, @CurrentUser String userId) { |
| | | public Object sign(@RequestBody List<SignTaskDTO> signTaskDTOList, @CurrentUser String userId) { |
| | | try { |
| | | service.webSign(signTaskDTO, userId); |
| | | service.webSign(signTaskDTOList, userId); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | |
| | | @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(); |
| | | } |
| | |
| | | @PostMapping("/returnApply") |
| | | public Object returnApply(@RequestBody CaseReturn caseReturn, @CurrentUser String userId) { |
| | | try { |
| | | service.webReturnApply(caseReturn, userId); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | |
| | | @PostMapping("/returnAudit") |
| | | public Object returnAudit(@RequestBody CaseReturn caseReturn, @CurrentUser String userId) { |
| | | try { |
| | | service.webReturnAudit(caseReturn, userId); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | |
| | | @PostMapping("/appearApply") |
| | | public Object appearApply(@RequestBody CaseAppear caseAppear, @CurrentUser String userId) { |
| | | try { |
| | | service.webAppearApply(caseAppear, userId); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | |
| | | @PostMapping("/appearAudit") |
| | | public Object appearAudit(@RequestBody CaseAppear caseAppear, @CurrentUser String userId) { |
| | | try { |
| | | service.webAppearAudit(caseAppear, userId); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | } 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(); |
| | | } |
| | | } |
| | | } |