protected function fillGoalAndPlInContainer(&$container, $config) { // 取得資料 if ($res = Processor::execPos($this->getQuery($this->getDateObj()))) { while ($data = odbc_fetch_array($res)) { $tmp = []; foreach ($data as $key => $val) { $tmp[c8($key)] = (string) c8($val); } $tmp['goal'] = $config[trim($tmp['STOCK_NO'])]['goal']; $tmp['pl'] = $config[trim($tmp['STOCK_NO'])]['pl']; $container[$tmp['STOCK_NO']] = $tmp; unset($data); } } return $this; }