You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
shipin/app/model/crud/SchoolClassIpc.php

80 lines
1.8 KiB

<?php
/**
* +----------------------------------------------------------------------
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
* +----------------------------------------------------------------------
* | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
* +----------------------------------------------------------------------
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
* +----------------------------------------------------------------------
* | Author: CRMEB Team <admin@crmeb.com>
* +----------------------------------------------------------------------
*/
/**
* 关联列表
* @author crud自动生成代码
* @date 2023/10/19 13:48:45
*/
namespace app\model\crud;
use crmeb\basic\BaseModel;
/**
* Class SchoolClassIpc
* @date 2023/10/19
* @package app\model\crud
*/
class SchoolClassIpc extends BaseModel
{
/**
* 表名
* @var string
*/
protected $name = 'school_class_ipc';
/**
* 主键
* @var string
*/
protected $pk = 'id';
/**
* 添加时间获取器
* @date 2023-10-19
* @param string $value
* @return string
*/
public function getCreateTimeLabelAttr($value)
{
$value = $value ? json_decode($value, true) : [];
return $value;
}
/**
* 修改时间获取器
* @date 2023-10-19
* @param string $value
* @return string
*/
public function getUpdateTimeLabelAttr($value)
{
$value = $value ? json_decode($value, true) : [];
return $value;
}
/**
* 班级ID一对一关联
* @date 2023/10/19
* @return \think\model\relation\HasOne
*/
public function classIdHasOne()
{
return $this->hasOne(\app\model\crud\SchoolGradeClass::class, 'id', 'class_id');
}
}