浏览代码

Merge branch 'dev' of http://192.168.1.220:10080/Amoy2/wlyy2.0 into dev

wangjun 4 年之前
父节点
当前提交
d5885a2c58

+ 1 - 1
business/base-service/src/main/java/com/yihu/jw/file_upload/FileUploadService.java

@ -511,7 +511,7 @@ public class FileUploadService {
        URL url = new URL(downloadFilePath);
        URL url = new URL(downloadFilePath);
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        //设置超时间为3秒
        //设置超时间为3秒
        conn.setConnectTimeout(3 * 1000);
        conn.setConnectTimeout(180 * 1000);
        //防止屏蔽程序抓取而返回403错误
        //防止屏蔽程序抓取而返回403错误
        conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)");
        conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)");
        //得到输入流
        //得到输入流

+ 20 - 13
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/PrescriptionService.java

@ -9569,23 +9569,30 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
        }else {
        }else {
            BaseDoctorDO doctorDO = baseDoctorDao.findByIdcardAndId(idcard);
            BaseDoctorDO doctorDO = baseDoctorDao.findByIdcardAndId(idcard);
            if (price==-1){
            if (price==-1){
                if (type==1){
                    if (StringUtils.isNoneBlank(doctorDO.getOutpatientType())) {
                        if (doctorDO.getOutpatientType().contains("zj")) {
                            doctorDO.getOutpatientType().replace(",zj", "");
                if (doctorDO!=null){
                    if (type==1){
                        if (StringUtils.isNoneBlank(doctorDO.getOutpatientType())) {
                            if (doctorDO.getOutpatientType().contains("zj")) {
                                doctorDO.getOutpatientType().replace(",zj", "");
                            }
                        }else {
                            doctorDO.setOutpatientType("zj");
                        }
                        }
                    }else {
                        doctorDO.setOutpatientType("zj");
                    }
                }else if (type==3){
                    if (StringUtils.isNoneBlank(doctorDO.getOutpatientType())) {
                        if (doctorDO.getOutpatientType().contains("zj")) {
                            doctorDO.getOutpatientType().replace(",zj", "");
                    }else if (type==3){
                        if (StringUtils.isNoneBlank(doctorDO.getOutpatientType())) {
                            if (doctorDO.getOutpatientType().contains("zj")) {
                                doctorDO.getOutpatientType().replace(",zj", "");
                            }
                        }else {
                            doctorDO.setOutpatientType("zj");
                        }
                        }
                    }else {
                        doctorDO.setOutpatientType("zj");
                    }
                }else {
                    if (doctorDO==null){
                        return "找不到医生信息!";
                    }
                    }
                }
                }
            }else {
            }else {
                if (doctorDO!=null){
                if (doctorDO!=null){
                    if (!StringUtils.isNoneBlank(doctorDO.getYktDoctorId())){
                    if (!StringUtils.isNoneBlank(doctorDO.getYktDoctorId())){