bug fix
parent
6089c3d003
commit
429f8047c1
|
|
@ -3,13 +3,13 @@ package org.qinan.safetyeval.app.executor;
|
|||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.jjb.saas.system.client.user.request.RoleDeptAddCmd;
|
||||
import com.jjb.saas.system.client.user.request.UserAddCmd;
|
||||
import com.jjb.saas.system.client.user.request.UserUpdateCmd;
|
||||
import com.zcloud.gbscommon.utils.MD5;
|
||||
import com.zcloud.gbscommon.utils.Sm2Util;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.qinan.safetyeval.client.api.QualFilingExpertApi;
|
||||
import org.qinan.safetyeval.client.co.QualFilingExpertCO;
|
||||
import org.qinan.safetyeval.client.dto.*;
|
||||
import org.qinan.safetyeval.domain.entity.OrgPersonnelEntity;
|
||||
import org.qinan.safetyeval.domain.entity.QualFilingExpertEntity;
|
||||
import org.qinan.safetyeval.domain.query.PageResult;
|
||||
import org.qinan.safetyeval.domain.query.QualFilingExpertQuery;
|
||||
|
|
@ -110,7 +110,15 @@ public class QualFilingExpertExecutor implements QualFilingExpertApi {
|
|||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public SingleResponse<QualFilingExpertCO> modify(QualFilingExpertModifyCmd cmd) {
|
||||
QualFilingExpertEntity expertEntity = qualFilingExpertDomainService.get(cmd.getId());
|
||||
UserUpdateCmd updateCmd = new UserUpdateCmd();
|
||||
updateCmd.setId(expertEntity.getUserId());
|
||||
updateCmd.setAccount(cmd.getAccount());
|
||||
updateCmd.setAccount(cmd.getUserName());
|
||||
systemRemote.updateUser(updateCmd);
|
||||
|
||||
QualFilingExpertEntity entity = new QualFilingExpertEntity();
|
||||
entity.setId(cmd.getId());
|
||||
entity.setUserName(cmd.getUserName());
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import com.jjb.saas.system.client.user.facade.UserFacade;
|
|||
import com.jjb.saas.system.client.user.request.UserAddCmd;
|
||||
import com.jjb.saas.system.client.user.request.UserPageQry;
|
||||
import com.jjb.saas.system.client.user.request.UserRoleUpdateCmd;
|
||||
import com.jjb.saas.system.client.user.request.UserUpdateCmd;
|
||||
import com.jjb.saas.system.client.user.response.UserCO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
|
@ -82,4 +83,12 @@ public class SystemRemote {
|
|||
throw new BizException(response.getErrCode(), response.getErrMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public void updateUser(UserUpdateCmd updateCmd) {
|
||||
Response response = userFacade.update(updateCmd);
|
||||
if (!response.isSuccess()) {
|
||||
log.error("updateUser error :{}", response.getErrMessage());
|
||||
throw new BizException(response.getErrCode(), response.getErrMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue