1234567891011121314151617181920212223242526 |
- <?php
- namespace app\common\dao\store\order;
- use app\common\dao\BaseDao;
- use app\common\model\store\order\MerchantReconciliationOrder as model;
- class MerchantReconciliationOrderDao extends BaseDao
- {
- public function getModel(): string
- {
- return model::class;
- }
- public function search($where)
- {
- return ($this->getModel()::getDB())->when(isset($where['reconciliation_id']) && $where['reconciliation_id'] !== '',function ($query)use ($where){
- $query->where('reconciliation_id',$where['reconciliation_id']);
- })->when(isset($where['type']) && $where['type'] !== '',function ($query)use ($where){
- $query->where('type',$where['type']);
- });
- }
- }
|