Model_fullorderout.php 613 B

1234567891011121314151617181920212223
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_fullorderout extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'fullorderout';
  8. $this->load_table('fullorderout');
  9. }
  10. /** 通过API查找 */
  11. public function get_waybill($waybill)
  12. {
  13. return $this->find("waybill = '$waybill'");
  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. } //end class