public function act_getjobPowerById($jobid) { $jobid = intval($jobid); if ($jobid === 0) { self::$errCode = '5806'; self::$errMsg = 'jobid is error'; return array(); } $jobsingle = JobModel::getInstance(); $filed = ' jobpower_id,jobpower_job_id,jobpower_power,jobpower_system_id '; $where = " WHERE jobpower_job_id='{$jobid}' AND jobpower_system_id=" . C('AUTH_SYSTEM_ID'); $jobinfo = $jobsingle->getJobPower($filed, $where); return $this->_checkReturnData($jobinfo, array()); }