public function getlastVaildBatch($idString)
 {
     $res = array();
     if (!empty($idString)) {
         $dao = new DaoProductBatch();
         $temp = $dao->getBatchListByIdListOrderTimeDesc($idString);
         if ($temp && count($temp) > 0) {
             $res = $temp[0];
         }
     }
     return $res;
 }
 public function upOrDownBatch($batchid, $isUp)
 {
     $res = false;
     if ($batchid != null) {
         $data = array("batch_isvalid" => $isUp);
         $dao = new DaoProductBatch();
         $res = $dao->update($data, array("batch_id = " => $batchid));
     }
     return $res;
 }