traveDate_cld.php 519 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. Doo::loadCore ( 'db/DooModel' );
  3. class traveDate_cld extends DooModel {
  4. public $id;
  5. public $sid;
  6. public $rid;
  7. public $start;
  8. public $end;
  9. public $_table = 'CLD_traveDate';
  10. public $_primarykey = 'id';
  11. public $_fields = array (
  12. 'id',
  13. 'sid',
  14. 'rid',
  15. 'start',
  16. 'end'
  17. );
  18. // 获得员工信息
  19. public function GetAllBySid($sid) {
  20. $result = $this->find ( array (
  21. 'where' => "sid = ? ",
  22. 'param' => array (
  23. $sid
  24. ),
  25. 'asArray' => TRUE
  26. ) );
  27. return $result;
  28. }
  29. }
  30. ?>