MassRecord.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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\Mc;
  7. class MassRecord extends \We7Table {
  8. protected $tableName = 'mc_mass_record';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'acid',
  13. 'groupname',
  14. 'fansnum',
  15. 'msgtype',
  16. 'content',
  17. 'group',
  18. 'attach_id',
  19. 'media_id',
  20. 'type',
  21. 'status',
  22. 'cron_id',
  23. 'sendtime',
  24. 'finalsendtime',
  25. 'createtime',
  26. 'msg_id',
  27. 'msg_data_id',
  28. );
  29. protected $default = array(
  30. 'uniacid' => '',
  31. 'acid' => '',
  32. 'groupname' => '',
  33. 'fansnum' => 0,
  34. 'msgtype' => '',
  35. 'content' => '',
  36. 'group' => 0,
  37. 'attach_id' => '',
  38. 'media_id' => '',
  39. 'type' => 0,
  40. 'status' => 0,
  41. 'cron_id' => '',
  42. 'sendtime' => '',
  43. 'finalsendtime' => '',
  44. 'createtime' => '',
  45. 'msg_id' => '',
  46. 'msg_data_id' => '',
  47. );
  48. public function searchWithUniacid($uniacid) {
  49. return $this->query->where('uniacid', $uniacid);
  50. }
  51. }