ApproachOrderCall.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. namespace common\models;
  3. use common\components\MongoActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for collection "ar_approach_order_call".
  7. *
  8. * @property \MongoDB\BSON\ObjectID|string $_id
  9. * @property string $sn
  10. * @property string $Signature
  11. * @property string $TransId
  12. * @property string $data
  13. */
  14. class ApproachOrderCall extends MongoActiveRecord
  15. {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public static function collectionName()
  20. {
  21. return 'ar_approach_order_call';
  22. }
  23. /**
  24. * @return \yii\mongodb\Connection the MongoDB connection used by this AR class.
  25. * @throws \yii\base\InvalidConfigException
  26. */
  27. public static function getDb()
  28. {
  29. return Yii::$app->get('dbLog');
  30. }
  31. /**
  32. * 获取id
  33. * @return string
  34. */
  35. public function getId() {
  36. return (string) $this->_id;
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributes()
  42. {
  43. return [
  44. '_id',
  45. 'sn',
  46. 'Signature',
  47. 'TransId',
  48. 'data',
  49. ];
  50. }
  51. /**
  52. * {@inheritdoc}
  53. */
  54. public function attributeLabels()
  55. {
  56. return [
  57. '_id' => 'objectID',
  58. 'sn' => 'orderSn',
  59. 'Signature' => 'Signature',
  60. 'TransId' => 'TransId',
  61. 'data' => 'data',
  62. ];
  63. }
  64. }