Browse Source

代码修改

liubing 4 năm trước cách đây
mục cha
commit
458533b2f2

+ 5 - 4
svr/svr-door-serivce/src/main/java/com/yihu/jw/door/service/WlyyDoorPrescriptionService.java

@ -267,10 +267,11 @@ public class WlyyDoorPrescriptionService  extends BaseJpaService<WlyyDoorPrescri
        BasePatientDO patient = patientDao.findById(orderDO.getPatient());
        String first = "key1,您好!请授权电子健康卡";//·
        first = first.replace("key1", orderDO.getPatientName());
//        json.put("orderId", orderDO.getId());
//        json.put("openId", patient.getOpenid()());
//        json.put("authorizeImage", orderDO.getAuthorizeImage());
        messageUtil.putTemplateWxMessage(wxId,"template_process_feedback","authorize",patient.getOpenid(),first,null,DateUtil.dateToStrShort(new Date()));
        JSONObject json = new JSONObject();
        json.put("orderId", orderDO.getId());
        json.put("openId", patient.getOpenid());
        json.put("authorizeImage", orderDO.getAuthorizeImage());
        messageUtil.putTemplateWxMessage(wxId,"template_process_feedback","authorize",patient.getOpenid(),first,null,null,34,json,DateUtil.dateToStrShort(new Date()));
/*        Patient patient = patientDao.findByCode(orderDO.getPatient());//·
        //发送微信模板消息

+ 3 - 0
svr/svr-door-serivce/src/main/java/com/yihu/jw/door/util/MessageUtil.java

@ -177,6 +177,9 @@ public class MessageUtil {
                newConfig.setKeyword2("服务项目变更确认");
                //url1 + json.getString("url")+"?openid=" + openid + "&consult=" + json.getString("consult") + "&status=" + json.getInt("status")
            }
            if(type==34){
                //temp.setUrl(url + json.getString("url") + "?openid=" + openid + "&orderId=" + json.get("orderId")+ "&authorizeImage=" + json.getString("authorizeImage"));
            }
            if (type==19){
//                String urlStr= newConfig.getUrl();
//                boolean status = urlStr.contains("openid=");