/** * 根据uid和type更新通知 * * @param array $ids * @param PwMessageNoticesDm $dm * return bool */ public function batchUpdateNoticeByUidAndType($uid, $type, $dm) { $uid = intval($uid); $type = intval($type); if ($uid < 1 || $type < 1 || ($result = $dm->beforeUpdate()) !== true) { return $result; } return $this->_getDao()->batchUpdateNoticeByUidAndType($uid, $type, $dm->getData()); }