SELECT pag_sn
  ,pag_cii_sn
  ,pag_code
  ,bi.PAG_Type
  ,dbo.GetSysCodeName(bi.PAG_Type, 2) AS PAG_Type_name
  --  ,pag_title
  ,bi2.PAG2_Name
  ,bi2.PAG2_Attraction
  ,pag_memo
  ,PAG2_Summary
  ,bi.PAG_NeedTime
  ,bi2.PAG2_Title
  ,bi2.PAG2_PriceInclude
  ,bi2.PAG2_PriceExclude
  ,bi.
--  ,*
--;select   pag_cii_sn,dbo.GetCityName(pag_cii_sn, 2) as cityname
FROM BIZ_PackageInfo AS bi
INNER JOIN BIZ_PackageInfo2 AS bi2 ON bi.PAG_SN = bi2.PAG2_PAG_SN
WHERE bi2.PAG2_LGC IN (1, 2)
  --    AND pag_sn = 4431
  AND bi.PAG_DEI_SN = 30
  --  AND pag_cii_sn = 116
  --  group by pag_cii_sn





	

