zjh
2025-04-22 22efacd7994f8ea9a7ef8485575ade9729a0e5a2
ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjXdPictureController.java
@@ -16,6 +16,7 @@
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;
@@ -68,6 +69,8 @@
    private LtkjExamJcbgdService jcbgdService;
    @Resource
    private LtkjExamJcsqdService jcsqdService;
    @Autowired
    private TjJcycxmService jcycxmService;
    /**
     * 查询体检心电图管理列表
     */
@@ -366,6 +369,7 @@
            }
            return AjaxResult.error("暂无体检记录");
        } catch (Exception e) {
            e.printStackTrace();
            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
            log.error("提交影像检查骨密度心电图结果接口"+e.getMessage());
            throw new RuntimeException("提交影像检查骨密度心电图结果接口");
@@ -397,8 +401,34 @@
            jcbgd.setLx("1");
            jcbgd.setCreateTime(date);
            jcbgdService.save(jcbgd);
            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);
        }
    }