| | |
| | | } |
| | | |
| | | /** |
| | | * 根据编号查询单个 |
| | | * @url {ctx}/api/web/caseAssistApply/getById |
| | | * @param id 主键编号 |
| | | * @return Object |
| | | */ |
| | | @GetMapping("/getById") |
| | | public Object getById(@RequestParam(value = "id") String id) { |
| | | try { |
| | | return ReturnSucUtils.getRepInfo(service.getById(id)); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据主键单个 |
| | | * @url {ctx}/api/web/caseAssistApply/deleteById |
| | | * @param id 主键编号 |
| | |
| | | |
| | | /** |
| | | * 根据案件编号查询联合处置申请 |
| | | * @url {ctx}/api/web/caseAssistApply/getByCaseId |
| | | * @param caseId 主键编号 |
| | | * @url {ctx}/api/web/caseAssistApply/getById |
| | | * @param id 主键编号 |
| | | * @return Object |
| | | */ |
| | | @GetMapping("/getByCaseId") |
| | | public Object getByCaseId(@RequestParam(value = "caseId") String caseId) { |
| | | @GetMapping("/getById") |
| | | public Object getByCaseId(@RequestParam(value = "id") String id) { |
| | | try { |
| | | return ReturnSucUtils.getRepInfo(service.caseAssistApplyByCaseId(caseId)); |
| | | return ReturnSucUtils.getRepInfo(service.caseAssistApplyById(id)); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |