|
|
@@ -38,6 +38,12 @@ class AnnouncementType extends Model
|
|
|
return $data;
|
|
|
}
|
|
|
|
|
|
+ //获取大分类子分类
|
|
|
+ public static function getSubTypeByPId(int $typeId){
|
|
|
+
|
|
|
+ return self::where('pid', $typeId)->column('id,title');
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
public function getCreatetimeTextAttr($value, $data)
|
|
|
{
|