1234567891011121314151617181920212223242526 |
- <?php
- namespace addons\qingdongams\model;
- use think\Model;
- /**
- *工单其他信息表
- */
- class WorkorderOther Extends Model {
- protected $name = 'qingdongams_workorder_other';
- // 开启自动写入时间戳字段
- protected $autoWriteTimestamp = false;
- public static function getOther($id){
- $other = self::where(['id' => $id])->value('other');
- if($other){
- $other=json_decode($other,true);
- }else{
- $other=[];
- }
- return $other;
- }
- }
|