Model_fullordertthb.php 797 B

1234567891011121314151617181920212223242526272829303132
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_fullordertthb extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'fullordertthb';
  8. $this->load_table('fullordertthb');
  9. }
  10. /** 通过API查找 */
  11. public function get_api($api)
  12. {
  13. return $this->find("api = '$api'");
  14. }
  15. public function get_number($number)
  16. {
  17. return $this->find("number = '$number'");
  18. }
  19. public function get_orderinfo($orderinfo)
  20. {
  21. return $this->find("orderinfo = '$orderinfo'");
  22. }
  23. public function get_waybill($waybill)
  24. {
  25. return $this->find("waybill = '$waybill'");
  26. }
  27. public function get_time($time)
  28. {
  29. $dt = 3600;
  30. return date('Y-m-d H:i:s',$time+$dt);
  31. }
  32. } //end class