15 lines
366 B
PHP
15 lines
366 B
PHP
<?php
|
|
|
|
namespace app\protects\service;
|
|
use app\core\Service;
|
|
class ServiceProductService extends Service
|
|
{
|
|
public $table="service_product";
|
|
public function getAll($service_id=''){
|
|
$where=array();
|
|
if($service_id)$where['service_id']=$service_id;
|
|
$result=$this->db()->where($where)->select()->toArray();
|
|
return $result;
|
|
}
|
|
|
|
} |