dev:app端代码方法修改名称
parent
7629c1e68f
commit
f2d62e3306
|
|
@ -105,7 +105,7 @@ public class UserAddExe {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public boolean execute(AppUserRegisterCmd cmd) {
|
public boolean executeRegister(AppUserRegisterCmd cmd) {
|
||||||
|
|
||||||
UserE userE = new UserE();
|
UserE userE = new UserE();
|
||||||
userE.checkPassword(cmd.getNewPassword(), cmd.getConfirmPassword());
|
userE.checkPassword(cmd.getNewPassword(), cmd.getConfirmPassword());
|
||||||
|
|
@ -131,7 +131,7 @@ public class UserAddExe {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public boolean execute(AppUserInfoCmd cmd) {
|
public boolean executePerfectUserInfo(AppUserInfoCmd cmd) {
|
||||||
|
|
||||||
UserE userE = new UserE();
|
UserE userE = new UserE();
|
||||||
BeanUtils.copyProperties(cmd, userE);
|
BeanUtils.copyProperties(cmd, userE);
|
||||||
|
|
@ -144,7 +144,7 @@ public class UserAddExe {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public boolean execute(AppUserOnboardingCmd cmd) {
|
public boolean executeOnboarding(AppUserOnboardingCmd cmd) {
|
||||||
|
|
||||||
// 如果是流动人员, 判断user_corp表是否有未离职的数据, 如果有则不能入职(0-离职)
|
// 如果是流动人员, 判断user_corp表是否有未离职的数据, 如果有则不能入职(0-离职)
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ public class UserRemoveExe {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public boolean execute(AppUserLogOutCmd cmd) {
|
public boolean executeLogOut(AppUserLogOutCmd cmd) {
|
||||||
|
|
||||||
// 获取redis验证码
|
// 获取redis验证码
|
||||||
// Object phoneCodeObj = zcloudRedisUtil.get(RedisConstant.PHONE_CODE_KEY + cmd.getPhone());
|
// Object phoneCodeObj = zcloudRedisUtil.get(RedisConstant.PHONE_CODE_KEY + cmd.getPhone());
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ public class UserUpdateExe {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public boolean execute(AppUserRegisterCmd cmd) {
|
public boolean executePasswordRecover(AppUserRegisterCmd cmd) {
|
||||||
|
|
||||||
// 根据手机号查询用户信息
|
// 根据手机号查询用户信息
|
||||||
UserDO userDO = userRepository.getByPhone(cmd.getPhone());
|
UserDO userDO = userRepository.getByPhone(cmd.getPhone());
|
||||||
|
|
|
||||||
|
|
@ -51,25 +51,25 @@ public class UserServiceImpl implements UserServiceI {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SingleResponse<UserCO> register(AppUserRegisterCmd cmd) {
|
public SingleResponse<UserCO> register(AppUserRegisterCmd cmd) {
|
||||||
userAddExe.execute(cmd);
|
userAddExe.executeRegister(cmd);
|
||||||
return SingleResponse.buildSuccess();
|
return SingleResponse.buildSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SingleResponse<UserCO> passwordRecover(AppUserRegisterCmd cmd) {
|
public SingleResponse<UserCO> passwordRecover(AppUserRegisterCmd cmd) {
|
||||||
userUpdateExe.execute(cmd);
|
userUpdateExe.executePasswordRecover(cmd);
|
||||||
return SingleResponse.buildSuccess();
|
return SingleResponse.buildSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SingleResponse<UserCO> perfectUserInfo(AppUserInfoCmd cmd) {
|
public SingleResponse<UserCO> perfectUserInfo(AppUserInfoCmd cmd) {
|
||||||
userAddExe.execute(cmd);
|
userAddExe.executePerfectUserInfo(cmd);
|
||||||
return SingleResponse.buildSuccess();
|
return SingleResponse.buildSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SingleResponse<UserCO> onboarding(AppUserOnboardingCmd cmd) {
|
public SingleResponse<UserCO> onboarding(AppUserOnboardingCmd cmd) {
|
||||||
userAddExe.execute(cmd);
|
userAddExe.executeOnboarding(cmd);
|
||||||
return SingleResponse.buildSuccess();
|
return SingleResponse.buildSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -200,7 +200,7 @@ public class UserServiceImpl implements UserServiceI {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void logOut(AppUserLogOutCmd cmd) {
|
public void logOut(AppUserLogOutCmd cmd) {
|
||||||
userRemoveExe.execute(cmd);
|
userRemoveExe.executeLogOut(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue