|  | @ -449,7 +449,9 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
 | 
	
		
			
				|  |  |             head.put("clientSecret",clientSecret);
 | 
	
		
			
				|  |  |             msg.put("head",head);
 | 
	
		
			
				|  |  |             JSONObject body = new JSONObject();
 | 
	
		
			
				|  |  |             body.put("sysTag",sysTag);
 | 
	
		
			
				|  |  |             if (StringUtils.isNoneBlank(sysTag)){
 | 
	
		
			
				|  |  |                 body.put("sysTag",sysTag);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             body.put("openId",openId);
 | 
	
		
			
				|  |  |             msg.put("body",body);
 | 
	
		
			
				|  |  |             object.put("msg",msg);
 | 
	
	
		
			
				|  | @ -487,7 +489,9 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
 | 
	
		
			
				|  |  |             head.put("clientSecret",clientSecret);
 | 
	
		
			
				|  |  |             msg.put("head",head);
 | 
	
		
			
				|  |  |             JSONObject body = new JSONObject();
 | 
	
		
			
				|  |  |             body.put("sysTag",sysTag);
 | 
	
		
			
				|  |  |             if (StringUtils.isNoneBlank(sysTag)){
 | 
	
		
			
				|  |  |                 body.put("sysTag",sysTag);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             body.put("openId",baseDoctorDO.getOpenid());
 | 
	
		
			
				|  |  |             msg.put("body",body);
 | 
	
		
			
				|  |  |             object.put("msg",msg);
 | 
	
	
		
			
				|  | @ -533,7 +537,9 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
 | 
	
		
			
				|  |  |             head.put("clientSecret",clientSecret);
 | 
	
		
			
				|  |  |             msg.put("head",head);
 | 
	
		
			
				|  |  |             JSONObject body = new JSONObject();
 | 
	
		
			
				|  |  |             body.put("sysTag",sysTag);
 | 
	
		
			
				|  |  |             if (StringUtils.isNoneBlank(sysTag)){
 | 
	
		
			
				|  |  |                 body.put("sysTag",sysTag);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             body.put("openId",openId);
 | 
	
		
			
				|  |  |             msg.put("body",body);
 | 
	
		
			
				|  |  |             object.put("msg",msg);
 | 
	
	
		
			
				|  | @ -548,8 +554,9 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
 | 
	
		
			
				|  |  |         return null;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public BaseDoctorDO checkDoctorNeedSign(String doctorId){
 | 
	
		
			
				|  |  |     public JSONObject checkDoctorNeedSign(String doctorId,String sysTag){
 | 
	
		
			
				|  |  |         BaseDoctorDO baseDoctorDO =baseDoctorDao.findById(doctorId);
 | 
	
		
			
				|  |  |         JSONObject jsonObject = new JSONObject();
 | 
	
		
			
				|  |  |         if (baseDoctorDO!=null){
 | 
	
		
			
				|  |  |             int defaultMinute=360;
 | 
	
		
			
				|  |  |             WlyyHospitalSysDictDO wlyyHospitalSysDictDO=wlyyHospitalSysDictDao.findById("singTimeControl");
 | 
	
	
		
			
				|  | @ -560,9 +567,14 @@ public class XzyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
 | 
	
		
			
				|  |  |             long lastSignTime = baseDoctorDO.getLastSignTime()==null?new Date().getTime():baseDoctorDO.getLastSignTime().getTime();
 | 
	
		
			
				|  |  |             if ((nowTime-lastSignTime)>defaultMinute*60*1000){
 | 
	
		
			
				|  |  |                 baseDoctorDO.setIsSign("0");
 | 
	
		
			
				|  |  |                 jsonObject = this.selfSignRequest(baseDoctorDO.getOpenid(),sysTag);
 | 
	
		
			
				|  |  |                 jsonObject.put("isNeedSign","true");
 | 
	
		
			
				|  |  |             }else {
 | 
	
		
			
				|  |  |                 jsonObject.put("status",200);
 | 
	
		
			
				|  |  |                 jsonObject.put("isNeedSign","false");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             baseDoctorDO = baseDoctorDao.save(baseDoctorDO);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return baseDoctorDO;
 | 
	
		
			
				|  |  |         return jsonObject;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | }
 |