REAPI/app/protects/service/ServiceProductService.php

15 lines
366 B
PHP
Raw Normal View History

2024-09-29 15:43:18 +08:00
<?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;
}
}