Browse Source

代码修改

LAPTOP-KB9HII50\70708 1 year ago
parent
commit
019ff43eb1

+ 2 - 2
business/base-service/src/main/java/com/yihu/jw/article/service/BaseMenuManageService.java

@ -767,7 +767,7 @@ public class BaseMenuManageService {
                    menuIds.add(menuDictDO.getId());
                    menuId = menuId+","+menuDictDO.getId()+",";
                }
                menuId = menuId.substring(0,menuId.length()-1);
                menuId = menuId.substring(1,menuId.length()-1);
            }
        }
@ -822,7 +822,7 @@ public class BaseMenuManageService {
                "  recommend_doctor_name from wlyy_knowledge_article_dict a where a.del=1 and " +
                " a.category_second IN ( '"+menuId.replaceAll(",","','")+"' ) and a.release_status=1  ";
        if(StringUtils.isNotBlank(title)){
            sql += " and a.title like %"+title+"%";
            sql += " and a.title like '%"+title+"%'";
        }
        sql += "  order by  a.release_time desc,a.create_time desc limit "+(page-1)*pageSize+","+pageSize;
        list = jdbcTemplate.query(sql,new BeanPropertyRowMapper<>(KnowledgeArticleDictDO.class));

+ 1 - 1
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/endpoint/patient/PatientNoLoginEndPoint.java

@ -1079,7 +1079,7 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
    @GetMapping(value = "setXcxQrCode")
    @ApiOperation(value = "生成医生小程序二维码")
    public Envelop setXcxQrCode(@ApiParam(name = "doctor", value = "doctor", required = false)
                             @RequestParam(value = "doctor", required = true)String doctor) throws Exception{
                             @RequestParam(value = "doctor", required = false)String doctor) throws Exception{
        try {
            String uri = qrcodeService.makeSpecialistXcxQrcode(doctor);

+ 2 - 5
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/service/consult/QrcodeService.java

@ -210,7 +210,6 @@ public class QrcodeService {
            for (BaseDoctorDO doctorDO : doctors) {
                if (null!=doctorDO){
                    if (null==doctorDO.getAppletQrCode()||"".equals(doctorDO.getAppletQrCode())){
                        // 二维码图片文件名
                        String fileName = doctorDO.getId()+".png";
                /*String path = QrcodeService.class.getResource("/").getPath().replace("/WEB-INF/classes/", "")
@ -223,14 +222,12 @@ public class QrcodeService {
                        System.out.println("uri"+uri);
                        doctorDO.setAppletQrCode(uri);
                        baseDoctorDao.save(doctorDO);
                        return uri;
                    }else {
                        return doctorDO.getAppletQrCode();
                    }
                } else {
                    throw new Exception("找不到对应医生信息!");
                    System.out.println("找不到对应医生信息!");
                }
            }
            System.out.println("批量生成完成!");
        }
        return null;
    }