SystemL.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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. "涂胶一号机" => "01401424070300010036",
  16. "涂胶二号机" => "01401424070300009843",
  17. "涂胶三号机" => "01401424070300009708",
  18. "清边一号机" => "01401424070300009271",
  19. "清边二号机" => "01401424070300009160",
  20. "热压一号机" => "01401424070300009371",
  21. "热压二号机" => "01401424070300008948",
  22. ];
  23. public static $device_point_id_1 = [
  24. self::run => '15262427',
  25. self::stop => '15262429',
  26. self::standBy => '15262428',
  27. ];
  28. }