ALTER PROCEDURE [dbo].[OSP_OTB_HR_CheckAskLeave_GetModel]
    @OrganizationID VARCHAR(50) ,
    @AskLeaveGuid CHAR(36)
AS 
    SELECT  CheckUserID ,
            dbo.OFN_SYS_MemberNameByMemberID(CheckUserID, @OrganizationID) AS CheckUserName ,
            CheckGuid ,
            ParentGuid ,
            CheckStatue ,
            Memo ,
            'Upd' AS [Action] ,
            AskLeaveGuid
    FROM    [OTB_HR_CheckAskLeave]
    WHERE   OrganizationID = @OrganizationID
            AND AskLeaveGuid = @AskLeaveGuid 
            ORDER BY CreateDate DESC
