
            select 
                coalesce(PersonCard_nid, '520101001873902') as "PersonCard_id",
                PersonCard_cid as "cid",
                error_code as "Error_Code",
                error_message as "Error_Msg"
            , 0 as "disable_print" 
            from dbo.p_PersonCard_upd(
                PersonCard_id := '520101001873902',
                Lpu_id := '2799',
                Server_id := '2799',
                Person_id := '9808507',
                PersonCard_begDate := '2016-01-11',
                PersonCard_endDate := NULL,
                PersonCard_Code := '032942',
                PersonCard_IsAttachAuto := NULL,
                PersonCard_IsAttachCondit := 1,
                LpuRegionType_id := '2',
                LpuRegion_id := '606',
                MedStaffFact_id := NULL,
                LpuRegion_fapid := NULL,
                LpuAttachType_id := '1',
                CardCloseCause_id := NULL,
                PersonCardAttach_id := NULL,
                pmUser_id := '395000427597'
            )
        
