orderModel.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php
  2. /**
  3. * User: admin
  4. * Date Time: 2021/3/25 23:03
  5. */
  6. namespace common\components\dada\model;
  7. class orderModel
  8. {
  9. public $shop_no;
  10. public $origin_id;
  11. public $city_code;
  12. public $cargo_price;
  13. public $is_prepay;
  14. public $receiver_name;
  15. public $receiver_address;
  16. public $receiver_lat;
  17. public $receiver_lng;
  18. public $receiver_phone;
  19. public $callback;
  20. public function setShopNo($shopNo)
  21. {
  22. !empty($shopNo) ? $this->shop_no = $shopNo : trigger_error('shop_no不能为空', E_USER_ERROR);
  23. }
  24. public function getShopNo()
  25. {
  26. return $this->shop_no;
  27. }
  28. public function setOriginId($originId)
  29. {
  30. !empty($originId) ? $this->origin_id = $originId : trigger_error('origin_id不能为空', E_USER_ERROR);
  31. }
  32. public function getOriginId()
  33. {
  34. return $this->origin_id;
  35. }
  36. public function setCityCode($cityCode)
  37. {
  38. !empty($cityCode) ? $this->city_code = $cityCode : trigger_error('city_code不能为空', E_USER_ERROR);
  39. }
  40. public function getCityCode()
  41. {
  42. return $this->city_code;
  43. }
  44. public function setCargoPrice($cargoPrice)
  45. {
  46. isset($cargoPrice) ? $this->cargo_price = $cargoPrice : trigger_error('cargo_price不能为空', E_USER_ERROR);
  47. }
  48. public function getCargoPrice()
  49. {
  50. return $this->cargo_price;
  51. }
  52. public function setIsPrepay($isPrepay)
  53. {
  54. isset($isPrepay) ? $this->is_prepay = $isPrepay : trigger_error('is_prepay不能为空', E_USER_ERROR);
  55. }
  56. public function getIsPrepay()
  57. {
  58. return $this->is_prepay;
  59. }
  60. public function setReceiverName($receiverName)
  61. {
  62. !empty($receiverName) ? $this->receiver_name = $receiverName : trigger_error('receiver_name不能为空', E_USER_ERROR);
  63. }
  64. public function getReceiverName()
  65. {
  66. return $this->receiver_name;
  67. }
  68. public function setReceiverAddress($receiverAddress)
  69. {
  70. !empty($receiverAddress) ? $this->receiver_address = $receiverAddress : trigger_error('receiver_address不能为空', E_USER_ERROR);
  71. }
  72. public function getReceiverAddress()
  73. {
  74. return $this->receiver_address;
  75. }
  76. public function setReceiverLat($receiverLat)
  77. {
  78. isset($receiverLat) ? $this->receiver_lat = $receiverLat : trigger_error('receiver_lat不能为空', E_USER_ERROR);
  79. }
  80. public function getReceiverLat()
  81. {
  82. return $this->receiver_lat;
  83. }
  84. public function setReceiverLng($receiverLng)
  85. {
  86. isset($receiverLng) ? $this->receiver_lng = $receiverLng : trigger_error('receiver_lng不能为空', E_USER_ERROR);
  87. }
  88. public function getReceiverLng()
  89. {
  90. return $this->receiver_lng;
  91. }
  92. public function setReceiverPhone($receiverPhone)
  93. {
  94. !empty($receiverPhone) ? $this->receiver_phone = $receiverPhone : trigger_error('receiver_phone不能为空', E_USER_ERROR);
  95. }
  96. public function getReceiverPhone()
  97. {
  98. return $this->receiver_phone;
  99. }
  100. public function setCallback($callback)
  101. {
  102. !empty($callback) ? $this->callback = $callback : trigger_error('callback不能为空', E_USER_ERROR);
  103. }
  104. public function getCallback()
  105. {
  106. return $this->callback;
  107. }
  108. }