|
@@ -12,6 +12,7 @@ use think\Model;
|
|
|
* @property User user
|
|
|
* @property int refund_status
|
|
|
* @method static static|Query FilterRefund()
|
|
|
+ * @method static static|Query FilterTs()
|
|
|
*/
|
|
|
class Refund Extends Model
|
|
|
{
|
|
@@ -204,6 +205,12 @@ class Refund Extends Model
|
|
|
public function scopeFilterRefund(Query $query){
|
|
|
$query->whereBetween("{$this->getTable()}.refund_status",[self::REFUND_ING,self::REFUND_PASS]);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 投诉类型的售后
|
|
|
+ */
|
|
|
+ public function scopeFilterTs(Query $query){
|
|
|
+ $query->where("{$this->getTable()}.reason1",self::REASON_QU);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|