You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
namespace App\Service;
use App\Model\ServiceEvaluate;use Hyperf\DbConnection\Db;use Hyperf\HttpServer\Contract\RequestInterface;use Hyperf\Di\Annotation\Inject;
class ServiceEvaluateService implements ServiceEvaluateServiceInterface{
/** * @Inject * @var RequestInterface */ private $request;
public function evaluate() { $data = $this->request->all();
$data['user_created_at'] = Db::table('ims_cjdc_user') ->where(['id' => $data['user_id']]) ->value('join_time'); return ServiceEvaluate::create($data); }
public function getPersonnelInfo() { $data = $this->request->all(); $res = Db::table('lanzu_service_personnel') ->where(['user_id' => $data['user_id']]) ->first(); return $res; }
public function getEvaluateList() { $data = $this->request->all(); $res = Db::table('lanzu_service_evaluate') ->where(['service_personnel_id' => $data['service_personnel_id']]) ->get(); return $res; }
}
|