|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yihu.jw.entity.base.patient.BasePatientDO;
|
|
|
import com.yihu.jw.entity.base.wx.BasePatientWechatDo;
|
|
|
import com.yihu.jw.entity.hospital.family.WlyyPatientFamilyMemberDO;
|
|
|
import com.yihu.jw.entity.util.AesEncryptUtils;
|
|
|
import com.yihu.jw.security.core.userdetails.SaltUser;
|
|
|
import com.yihu.jw.security.dao.patient.BasePatientDao;
|
|
|
import com.yihu.jw.security.dao.patient.BasePatientWechatDao;
|
|
@ -126,6 +127,7 @@ public class WlyyUserDetailsService extends JdbcDaoSupport implements UserDetail
|
|
|
|
|
|
public void unlocked(String username) {
|
|
|
String loginType = getLogintype();
|
|
|
username = AesEncryptUtils.encrypt(username);
|
|
|
if (StringUtils.isBlank(loginType) || "1".equals(loginType)) { //1或默认查找user表,为平台管理员账号
|
|
|
//解除锁定
|
|
|
this.getJdbcTemplate().update("update base_user u set login_failure_count = 0, u.locked = 0 where u.username = ? or u.mobile = ? or u.idcard = ?", username, username, username);
|
|
@ -153,6 +155,8 @@ public class WlyyUserDetailsService extends JdbcDaoSupport implements UserDetail
|
|
|
|
|
|
String loginType = getLogintype();
|
|
|
|
|
|
username = AesEncryptUtils.encrypt(username);
|
|
|
|
|
|
List<WlyyUserDetails> users = null;
|
|
|
//1或默认查找user表,为平台管理员账号
|
|
|
if (StringUtils.isBlank(loginType) || "1".equals(loginType)) {
|