|  | @ -13,6 +13,7 @@ import com.yihu.jw.hospital.prescription.service.entrance.XzzxEntranceService;
 | 
	
		
			
				|  |  | import com.yihu.jw.org.dao.BaseOrgDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.patient.dao.BasePatientDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.iot.common.UploadVO;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.MixEnvelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.ObjEnvelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.http.HttpClientUtil;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.wechat.wxhttp.HttpUtil;
 | 
	
	
		
			
				|  | @ -357,21 +358,31 @@ public class QrcodeService {
 | 
	
		
			
				|  |  |         com.alibaba.fastjson.JSONObject jsonObject = com.alibaba.fastjson.JSONObject.parseObject(ss);
 | 
	
		
			
				|  |  |         System.out.println(jsonObject.toString());
 | 
	
		
			
				|  |  |     }*/
 | 
	
		
			
				|  |  |     public String getWXGZHQrcode(String orgCode){
 | 
	
		
			
				|  |  |     public MixEnvelop getWXGZHQrcode(String orgCode){
 | 
	
		
			
				|  |  |         BaseOrgDO baseOrgDO = baseOrgDao.findByCode(orgCode);
 | 
	
		
			
				|  |  |         MixEnvelop mixEnvelop= new MixEnvelop();
 | 
	
		
			
				|  |  |         if (null!=baseOrgDO){
 | 
	
		
			
				|  |  |             String qrCode = baseOrgDO.getQrcode();
 | 
	
		
			
				|  |  |             if (StringUtils.isBlank(qrCode)){
 | 
	
		
			
				|  |  |                 try {
 | 
	
		
			
				|  |  |                     qrCode  = createPublicQrcode( "test.png");
 | 
	
		
			
				|  |  |                     qrCode  = createPublicQrcode( "hlwyy.png");
 | 
	
		
			
				|  |  |                     baseOrgDO.setQrcode(qrCode);
 | 
	
		
			
				|  |  |                     baseOrgDao.save(baseOrgDO);
 | 
	
		
			
				|  |  |                 } catch (Exception e) {
 | 
	
		
			
				|  |  |                     e.printStackTrace();
 | 
	
		
			
				|  |  |                     return "生成公众号二维码失败";
 | 
	
		
			
				|  |  |                     mixEnvelop.setMessage("生成公众号二维码失败");
 | 
	
		
			
				|  |  |                     mixEnvelop.setStatus(-1);
 | 
	
		
			
				|  |  |                     return mixEnvelop;
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             return qrCode;
 | 
	
		
			
				|  |  |             mixEnvelop.setMessage("success");
 | 
	
		
			
				|  |  |             mixEnvelop.setObj(qrCode);
 | 
	
		
			
				|  |  |             mixEnvelop.setStatus(200);
 | 
	
		
			
				|  |  |             return mixEnvelop;
 | 
	
		
			
				|  |  |         }else {
 | 
	
		
			
				|  |  |             return "";
 | 
	
		
			
				|  |  |             mixEnvelop.setMessage("获取公众号二维码失败");
 | 
	
		
			
				|  |  |             mixEnvelop.setStatus(-1);
 | 
	
		
			
				|  |  |             return mixEnvelop;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | }
 |