Ejemplo n.º 1
0
 /**
  * 根据id获取产品批次的详细信息
  * @param 产品批次的id
  */
 public function getProductBatch($id)
 {
     if (!empty($id)) {
         $dao = new DaoProductBatch();
         $res = $dao->getProductBatchById((int) $id);
         if (count($res) == 1) {
             return $res[0];
         }
     }
     return null;
 }