コード例 #1
0
ファイル: DAOImpl.php プロジェクト: Aasit/DISCOUNT--SRV-I
 public function getSalesTargetsByDealerCodes($data)
 {
     try {
         return \Akzo\Dealer::with(array('salesTargets'))->whereIn('code', $data)->get()->all();
     } catch (\PDOException $e) {
         $GLOBALS['logger']->info("Error: " . $e->getMessage());
         throw new \InvalidArgumentException(\Akzo\Product\ErrorMessages::PROCESS_ERROR, \Native5\Core\Http\StatusCodes::BAD_REQUEST);
     }
 }