| | |
| | | import com.ltkj.hosp.domain.*; |
| | | import com.ltkj.hosp.service.*; |
| | | import com.ltkj.hosp.sqlDomain.LtkjExamJcbgd; |
| | | import com.ltkj.hosp.sqlDomain.LtkjExamJcsqd; |
| | | import com.ltkj.hosp.vodomain.CsProVo; |
| | | import com.ltkj.system.service.ISysConfigService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | private LtkjExamJcbgdService jcbgdService; |
| | | @Resource |
| | | private LtkjExamJcsqdService jcsqdService; |
| | | @Autowired |
| | | private TjJcycxmService jcycxmService; |
| | | /** |
| | | * 查询体检心电图管理列表 |
| | | */ |
| | |
| | | } |
| | | return AjaxResult.error("暂无体检记录"); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | log.error("提交影像检查骨密度心电图结果接口"+e.getMessage()); |
| | | throw new RuntimeException("提交影像检查骨密度心电图结果接口"); |
| | |
| | | jcbgd.setLx("1"); |
| | | jcbgd.setCreateTime(date); |
| | | jcbgdService.save(jcbgd); |
| | | jcsqdService.deletedLtkjJcsqdByTjhandtmh(xdtgmdjg.getCardId()); |
| | | jcsqdService.deletedLtkjJcsqdByTjhandtmh1(xdtgmdjg.getCardId()); |
| | | jcsqdService.saveLtkjExamJcsqdxdt(xdtgmdjg.getCardId()); |
| | | |
| | | LambdaQueryWrapper<TjJcycxm> wq=new LambdaQueryWrapper<>(); |
| | | wq.eq(TjJcycxm::getTjh,xdtgmdjg.getTjh()); |
| | | wq.eq(TjJcycxm::getProId,xdtgmdjg.getProId()); |
| | | jcycxmService.remove(wq); |
| | | if(StringUtil.isNotBlank(xdtgmdjg.getJcjl())){ |
| | | String[] split = xdtgmdjg.getJcjl().replaceAll("\n", "").split("。|;|;|,|,"); |
| | | for (String jg : split) { |
| | | if(StringUtil.isNotBlank(jg) && !jg.contains("未见异常") |
| | | && !jg.contains("未见明显异常") && !jg.contains("未见占位") && !jg.contains("未见") |
| | | && !jg.contains("未见明显")&& !jg.contains("正常")&& !jg.contains("双侧椎间孔无狭窄")){ |
| | | TjJcycxm jcycxm=new TjJcycxm(); |
| | | jcycxm.setTjh(xdtgmdjg.getTjh()); |
| | | jcycxm.setYqid(""); |
| | | jcycxm.setProId(xdtgmdjg.getProId()); |
| | | jcycxm.setProName(xdtgmdjg.getProName()); |
| | | jcycxm.setCreateTime(new Date()); |
| | | jcycxm.setJcjg(jg); |
| | | jcycxmService.save(jcycxm); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |