| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import com.kidgrow.common.constant.PayConstants; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.model.ResultBody; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询 支付状态是否为成功 |
| | | */ |
| | | @ApiOperation(value = "查询一个诊断的支付状态") |
| | | @GetMapping("/getDepartmentPay") |
| | | public ResultBody getDepartmentPayState(@RequestParam Long hospitalId, @RequestParam Long departmentId, @RequestParam String diaId) { |
| | | SaasClientPay model = saasClientPayService.findModelByObject(hospitalId,departmentId,diaId); |
| | | if (model != null) { |
| | | return ResultBody.ok().data(model.getPayStatus().equals(PayConstants.ORDER_PAY_SUCEESS)).msg("查询成功"); |
| | | } |
| | | return ResultBody.failed().data(false).msg("没有相关数据"); |
| | | } |
| | | /** |
| | | * 删除 |
| | | */ |