package com.ruoyi.web.controller.product;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.ruoyi.im.comm.Result;
|
import com.ruoyi.im.service.MedicalInsuranceAccountService;
|
import com.ruoyi.system.domain.UserPolicy;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.List;
|
|
@RestController
|
@RequestMapping("/MedicalInsuranceAccount")
|
public class MedicalInsuranceAccountController {
|
|
@Autowired
|
MedicalInsuranceAccountService medicalInsuranceAccountService;
|
|
/**
|
* 领取保险金
|
*/
|
@GetMapping("/getInsuranceBenefit")
|
public Result getInsuranceBenefit(@RequestParam(value = "account") String account) {
|
try {
|
return medicalInsuranceAccountService.getInsuranceBenefit(account);
|
}catch (Exception e){
|
e.printStackTrace();
|
return Result.error("购买失败!");
|
}
|
}
|
|
/**
|
* 查询领取状态
|
*/
|
@GetMapping("/getReceiveStatus")
|
public Result getReceiveStatus(@RequestParam(value = "account") String account) {
|
try {
|
return medicalInsuranceAccountService.getReceiveStatus(account);
|
}catch (Exception e){
|
e.printStackTrace();
|
return Result.error("购买失败!");
|
}
|
}
|
}
|