BoxActionModel.php 438 B

123456789101112131415161718192021
  1. <?php
  2. namespace app\index\model;
  3. use think\Model;
  4. class BoxActionModel extends Model {
  5. // 确定链接表名
  6. protected $name = 'box_action_record';
  7. public function getBoxActionsByWhere($where , $offset , $limit)
  8. {
  9. return $this->where($where)->limit($offset, $limit)->order('box_number asc')->select();
  10. }
  11. public function getAllCounts($where)
  12. {
  13. return $this->where($where)->count();
  14. }
  15. }