stat_daily.model.php 415 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: stanley-king
  5. * Date: 2017/5/25
  6. * Time: 下午3:23
  7. */
  8. defined('InShopNC') or exit('Access Invalid!');
  9. class stat_dailyModel extends Model
  10. {
  11. public function __construct() {
  12. parent::__construct('stat_daily');
  13. }
  14. public function get_one($date_id,$fields='*',$lock=false)
  15. {
  16. return $this->field($fields)->lock($lock)->find($date_id);
  17. }
  18. }