| | |
| | | * 领取保险金 |
| | | */ |
| | | @GetMapping("/getInsuranceBenefit") |
| | | public Result getInsuranceBenefit(@RequestParam(value = "id") Integer id) { |
| | | public Result getInsuranceBenefit(@RequestParam(value = "account") String account) { |
| | | try { |
| | | return medicalInsuranceAccountService.getInsuranceBenefit(id); |
| | | return medicalInsuranceAccountService.getInsuranceBenefit(account); |
| | | }catch (Exception e){ |
| | | e.getMessage(); |
| | | e.printStackTrace(); |
| | | return Result.error("购买失败!"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 领取保险金 |
| | | * 查询领取状态 |
| | | */ |
| | | @GetMapping("/getReceiveStatus") |
| | | public Result getReceiveStatus(@RequestParam(value = "userId") Integer userId) { |
| | | public Result getReceiveStatus(@RequestParam(value = "account") String account) { |
| | | try { |
| | | return medicalInsuranceAccountService.getReceiveStatus(userId); |
| | | return medicalInsuranceAccountService.getReceiveStatus(account); |
| | | }catch (Exception e){ |
| | | e.getMessage(); |
| | | return Result.error("购买失败!"); |
| | | e.printStackTrace(); |
| | | return Result.error("获取失败!"); |
| | | } |
| | | } |
| | | } |