<?php
/**
 * Created by FFB.
 * Company: Shenzhen Zhixun Information Tec. Nanchang Com.
 * Copyright: ShenzhenZhixun
 * Email: eastbus@126.com
 * User: FFB
 * Date: 2025-03-11 12:09:33
 * 文件不允许修改，自动生成
 */

namespace common\table\bms_alarm;

class JdzDeviceAlarm{
    public static function tableName()
    {
        return '{{jdz_device_alarm}}';
    }
                
    /**
     * ------------ 字段 alarm_id 
     * ------------ 表字段注释: 
     */
    public function filterByAlarmId($val): self
    {
        $this->filterByColumn("alarm_id", $val);
        return $this;
    }

    public function setAlarmId($val): self
    {
        $this->setAttr("alarm_id", $val);
        return $this;
    }

    public function getAlarmId()
    {
        return $this->alarm_id ?? null;
    }
    // ---------------------------------------------
                
    /**
     * ------------ 字段 battery_sn 
     * ------------ 表字段注释: è®¾å¤‡å·
     */
    public function filterByBatterySn($val): self
    {
        $this->filterByColumn("battery_sn", $val);
        return $this;
    }

    public function setBatterySn($val): self
    {
        $this->setAttr("battery_sn", $val);
        return $this;
    }

    public function getBatterySn()
    {
        return $this->battery_sn ?? null;
    }
    // ---------------------------------------------
                
    /**
     * ------------ 字段 type 
     * ------------ 表字段注释: æŠ¥è­¦ç±»åž‹
     */
    public function filterByType($val): self
    {
        $this->filterByColumn("type", $val);
        return $this;
    }

    public function setType($val): self
    {
        $this->setAttr("type", $val);
        return $this;
    }

    public function getType()
    {
        return $this->type ?? null;
    }
    // ---------------------------------------------
                
    /**
     * ------------ 字段 longitude 
     * ------------ 表字段注释: ç»åº¦
     */
    public function filterByLongitude($val): self
    {
        $this->filterByColumn("longitude", $val);
        return $this;
    }

    public function setLongitude($val): self
    {
        $this->setAttr("longitude", $val);
        return $this;
    }

    public function getLongitude()
    {
        return $this->longitude ?? null;
    }
    // ---------------------------------------------
                
    /**
     * ------------ 字段 latitude 
     * ------------ 表字段注释: ç»´åº¦
     */
    public function filterByLatitude($val): self
    {
        $this->filterByColumn("latitude", $val);
        return $this;
    }

    public function setLatitude($val): self
    {
        $this->setAttr("latitude", $val);
        return $this;
    }

    public function getLatitude()
    {
        return $this->latitude ?? null;
    }
    // ---------------------------------------------
                
    /**
     * ------------ 字段 speed 
     * ------------ 表字段注释: é€Ÿåº¦
     */
    public function filterBySpeed($val): self
    {
        $this->filterByColumn("speed", $val);
        return $this;
    }

    public function setSpeed($val): self
    {
        $this->setAttr("speed", $val);
        return $this;
    }

    public function getSpeed()
    {
        return $this->speed ?? null;
    }
    // ---------------------------------------------
                
    /**
     * ------------ 字段 gps_time 
     * ------------ 表字段注释: å®šä½æ—¶é—´
     */
    public function filterByGpsTime($val): self
    {
        $this->filterByColumn("gps_time", $val);
        return $this;
    }

    public function setGpsTime($val): self
    {
        $this->setAttr("gps_time", $val);
        return $this;
    }

    public function getGpsTime()
    {
        return $this->gps_time ?? null;
    }
    // ---------------------------------------------
                
    /**
     * ------------ 字段 send_time 
     * ------------ 表字段注释: æŠ¥è­¦æ—¶é—´
     */
    public function filterBySendTime($val): self
    {
        $this->filterByColumn("send_time", $val);
        return $this;
    }

    public function setSendTime($val): self
    {
        $this->setAttr("send_time", $val);
        return $this;
    }

    public function getSendTime()
    {
        return $this->send_time ?? null;
    }
    // ---------------------------------------------
                
    /**
     * ------------ 字段 status 
     * ------------ 表字段注释: çŠ¶æ€ 0ï¼šæœªè¯» 1ï¼šå·²è¯»
     */
    public function filterByStatus($val): self
    {
        $this->filterByColumn("status", $val);
        return $this;
    }

    public function setStatus($val): self
    {
        $this->setAttr("status", $val);
        return $this;
    }

    public function getStatus()
    {
        return $this->status ?? null;
    }
    // ---------------------------------------------
    
}
