上报药品订单时,增加了药品实际金额
This commit is contained in:
@@ -6,6 +6,8 @@ namespace App\Model;
|
||||
|
||||
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Hyperf\Database\Model\Relations\HasOne;
|
||||
use Hyperf\Snowflake\Concern\Snowflake;
|
||||
|
||||
/**
|
||||
@@ -14,8 +16,8 @@ use Hyperf\Snowflake\Concern\Snowflake;
|
||||
* @property int $user_coupon_id 用户优惠卷表id
|
||||
* @property string $coupon_name 优惠卷名称
|
||||
* @property string $coupon_use_price 优惠卷使用金额
|
||||
* @property \Carbon\Carbon $created_at 创建时间
|
||||
* @property \Carbon\Carbon $updated_at 修改时间
|
||||
* @property Carbon $created_at 创建时间
|
||||
* @property Carbon $updated_at 修改时间
|
||||
*/
|
||||
class OrderProductCoupon extends Model
|
||||
{
|
||||
@@ -33,6 +35,14 @@ class OrderProductCoupon extends Model
|
||||
|
||||
protected string $primaryKey = "order_coupon_id";
|
||||
|
||||
/**
|
||||
* 关联优惠券表
|
||||
*/
|
||||
public function UserCoupon(): HasOne
|
||||
{
|
||||
return $this->hasOne(Coupon::class, 'user_coupon_id', 'user_coupon_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取信息-单条
|
||||
* @param array $params
|
||||
|
||||
@@ -41,7 +41,7 @@ class UserCoupon extends Model
|
||||
protected string $primaryKey = "user_coupon_id";
|
||||
|
||||
/**
|
||||
* 关联医院表
|
||||
* 关联优惠券表
|
||||
*/
|
||||
public function Coupon(): HasOne
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user