修正医生评价

This commit is contained in:
2023-02-24 17:39:25 +08:00
parent 2c4865cde7
commit 5c5c209ac5
4 changed files with 28 additions and 6 deletions
+3 -2
View File
@@ -13,10 +13,11 @@ use Hyperf\Snowflake\Concern\Snowflake;
* @property int $doctor_id 医生id
* @property int $patient_id 患者id
* @property int $order_inquiry_id 订单-问诊id
* @property string $name_mask 患者姓名(掩码)
* @property string $reply_quality 回复质量(百分制)
* @property string $service_attitude 服务态度(百分制)
* @property string $reply_progress 回复速度(百分制)
* @property string $avg_score 平均得分(百分制)
* @property string $avg_score 平均得分(百分制,回复质量占4、服务态度占3、回复速度占3,计算公式:每个得分 * 占比 相加
* @property int $type 类型(1:默认评价 2:主动评价)
* @property string $content 评价内容
* @property \Carbon\Carbon $created_at 创建时间
@@ -34,7 +35,7 @@ class OrderEvaluation extends Model
/**
* The attributes that are mass assignable.
*/
protected array $fillable = ['evaluation_id', 'doctor_id', 'patient_id', 'order_inquiry_id', 'reply_quality', 'service_attitude', 'reply_progress', 'avg_score', 'type', 'content', 'created_at', 'updated_at'];
protected array $fillable = ['evaluation_id', 'doctor_id', 'patient_id', 'order_inquiry_id', 'name_mask', 'reply_quality', 'service_attitude', 'reply_progress', 'avg_score', 'type', 'content', 'created_at', 'updated_at'];
/**
* The attributes that should be cast to native types.