use of com.easy.cloud.core.operator.sysuserrole.pojo.entity.SysUserRoleEntity in project dq-easy-cloud by dq-open-cloud.
the class SysUserRoleServiceImpl method save.
public EcBaseServiceResult save(SysUserRoleDTO sysUserRoleDTO) {
Subject subject = SecurityUtils.getSubject();
SysUserDTO userDTO = (SysUserDTO) subject.getSession().getAttribute("user");
sysUserRoleDTO.setUserId(userDTO.getId());
SysUserRoleEntity sysUserRoleEntity = EcJSONUtils.parseObject(sysUserRoleDTO, SysUserRoleEntity.class);
sysUserRoleDAO.save(sysUserRoleEntity);
return EcBaseServiceResult.newInstanceOfSucResult(sysUserRoleEntity);
}
Aggregations