dbo.backend_aprobar_tarea

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

2
Name Data Type Length Description
@task_id int 4
@p_estado int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

CREATE OR ALTER PROCEDURE dbo.backend_aprobar_tarea
@task_id int, 
@p_estado int 

AS
BEGIN

 SET NOCOUNT ON;

  if (@p_estado = '1') 
    begin
     update tareas_usuarios_documentos
        set fecha_aprobacion = GETDATE()
      where task_id = @task_id 
        and fecha_aprobacion is null
    end 
    else
    begin 
     update tareas_usuarios_documentos
        set fecha_aprobacion = null
      where task_id = @task_id 
    end 
   
      
END 

GO

Used By

No items found