| | |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections.MapUtils; |
| | | import org.apache.commons.collections.map.HashedMap; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.BindingResult; |
| | | import org.springframework.validation.ObjectError; |
| | |
| | | return ResultBody.failed().data(false).msg("没有相关数据"); |
| | | } |
| | | /** |
| | | * 查询 支付状态是否为成功 |
| | | */ |
| | | @ApiOperation(value = "查询多个诊断的支付状态") |
| | | @PostMapping("/getDepartmentPayStateList") |
| | | public List<Map<String,Object>> getDepartmentPayStateList(@RequestBody Map<String,Object> map) { |
| | | List<Map<String,Object>> list=new ArrayList<>(); |
| | | Long hospitalId = MapUtils.getLong(map, "hospitalId"); |
| | | Long departmentId = MapUtils.getLong(map, "departmentId"); |
| | | List<String> diaIds = (List<String>) map.get("diaIds"); |
| | | if(hospitalId==null||departmentId==null||diaIds==null||diaIds.size()<=0){ |
| | | return list; |
| | | } |
| | | if (diaIds!=null&&diaIds.size()>0) { |
| | | for (String diaId : diaIds) { |
| | | SaasClientPay model = saasClientPayService.findModelByObject(hospitalId,departmentId,diaId); |
| | | Map<String,Object> objectMap=new HashedMap(); |
| | | objectMap.put("id",diaId); |
| | | if(model!=null){ |
| | | objectMap.put("flag",model.getPayStatus().equals(PayConstants.ORDER_PAY_SUCEESS)); |
| | | }else { |
| | | objectMap.put("flag",false); |
| | | } |
| | | list.add(objectMap); |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |