Model_wigprint.php 563 B

12345678910111213141516171819202122
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_wigprint extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'wigprint';
  8. $this->load_table('wigprint');
  9. }
  10. public function get_number($number)
  11. {
  12. return $this->find("number = '$number'");
  13. }
  14. public function get_orderinfo($orderinfo)
  15. {
  16. return $this->find("orderinfo = '$orderinfo'");
  17. }
  18. public function get_waybill($waybill)
  19. {
  20. return $this->find("waybill = '$waybill'");
  21. }
  22. }