代支付记录

This commit is contained in:
2025-01-04 15:29:44 +08:00
parent 2852aeec1b
commit 2948b2b6a4
5 changed files with 83 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
namespace common\models\oldDb;
use common\models\newDb\SupplierModel;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
@@ -27,4 +28,9 @@ class ChargeCashPayRecord extends \common\modelsgii\oldDb\ChargeCashPayRecord
{
return $this->hasOne(Store::class, ['id'=>'store_id']);
}
public function getSupplier()
{
return $this->hasOne(SupplierModel::class, ['id'=>'store_id']);
}
}