Stores.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. namespace We7\Table\Activity;
  7. class Stores extends \We7Table {
  8. protected $tableName = 'activity_stores';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'business_name',
  13. 'branch_name',
  14. 'category',
  15. 'province',
  16. 'city',
  17. 'district',
  18. 'address',
  19. 'longitude',
  20. 'latitude',
  21. 'telephone',
  22. 'photo_list',
  23. 'avg_price',
  24. 'recommend',
  25. 'special',
  26. 'introduction',
  27. 'open_time',
  28. 'location_id',
  29. 'status',
  30. 'source',
  31. 'message',
  32. 'sosomap_poi_uid',
  33. 'license_no',
  34. 'license_name',
  35. 'other_files',
  36. 'audit_id',
  37. 'on_show',
  38. );
  39. protected $default = array(
  40. 'uniacid' => '',
  41. 'business_name' => '',
  42. 'branch_name' => '',
  43. 'category' => '',
  44. 'province' => '',
  45. 'city' => '',
  46. 'district' => '',
  47. 'address' => '',
  48. 'longitude' => '',
  49. 'latitude' => '',
  50. 'telephone' => '',
  51. 'photo_list' => '',
  52. 'avg_price' => '',
  53. 'recommend' => '',
  54. 'special' => '',
  55. 'introduction' => '',
  56. 'open_time' => '',
  57. 'location_id' => '',
  58. 'status' => '',
  59. 'source' => 1,
  60. 'message' => '',
  61. 'sosomap_poi_uid' => '',
  62. 'license_no' => '',
  63. 'license_name' => '',
  64. 'other_files' => '',
  65. 'audit_id' => '',
  66. 'on_show' => 2,
  67. );
  68. public function getAllByUniacid($uniacid) {
  69. return $this->query->where('uniacid', $uniacid)->getall();
  70. }
  71. }