|  | @ -126,17 +126,25 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
 | 
	
		
			
				|  |  |         JSONObject res =  xzzxEntranceService.registeredOperate(doctorFlag,outpatientDO.getDept(),patientMappingDO.getMappingCode(),doctorDO.getChargeType(),courierflag);
 | 
	
		
			
				|  |  |         JSONObject result = new JSONObject();
 | 
	
		
			
				|  |  |         logger.info("挂号结果 res: " + res.toString());
 | 
	
		
			
				|  |  |         JSONObject object = res.getJSONObject("returnContents");
 | 
	
		
			
				|  |  |         String rsCode = "";
 | 
	
		
			
				|  |  |         if (object!=null){
 | 
	
		
			
				|  |  |             result.put("@RESULT", "0");
 | 
	
		
			
				|  |  |             result.put("@MSG","挂号成功!");
 | 
	
		
			
				|  |  |             rsCode = object.getString("registerNo");
 | 
	
		
			
				|  |  |         String serialNo = "";
 | 
	
		
			
				|  |  |         if (res!=null){
 | 
	
		
			
				|  |  |             JSONObject object = res.getJSONObject("returnContents");
 | 
	
		
			
				|  |  |             serialNo = object.getString("registerNo");
 | 
	
		
			
				|  |  |             if (object!=null){
 | 
	
		
			
				|  |  |                 result.put("@RESULT", "0");
 | 
	
		
			
				|  |  |                 result.put("@MSG","挂号成功!");
 | 
	
		
			
				|  |  |                 rsCode = object.getString("registerNo");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }else {
 | 
	
		
			
				|  |  |             result.put("@RESULT", "-1");
 | 
	
		
			
				|  |  |             result.put("@MSG","挂号失败");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if (StringUtils.isNoneBlank(rsCode)) {
 | 
	
		
			
				|  |  |             //存储挂号号
 | 
	
		
			
				|  |  |             String serialNo = object.getString("registerNo");
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             outpatientDO.setRegisterNo(serialNo);
 | 
	
		
			
				|  |  |             outpatientDO.setAdmDate(new Date());
 | 
	
		
			
				|  |  |             outpatientDO.setAdmNo(serialNo);
 | 
	
	
		
			
				|  | @ -162,7 +170,6 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         } else if ("-2".equals(rsCode)) {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             String serialNo = (String) res.get("registerNo");
 | 
	
		
			
				|  |  |             outpatientDO.setRegisterNo(serialNo);
 | 
	
		
			
				|  |  |             outpatientDO.setAdmDate(new Date());
 | 
	
		
			
				|  |  |             outpatientDO.setAdmNo(serialNo);
 | 
	
	
		
			
				|  | @ -368,7 +375,6 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
 | 
	
		
			
				|  |  |             head.put("clientId",clientId);
 | 
	
		
			
				|  |  |             head.put("templateId",templateId);
 | 
	
		
			
				|  |  |             head.put("clientSecret",clientSecret);
 | 
	
		
			
				|  |  |             head.put("selfSign",true);
 | 
	
		
			
				|  |  |             msg.put("head",head);
 | 
	
		
			
				|  |  |             JSONObject body = new JSONObject();
 | 
	
		
			
				|  |  |             body.put("urId",urId);
 | 
	
	
		
			
				|  | @ -383,7 +389,7 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
 | 
	
		
			
				|  |  |             body.put("openId",openId);
 | 
	
		
			
				|  |  |             msg.put("body",body);
 | 
	
		
			
				|  |  |             object.put("msg",msg);
 | 
	
		
			
				|  |  |             object.put("signType",4);
 | 
	
		
			
				|  |  |             object.put("signType",0);
 | 
	
		
			
				|  |  |             logger.info("请求参数:"+object);
 | 
	
		
			
				|  |  |             String response = httpClientUtil.sendPost(url,object.toJSONString());
 | 
	
		
			
				|  |  |             logger.info("数据签名接口 :"+response);
 |