Commit f3597a18 authored by 廖旭伟's avatar 廖旭伟

测试bug修改

parent f2f457b7
......@@ -340,7 +340,7 @@ public class UserServiceImpl extends AbstractCRUDServiceImpl<UserDao, UserEntity
userEntity = new UserEntity();
userEntity.setStatus(1);
userEntity.setOpenId(openId);
userEntity.setUserType(3);
userEntity.setUserType(2);
userEntity.setRealName("微信用户");
userEntity.setCreateTime(new Date());
userEntity.setCreateUserId(1L);
......
......@@ -55,7 +55,11 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model,"userType", IBaseEnum.getEnumMap(UserType.class));
Map<String,String> userType = new HashMap<>();
userType.put("0","系统用户");
userType.put("1","企业用户");
userType.put("2","访客");
this.addDict(model,"userType", userType);
this.addDict(model,"status", UserStatus.getEnumMap());
this.addDict(model, "roleIds", roleService.find(new RoleQuery()).stream().collect(Collectors.toMap(x -> x.getId().toString(), y -> y.getName())));
......
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