Commit 16bbdfad authored by 廖旭伟's avatar 廖旭伟

修复测试bug

parent 342afb6e
......@@ -127,6 +127,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
// userEntity.setMobile(req.getPhone());
userEntity.setLoginPwd(SecurityUtil.md5DoubleEncoding("123"));
userEntity.setUserType(2);
userEntity.setRoleIds("2");
userEntity = userService.save(userEntity);
}
if(userEntity.getCompanyId()!=null){
......@@ -197,6 +198,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
userEntity.setUserType(2);
CompanyEntity companyEntity = companyService.getCompanyByH5(req);
userEntity.setCompanyId(companyEntity.getId());
userEntity.setRoleIds("2");
userEntity = userService.save(userEntity);
}else {
userEntity.setPhone(req.getPhone());
......@@ -212,6 +214,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
//todo 当前用户存在 但是未绑定公司 可绑定
CompanyEntity companyEntity = companyService.getCompanyByH5(req);
userEntity.setCompanyId(companyEntity.getId());
userEntity.setRoleIds("2");
userService.update(userEntity);
}
//当前用户绑定公司 用户名可与phone绑定
......
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