SystemL.php 864 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class SystemL extends Model
  5. {
  6. protected $table = "system_L"; //指定表
  7. const CREATED_AT = null;
  8. const UPDATED_AT = null;
  9. protected $dateFormat = 'U';
  10. const run = '压机上升'; // 运行时间/次数
  11. const work = '小车前进'; // 工作时间/次数 不用了
  12. const stop = '急停'; // 故障时间/次数
  13. const standBy = '压机下降';// 待机时间/次数
  14. public static $device = [
  15. "2号热压机" => "01401422102400001960",
  16. "UV生产线" => "01401422100800000103",
  17. "6号热压机" => "01401422100800008976",
  18. "5号热压机" => "01401422100800000342"
  19. ];
  20. public static $device_point_id_1 = [
  21. self::run => '15262427',
  22. self::stop => '15262429',
  23. self::standBy => '15262428',
  24. ];
  25. }