fixes bug#24051
qua: dev: Inserido no log de auditoria, o cadastro de novo usuario. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@110437 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e4679cfbc6
commit
c55b79d7f2
|
@ -128,8 +128,11 @@ public class UsuarioServiceImpl implements UsuarioService, UserDetailsService {
|
||||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||||
entidad.setActivo(Boolean.TRUE);
|
entidad.setActivo(Boolean.TRUE);
|
||||||
|
|
||||||
if (entidad.getUsuarioId() == null) {
|
if (entidad.getUsuarioId() == null) {
|
||||||
return usuarioDAO.suscribir(entidad);
|
usuarioDAO.suscribir(entidad);
|
||||||
|
logAuditoriaService.auditar(null, entidad, entidad.getEmpresa() != null && !entidad.getEmpresa().isEmpty()? entidad.getEmpresa().get(0).getEmpresaId(): null);
|
||||||
|
return entidad;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
entidad = usuarioDAO.actualizacion(entidad);
|
entidad = usuarioDAO.actualizacion(entidad);
|
||||||
logAuditoriaService.auditar(originalClone, entidad, entidad.getEmpresa() != null && !entidad.getEmpresa().isEmpty()? entidad.getEmpresa().get(0).getEmpresaId(): null);
|
logAuditoriaService.auditar(originalClone, entidad, entidad.getEmpresa() != null && !entidad.getEmpresa().isEmpty()? entidad.getEmpresa().get(0).getEmpresaId(): null);
|
||||||
|
|
Loading…
Reference in New Issue