Commit fa3e2de2 authored by 赵啸非's avatar 赵啸非

添加申请页面抓取

parent 26c99575
......@@ -298,8 +298,8 @@ public class UserServiceImpl extends AbstractCRUDServiceImpl<UserDao, UserEntity
public void updateUserList(List<UserPdu> list) {
//更新本地用户信息,并且更新用户站点树
for (UserPdu user : list) {
int count = this.count(new UserQuery().loginName(user.getLoginName()),null);
if (count==0) {
UserEntity tempUser = this.selectOne(new UserQuery().loginName(user.getLoginName()));
if (ObjectUtils.isEmpty(tempUser)) {
//新增
UserEntity entity = new UserEntity();
entity.initAttrValue();
......@@ -311,7 +311,8 @@ public class UserServiceImpl extends AbstractCRUDServiceImpl<UserDao, UserEntity
} else {
//更新
UserEntity userEntity = new UserEntity();
BeanUtils.copyProperties(user, userEntity, new String[]{"loginPwd", "userType", "status", "lastLoginTime", "lastLoginAddress"});
BeanUtils.copyProperties(user, userEntity, new String[]{"loginPwd","loginName", "userType", "status", "lastLoginTime", "lastLoginAddress"});
userEntity.setId(tempUser.getId());
this.updateWidthDao(userEntity);
Context context = new Context();
context.setUser(userEntity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment