|
|
@@ -45,6 +45,7 @@ import com.goafanti.common.dao.UserFollowMapper;
|
|
|
import com.goafanti.common.dao.UserIdentityMapper;
|
|
|
import com.goafanti.common.dao.UserLockReleaseMapper;
|
|
|
import com.goafanti.common.dao.UserMapper;
|
|
|
+import com.goafanti.common.dao.UserNamesMapper;
|
|
|
import com.goafanti.common.dao.UserTransferLogMapper;
|
|
|
import com.goafanti.common.enums.ChannelStatus;
|
|
|
import com.goafanti.common.enums.CustomerStatusFiled;
|
|
|
@@ -66,6 +67,7 @@ import com.goafanti.common.model.UserFollow;
|
|
|
import com.goafanti.common.model.UserFollowBusiness;
|
|
|
import com.goafanti.common.model.UserIdentity;
|
|
|
import com.goafanti.common.model.UserLockRelease;
|
|
|
+import com.goafanti.common.model.UserNames;
|
|
|
import com.goafanti.common.model.UserTransferLog;
|
|
|
import com.goafanti.common.utils.BeanUtilsExt;
|
|
|
import com.goafanti.common.utils.DateUtils;
|
|
|
@@ -89,6 +91,7 @@ import com.goafanti.customer.bo.InputChannelCounts;
|
|
|
import com.goafanti.customer.bo.InputListChannel;
|
|
|
import com.goafanti.customer.bo.LockingReleaseBo;
|
|
|
import com.goafanti.customer.bo.StatisticBo;
|
|
|
+import com.goafanti.customer.bo.UserNamesListBo;
|
|
|
import com.goafanti.customer.bo.transferListBo;
|
|
|
import com.goafanti.customer.service.CustomerService;
|
|
|
import com.goafanti.user.bo.OutUserChannel;
|
|
|
@@ -137,6 +140,9 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
private UserTransferLogMapper userTransferLogMapper;
|
|
|
@Resource
|
|
|
private UserChannelMapper userChannelMapper;
|
|
|
+ @Resource
|
|
|
+ private UserNamesMapper userNamesMapper;
|
|
|
+
|
|
|
@Value(value = "${upload.path}")
|
|
|
private String uploadPath = null;
|
|
|
|
|
|
@@ -2203,4 +2209,25 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
return userMapper.getUserByName(name);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public int updateUserName(String uid, String userName) {
|
|
|
+ User u=new User();
|
|
|
+ u.setId(uid);
|
|
|
+ u.setNickname(userName);
|
|
|
+ u.setIdentifyName(userName);
|
|
|
+ userMapper.updateByPrimaryKeySelective(u);
|
|
|
+ UserNames un=new UserNames();
|
|
|
+ un.setAid(TokenManager.getAdminId());
|
|
|
+ un.setUid(uid);
|
|
|
+ un.setName(userName);
|
|
|
+ userNamesMapper.insertSelective(un);
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<UserNamesListBo> listUserName(String uid) {
|
|
|
+ List<UserNamesListBo> list=userNamesMapper.getUserList(uid);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
}
|