WorkorderOther.php 485 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace addons\qingdongams\model;
  3. use think\Model;
  4. /**
  5. *工单其他信息表
  6. */
  7. class WorkorderOther Extends Model {
  8. protected $name = 'qingdongams_workorder_other';
  9. // 开启自动写入时间戳字段
  10. protected $autoWriteTimestamp = false;
  11. public static function getOther($id){
  12. $other = self::where(['id' => $id])->value('other');
  13. if($other){
  14. $other=json_decode($other,true);
  15. }else{
  16. $other=[];
  17. }
  18. return $other;
  19. }
  20. }