zjh
2 天以前 bd94f17a788da5fde253ce877a2d79de5d04df9c
ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java
@@ -82,6 +82,8 @@
    private AwsService awsService;
    @Autowired
    private ApiJcycpdgjzService apiJcycpdgjzService;
    @Autowired
    private TjOrderYcxmService ycxmService;
    /**
     * 获取参数配置列表
@@ -313,20 +315,26 @@
                jcycxmService.deletedByTjh(s);
                for (LtkjExamJcsqd jcsqd : jcsqdList) {
                    if(StringUtil.isNotBlank(jcsqd.getJgzt())){
                        String[] split = jcsqd.getJgzt().replaceAll("\n", "").split("。|;|;");
                        String regex = configService.selectConfigByKey("jcycxmzz");
                        if(StringUtil.isBlank(regex)) regex= "。|;|;|,|,";
                        String[] split = jcsqd.getJgzt().replaceAll("\n", "").split(regex);
//                        String[] split = jcsqd.getJgzt().replaceAll("\n", "").split("。|;|;");
                        for (String jg : split) {
                            boolean b = apiJcycpdgjz(jg);
                            if(!b){
                                TjJcycxm jcycxm=new TjJcycxm();
                                jcycxm.setTjh(s);
                                jcycxm.setYqid(yqbm);
                                String[] split1 = jcsqd.getJcxmid().split(";");
                                jcycxm.setProId(split1[0]);
                                jcycxm.setProName(jcsqd.getJcxmmc());
                                jcycxm.setCreateTime(new Date());
                                jcycxm.setJcjg(jg);
                                jcycxmService.save(jcycxm);
                            if(StringUtil.isNotBlank(jg)){
                                boolean b = apiJcycpdgjz(jg);
                                if(!b){
                                    TjJcycxm jcycxm=new TjJcycxm();
                                    jcycxm.setTjh(s);
                                    jcycxm.setYqid(yqbm);
                                    String[] split1 = jcsqd.getJcxmid().split(";");
                                    jcycxm.setProId(split1[0]);
                                    jcycxm.setProName(jcsqd.getJcxmmc());
                                    jcycxm.setCreateTime(new Date());
                                    jcycxm.setJcjg(jg);
                                    jcycxmService.save(jcycxm);
                                }
                            }
                  /*          if(StringUtil.isNotBlank(jg) && !jg.contains("未见异常")
                                    && !jg.contains("未见明显异常") && !jg.contains("未见占位") && !jg.contains("未见")
                                    && !jg.contains("未见明显")&& !jg.contains("正常")&& !jg.contains("双侧椎间孔无狭窄")&& !jg.contains("无殊")){
@@ -448,6 +456,7 @@
    public AjaxResult tjjcycxm(@ApiParam("体检号") @RequestParam(required = false)String tjh) {
        String yqbm = configService.selectConfigByKey("dqyyyqbm");
        if(StringUtil.isNotBlank(tjh)){
            ycxmService.delOrderYcXmJyByTjh(tjh);
            extracted(tjh, yqbm);
        }else {
            List<String> jc = orderService.getJianChaTjNum();
@@ -472,31 +481,20 @@
                    System.out.println("jcycxmzz值为"+regex);
                    String[] split = jcsqd.getJgzt().replaceAll("\n", "").split(regex);
                    for (String jg : split) {
                        boolean b = apiJcycpdgjz(jg);
                        if(!b){
                            TjJcycxm jcycxm=new TjJcycxm();
                            jcycxm.setTjh(s);
                            jcycxm.setYqid(yqbm);
                            String[] split1 = jcsqd.getJcxmid().split(";");
                            jcycxm.setProId(split1[0]);
                            jcycxm.setProName(jcsqd.getJcxmmc());
                            jcycxm.setCreateTime(new Date());
                            jcycxm.setJcjg(jg);
                            jcycxmService.save(jcycxm);
                        if(StringUtil.isNotBlank(jg)){
                            boolean b = apiJcycpdgjz(jg);
                            if(!b){
                                TjJcycxm jcycxm=new TjJcycxm();
                                jcycxm.setTjh(s);
                                jcycxm.setYqid(yqbm);
                                String[] split1 = jcsqd.getJcxmid().split(";");
                                jcycxm.setProId(split1[0]);
                                jcycxm.setProName(jcsqd.getJcxmmc());
                                jcycxm.setCreateTime(new Date());
                                jcycxm.setJcjg(jg);
                                jcycxmService.save(jcycxm);
                            }
                        }
               /*         if(StringUtil.isNotBlank(jg) && !jg.contains("未见异常")
                                && !jg.contains("未见明显异常") && !jg.matches("\\d+")  && !jg.contains("未见占位") && !jg.contains("未见")
                                && !jg.contains("未见明显")&& !jg.contains("正常")&& !jg.contains("双侧椎间孔无狭窄")&& !jg.contains("无殊")){
                            TjJcycxm jcycxm=new TjJcycxm();
                            jcycxm.setTjh(s);
                            jcycxm.setYqid(yqbm);
                            String[] split1 = jcsqd.getJcxmid().split(";");
                            jcycxm.setProId(split1[0]);
                            jcycxm.setProName(jcsqd.getJcxmmc());
                            jcycxm.setCreateTime(new Date());
                            jcycxm.setJcjg(jg);
                            jcycxmService.save(jcycxm);
                        }*/
                    }
                }
            }