/// <summary> /// 根据自定义编号查询物理点简要信息 /// </summary> /// <param name="id"></param> /// <returns></returns> /// lx 2014年8月4日15:39:22 public PhyGeoDisasterSimplify GetByCustomizeId(string cusolizeId) { if (string.IsNullOrWhiteSpace(cusolizeId)) { throw new Exception(@"查询的自定义编号不允许时类型“null”或者空字符串"); } PhyGeoDisaster phy = this._phyService.GetByCustomizeId(cusolizeId); PhyGeoDisasterSimplify phyModel = Mapper.Map <PhyGeoDisasterSimplify>(phy); return(phyModel); }
/// <summary> /// 通过编号获取物理点简要信息 /// </summary> /// <param name="id">物理点编号</param> /// <returns></returns> public PhyGeoDisasterSimplify GetById(string id) { if (id == null) { throw new Exception("不存在这样的物理点信息主键编号"); } PhyGeoDisaster phy = this._phyService.GetById(id); PhyGeoDisasterSimplify phyModel = Mapper.Map <PhyGeoDisasterSimplify>(phy); return(phyModel); }