创建药品订单时,新增了药品明细的实际金额字段

This commit is contained in:
2024-11-26 16:39:13 +08:00
parent d83ec385a7
commit 8afd0d91ed
4 changed files with 141 additions and 3 deletions
+3 -2
View File
@@ -18,6 +18,7 @@ use Hyperf\Snowflake\Concern\Snowflake;
* @property int $product_id 商品id
* @property string $product_name 商品名称
* @property string $product_price 商品价格
* @property string $actual_product_price 实际商品价格
* @property string $product_platform_code 商品处方平台编码
* @property int $amount 数量
* @property string $manufacturer 生产厂家
@@ -25,7 +26,7 @@ use Hyperf\Snowflake\Concern\Snowflake;
* @property string $product_spec 商品规格
* @property \Carbon\Carbon $created_at 创建时间
* @property \Carbon\Carbon $updated_at 修改时间
* @property-read Product $Product
* @property-read Product|null $Product
*/
class OrderProductItem extends Model
{
@@ -39,7 +40,7 @@ class OrderProductItem extends Model
/**
* The attributes that are mass assignable.
*/
protected array $fillable = ['product_item_id', 'order_product_id', 'order_inquiry_id', 'order_prescription_id', 'product_id', 'product_name', 'product_price', 'product_platform_code', 'amount', 'manufacturer', 'product_cover_img', 'product_spec', 'created_at', 'updated_at'];
protected array $fillable = ['product_item_id', 'order_product_id', 'order_inquiry_id', 'order_prescription_id', 'product_id', 'product_name', 'product_price', 'actual_product_price', 'product_platform_code', 'amount', 'manufacturer', 'product_cover_img', 'product_spec', 'created_at', 'updated_at'];
protected string $primaryKey = "product_item_id";