12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace app\common\model\store;
- use app\common\model\BaseModel;
- class Guarantee extends BaseModel
- {
- public static function tablePk(): string
- {
- return 'guarantee_id';
- }
- public static function tableName(): string
- {
- return 'guarantee';
- }
- public function searchGuaranteeIdAttr($query,$value)
- {
- $query->where('guarantee_id',$value);
- }
- public function searchGuaranteeNameAttr($query,$value)
- {
- $query->where('guarantee_name',$value);
- }
- public function searchGuaranteeInfoAttr($query,$value)
- {
- $query->where('guarantee_Info',$value);
- }
- public function searchKeywordAttr($query,$value)
- {
- $query->whereLike('guarantee_name',"%{$value}%");
- }
- public function searchDateAttr($query,$value)
- {
- getModelTime($query,$value);
- }
- public function searchStatusAttr($query,$value)
- {
- $query->where('status',$value);
- }
- public function searchIsDelAttr($query,$value)
- {
- $query->where('is_del',$value);
- }
- }
|