fix location show
This commit is contained in:
parent
72002bd437
commit
b52726b694
@ -25,11 +25,12 @@ class LocationModel extends BaseModel {
|
|||||||
public function getLocation($LocationID) {
|
public function getLocation($LocationID) {
|
||||||
//'Street1', 'Street2', 'City', 'Province', 'PostCode', 'GeoLocationSystem', 'GeoLocationData',
|
//'Street1', 'Street2', 'City', 'Province', 'PostCode', 'GeoLocationSystem', 'GeoLocationData',
|
||||||
$rows = $this->select("location.*, la.Street1, la.Street2, la.PostCode, la.GeoLocationSystem, la.GeoLocationData,
|
$rows = $this->select("location.*, la.Street1, la.Street2, la.PostCode, la.GeoLocationSystem, la.GeoLocationData,
|
||||||
v.*, prop.AreaGeoID as ProvinceID, prop.AreaName as Province, city.AreaGeoID as CityID, city.AreaName as City")
|
v.VDesc as LocTypeText, prop.AreaGeoID as ProvinceID, prop.AreaName as Province, city.AreaGeoID as CityID, city.AreaName as City, site.SiteID, site.SiteName")
|
||||||
->join("locationaddress la", "location.LocationID=la.LocationID", "left")
|
->join("locationaddress la", "location.LocationID=la.LocationID", "left")
|
||||||
->join("valueset v", "v.VID=location.loctype", "left")
|
->join("valueset v", "v.VID=location.loctype", "left")
|
||||||
->join("areageo prop", "la.Province=prop.AreaGeoID", "left")
|
->join("areageo prop", "la.Province=prop.AreaGeoID", "left")
|
||||||
->join("areageo city", "la.City=city.AreaGeoID", "left")
|
->join("areageo city", "la.City=city.AreaGeoID", "left")
|
||||||
|
->join("site", "site.SiteID=location.SiteID", "left")
|
||||||
->where('location.LocationID', (int) $LocationID)->findAll();
|
->where('location.LocationID', (int) $LocationID)->findAll();
|
||||||
return $rows;
|
return $rows;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user