| | |
| | | maps.put("ksbm", "体检中心"); |
| | | maps.put("pagecount", 100); |
| | | maps.put("page", 1); |
| | | // AjaxResult results = service.getHISDataNew("Getexamreportinfo", maps); |
| | | |
| | | |
| | | LambdaQueryWrapper<HisApiConfig> lambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | lambdaQueryWrapper.eq(HisApiConfig::getApiMethod, "Getexamreportinfo"); |
| | |
| | | |
| | | |
| | | /*同步检查 his存储过程*/ |
| | | AjaxResult results = jcsqdService.getTjJcProByHisCall("体检中心", order.getCardId(), "''", 100, 1, "'1'"); |
| | | |
| | | String jctbfs = configService.selectConfigByKey("jctbfs"); |
| | | AjaxResult results =null; |
| | | if (jctbfs.equalsIgnoreCase("Y")){ |
| | | results = service.getHISDataNew("Getexamreportinfo", maps); |
| | | }else{ |
| | | results = jcsqdService.getTjJcProByHisCall("体检中心", order.getCardId(), "''", 100, 1, "'1'"); |
| | | } |
| | | |
| | | |
| | | DynamicDataSourceContextHolder.setDataSourceType(DataSourceType.MASTER.name()); |
| | | DynamicDataSourceContextHolder.clearDataSourceType(); |
| | |
| | | lambdaQueryWrapper.eq(HisApiConfig::getApiMethod, "Getexamreportinfo"); |
| | | HisApiConfig hisApiConfig = hisApiConfigService.getOne(lambdaQueryWrapper); |
| | | /*同步检查 his存储过程*/ |
| | | AjaxResult results = jcsqdService.getTjJcProByHisCall("体检中心", order.getCardId(), "''", 100, 1, "'1'"); |
| | | String jctbfs = configService.selectConfigByKey("jctbfs"); |
| | | AjaxResult results =null; |
| | | if (jctbfs.equalsIgnoreCase("Y")){ |
| | | results = service.getHISDataNew("Getexamreportinfo", maps); |
| | | }else{ |
| | | results = jcsqdService.getTjJcProByHisCall("体检中心", order.getCardId(), "''", 100, 1, "'1'"); |
| | | } |
| | | DynamicDataSourceContextHolder.clearDataSourceType(); |
| | | log.info("检查项目查询返回值: " + results.toString()); |
| | | if (Integer.parseInt(results.get("code").toString()) == 200) { |
| | |
| | | List<TjOrderDetail> dels = new ArrayList<>(); |
| | | for (TjOrderYcxm ycxm : entry.getValue()) { |
| | | TjOrderDetail detail=new TjOrderDetail(); |
| | | detail.setOrderDetailId(Long.valueOf(ycxm.getId())); |
| | | detail.setProName(ycxm.getJcxm()); |
| | | detail.setProResult(ycxm.getJcjg()); |
| | | detail.setStanId(ycxm.getCkfw()); |
| | |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | | @GetMapping ("/delzongjianyishengchakanyichangxiangmu") |
| | | @ApiOperation (value = "总检删除异常项目接口") |
| | | public AjaxResult delzongjianyishengchakanyichangxiangmu(@RequestParam String id) { |
| | | ycxmService.removeById(id); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | private List<Map<String, Object>> zongjianyishengchakanyichangxiangmu(String tjNumber) { |
| | | // asyncService.updateCheckType(tjNumber); |
| | | |