From 573c491b4a1ba60e12a5678a01c1546c0077c1ee Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 30 七月 2019 09:07:42 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserInfoServiceImpl.java |   65 --------------------------------
 1 files changed, 0 insertions(+), 65 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserInfoServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserInfoServiceImpl.java
index 0f5ba56..b74410c 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserInfoServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserInfoServiceImpl.java
@@ -994,69 +994,4 @@
 		userInfoMapper.updateByPrimaryKeySelective(userInfo);
 	}
 
-	@Override
-	public void forbiddenUser(Long uid, String reason) {
-		UserInfo currentInfo = userInfoService.selectByPKey(uid);
-		if (currentInfo == null) {
-			return;
-		}
-		if (currentInfo.getState() != UserInfo.STATE_NORMAL) {
-			return;
-		}
-
-		currentInfo.setState(UserInfo.STATE_FORBIDDEN);
-		currentInfo.setStateDesc(reason);
-		userInfoService.updateByPrimaryKeySelective(currentInfo);
-
-		// 鍔犲叆灏佺鐨勮处鍙峰垪琛�
-		ForbiddenUserIdentifyCode forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
-		forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.wxUnionId);
-		forbiddenUserIdentifyCode.setIdentifyCode(currentInfo.getWxUnionId());
-		forbiddenUserIdentifyCode.setBeiZhu(currentInfo.getWxName());
-		try {
-			forbiddenUserIdentifyCodeService.forbiddenIdentifyCode(forbiddenUserIdentifyCode);
-		} catch (ForbiddenUserIdentifyCodeException e) {
-			e.printStackTrace();
-		}
-
-		// 鐢佃瘽鍙风爜
-		forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
-		forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.phone);
-		forbiddenUserIdentifyCode.setIdentifyCode(currentInfo.getPhone());
-		try {
-			forbiddenUserIdentifyCodeService.forbiddenIdentifyCode(forbiddenUserIdentifyCode);
-		} catch (ForbiddenUserIdentifyCodeException e) {
-			e.printStackTrace();
-		}
-
-		// 娣樺疂
-		UserExtraTaoBaoInfo taoBao = userExtraTaoBaoInfoService.getByUid(uid);
-		if (taoBao != null && !StringUtil.isNullOrEmpty(taoBao.getTaoBaoUid())) {
-			forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
-			forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.taobaoUid);
-			forbiddenUserIdentifyCode.setIdentifyCode(taoBao.getTaoBaoUid());
-			try {
-				forbiddenUserIdentifyCodeService.forbiddenIdentifyCode(forbiddenUserIdentifyCode);
-			} catch (ForbiddenUserIdentifyCodeException e) {
-				e.printStackTrace();
-			}
-		}
-
-		// 鏌ヨ鏀粯瀹濈粦瀹�
-		List<BindingAccount> list = bindingAccountService.getBindingAccountByUid(uid);
-		if (list != null) {
-			for (BindingAccount ba : list) {
-				forbiddenUserIdentifyCode = new ForbiddenUserIdentifyCode();
-				forbiddenUserIdentifyCode.setType(ForbiddenUserIdentifyCodeTypeEnum.alipayAccount);
-				forbiddenUserIdentifyCode.setIdentifyCode(ba.getAccount());
-				forbiddenUserIdentifyCode.setBeiZhu(ba.getName());
-				try {
-					forbiddenUserIdentifyCodeService.forbiddenIdentifyCode(forbiddenUserIdentifyCode);
-				} catch (ForbiddenUserIdentifyCodeException e) {
-					e.printStackTrace();
-				}
-			}
-		}
-
-	}
 }

--
Gitblit v1.8.0