1234567891011121314151617181920212223242526272829 |
- <?php
- /**
- * Created by PhpStorm.
- * User: shensong
- * Date: 2021/5/25
- * Time: 15:30
- */
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class StatementsComplement extends Model
- {
- public $timestamps = false;
- protected $table = 'statements_complement';
- public static function getStatementsEnableStatus($statementsData, $user)
- {
- if ($user->role_id == 15) {
- return [2,3];
- } else if ($user->role_id == 10) {
- return [4,5];
- } else {
- return [];
- }
- }
- }
|