| 
															
																@ -1,6 +1,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																package com.yihu.jw.gateway.methlog; 
															 | 
															
															 | 
															
																package com.yihu.jw.gateway.methlog; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import com.yihu.jw.entity.base.login.BaseLoginLogDO; 
															 | 
															
															 | 
															
																import com.yihu.jw.entity.base.login.BaseLoginLogDO; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																import com.yihu.jw.entity.hospital.consult.WlyyHospitalSysDictDO; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import org.springframework.beans.factory.annotation.Autowired; 
															 | 
															
															 | 
															
																import org.springframework.beans.factory.annotation.Autowired; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import org.springframework.data.repository.CrudRepository; 
															 | 
															
															 | 
															
																import org.springframework.data.repository.CrudRepository; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import org.springframework.stereotype.Service; 
															 | 
															
															 | 
															
																import org.springframework.stereotype.Service; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -16,6 +17,8 @@ public class BaseLoginLogService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    @Autowired 
															 | 
															
															 | 
															
																    @Autowired 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    private BaseLoginLogDao baseLoginLogDao; 
															 | 
															
															 | 
															
																    private BaseLoginLogDao baseLoginLogDao; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    @Autowired 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    private WlyyHospitalSysDictDao wlyyHospitalSysDictDao; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    /** 
															 | 
															
															 | 
															
																    /** 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * 根据openid 获取最新的一条数据 
															 | 
															
															 | 
															
																     * 根据openid 获取最新的一条数据 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -37,6 +40,12 @@ public class BaseLoginLogService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<BaseLoginLogDO> list = baseLoginLogDao.findByUserId(userId); 
															 | 
															
															 | 
															
																        List<BaseLoginLogDO> list = baseLoginLogDao.findByUserId(userId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        long between = 0l; 
															 | 
															
															 | 
															
																        long between = 0l; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        long timeOut = 1000*60*5; 
															 | 
															
															 | 
															
																        long timeOut = 1000*60*5; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        String idOperate = "OPERATE_TIME"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        WlyyHospitalSysDictDO wlyyHospitalSysDictDO = wlyyHospitalSysDictDao.findOne(idOperate); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        if (null!=wlyyHospitalSysDictDO){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            String dictValue =wlyyHospitalSysDictDO.getDictValue()==null?"5":wlyyHospitalSysDictDO.getDictValue(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            timeOut = 1000*60*Integer.valueOf(dictValue); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (list.size()>0){ 
															 | 
															
															 | 
															
																        if (list.size()>0){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            BaseLoginLogDO baseLoginLogDO = list.get(0); 
															 | 
															
															 | 
															
																            BaseLoginLogDO baseLoginLogDO = list.get(0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            Date optiondate = baseLoginLogDO.getOperateTime(); 
															 | 
															
															 | 
															
																            Date optiondate = baseLoginLogDO.getOperateTime(); 
															 |